Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\copia nuevo\htdocs\cumbreclima\wp-content\themes\patti\js\custom\ drwxrwxrwx |
Viewing file: custom-responsive-nav.js (1.64 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | jQuery(document).ready(function() { // Responsive Navigation var nava = jQuery(".nav-btn"), navb = jQuery("#navigation"), wind = jQuery(window).width(), winh; if(wind < 1007) { winh = jQuery(window).outerHeight() } else { winh = jQuery(window).outerHeight() -jQuery('#header').outerHeight() } // Add classes jQuery(window).resize(function () { var nava = jQuery(".nav-btn"), navb = jQuery("#navigation"), wind = jQuery(window).width(), winh; if(wind < 1007) { winh = jQuery(window).outerHeight() } else { winh = jQuery(window).outerHeight() -jQuery('#header').outerHeight() } if (wind > 1006) { navb.addClass("desktop"); navb.removeClass("mobile") } if (wind < 1007) { navb.addClass("mobile"); navb.removeClass("desktop") } // Nav CSS adjustment for mobile if (wind < 1007) { jQuery('#navigation.mobile').css({'max-height': winh-150, 'overflow-y': 'scroll'}); } if (wind > 1006) { jQuery('#navigation.desktop').css({'overflow': 'visible'}); } }); if (wind > 1006) { navb.addClass("desktop"); navb.removeClass("mobile") } if (wind < 1007) { navb.addClass("mobile"); navb.removeClass("desktop") } // Nav CSS adjustment for mobile if (wind < 1007) { jQuery('#navigation.mobile').css({'max-height': winh-150, 'overflow-y': 'scroll'}); } if (wind > 1006) { jQuery('#navigation.desktop').css({'overflow': 'visible'}); } // Click Tweak nava.click(function () { if (navb.is(":visible")) { navb.slideUp() } else { navb.slideDown() } }); }); |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]-- |