Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Please replace this code section:
- <script type="text/javascript">
- let isScroll = false;
- window.onscroll = () => isScroll = true;
- setInterval(() => {
- if ( isScroll ) {
- isScroll = false;
- document.getElementById('headeradd').style.display = 'none'
- document.getElementById('contenedorMenuSuperior').style.cssText = "top: 0px !important"
- }
- }, 5000);
- </script>
- to this:
- <script type="text/javascript">
- window.addEventListener('wheel', function(evt) {
- if(window.scrollY >= 100) {
- setTimeout(function(){
- document.getElementById('headeradd').style.display = 'none';
- document.getElementById('contenedorMenuSuperior').style.cssText = "top: 0px !important";
- }, 5000);
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement