1/** 2* 2007-2017 PrestaShop 3* 4* NOTICE OF LICENSE 5* 6* This source file is subject to the Academic Free License (AFL 3.0) 7* that is bundled with this package in the file LICENSE.txt. 8* It is also available through the world-wide-web at this URL: 9* http://opensource.org/licenses/afl-3.0.php 10* If you did not receive a copy of the license and are unable to 11* obtain it through the world-wide-web, please send an email 12* to [email protected] so we can send you a copy immediately. 13* 14* DISCLAIMER 15* 16* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 17* versions in the future. If you wish to customize PrestaShop for your 18* needs please refer to http://www.prestashop.com for more information. 19* 20* @author Apply Novation <[email protected]> 21* @copyright 2016-2017 Apply Novation 22* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 23*/ 24 25/* 26 27 $(document).ready(function() { 28 29 $(window).on('load resize scroll', function() { 30 31 var headerHeight = $('.header-top').outerHeight(); 32 var scrollHeight = headerHeight - $('#_desktop_top_menu').outerHeight(); 33 34 if ($(window).width() >= 1024 && $(window).scrollTop() > scrollHeight) { 35 $('#_desktop_top_menu').addClass('fixed-menu'); 36 $('#top-menu').addClass('container'); 37 $('.header-top').css('height', headerHeight + 'px'); 38 } else { 39 $('#_desktop_top_menu').removeClass('fixed-menu'); 40 $('#top-menu').removeClass('container'); 41 $('.header-top').css('height', 'auto'); 42 } 43 }); 44}); */ 45 46 47 $(document).ready(function() { 48 if($('div').is("#amegamenu")){ 49 var scrollHeight = $('#amegamenu').offset().top; 50 51 $(window).on('load resize scroll', function() { 52 var headerHeight = $('.header-top').outerHeight(); 53 if ($(window).width() >= 1024 && $(window).scrollTop() > scrollHeight) { 54 $('#amegamenu').addClass('fixed-menu'); 55 $('#top-menu').addClass('container'); 56 $('.header-top').css('height', headerHeight + 'px'); 57 } else { 58 $('#amegamenu').removeClass('fixed-menu'); 59 $('#top-menu').removeClass('container'); 60 $('.header-top').css('height', 'auto'); 61 } 62 }); 63 } 64}); 65 66 67 68// $(document).ready(function() { 69 70// $(window).scroll(function() { 71// if ($(window).scrollTop() > 160) { 72// $('#_desktop_top_menu').addClass('fixed-menu'); 73// $('#top-menu').addClass('container'); 74// } 75// else{ 76// $('#_desktop_top_menu').removeClass('fixed-menu'); 77// $('#top-menu').removeClass('container'); 78// } 79// }); 80 81// }); 82
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.