1/*-------------------------------------------------------------- 2Theme JS 3--------------------------------------------------------------*/ 4 5jQuery(function ($) { 6 // Close offcanvas on click a, keep .dropdown-menu open 7 $('.offcanvas a:not(.dropdown-toggle):not(a.remove_from_cart_button), a.dropdown-item').on('click', function () { 8 $('.offcanvas').offcanvas('hide'); 9 }); 10 11 // Search collapse button hide if empty 12 if ($('#collapse-search').children().length == 0) { 13 $('.top-nav-search-md, .top-nav-search-lg').remove(); 14 } 15 16 // Searchform focus 17 $('#collapse-search').on('shown.bs.collapse', function () { 18 $('.top-nav-search input:first-of-type').trigger('focus'); 19 }); 20 21 // Close collapse if searchform loses focus 22 $('.top-nav-search input:first-of-type').on('focusout', function () { 23 $('#collapse-search').collapse('hide'); 24 }); 25 26 // Scroll to top Button 27 $(window).on('scroll', function () { 28 var scroll = $(window).scrollTop(); 29 30 if (scroll >= 500) { 31 $('.top-button').addClass('visible'); 32 } else { 33 $('.top-button').removeClass('visible'); 34 } 35 }); 36 37 // div height, add class to your content 38 $('.height-50').css('height', 0.5 * $(window).height()); 39 $('.height-75').css('height', 0.75 * $(window).height()); 40 $('.height-85').css('height', 0.85 * $(window).height()); 41 $('.height-100').css('height', 1.0 * $(window).height()); 42 43 // IE Warning 44 if (window.document.documentMode) { 45 let IEWarningDiv = document.createElement('div'); 46 IEWarningDiv.setAttribute('class', 'position-fixed top-0 end-0 bottom-0 start-0 d-flex justify-content-center align-items-center'); 47 IEWarningDiv.setAttribute('style', 'background:white;z-index:1999'); 48 IEWarningDiv.innerHTML = '<div style="max-width: 90vw;">' + '<h1>' + bootscore.ie_title + '</h1>' + '<p className="lead">' + bootscore.ie_limited_functionality + '</p>' + '<p className="lead">' + bootscore.ie_modern_browsers_1 + bootscore.ie_modern_browsers_2 + bootscore.ie_modern_browsers_3 + bootscore.ie_modern_browsers_4 + bootscore.ie_modern_browsers_5 + '</p>' + '</div>'; 49 document.body.appendChild(IEWarningDiv); 50 } 51 // IE Warning End 52}); // jQuery End
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.