1(function () { 2 var GAP_REM = 5; 3 4 function isPc() { 5 return window.matchMedia("(min-width: 801px)").matches; 6 } 7 8 function getGapPx() { 9 return parseFloat(getComputedStyle(document.documentElement).fontSize) * GAP_REM; 10 } 11 12 function rebuildFullpage() { 13 if (window.jQuery && window.jQuery.fn && window.jQuery.fn.fullpage && window.jQuery.fn.fullpage.reBuild) { 14 window.jQuery.fn.fullpage.reBuild(); 15 } 16 } 17 18 window.applyPcFullpageSectionGap = function () { 19 var sections = document.querySelectorAll("#fullpage .section"); 20 if (!sections.length) return; 21 22 if (!isPc()) { 23 sections.forEach(function (section) { 24 section.style.removeProperty("height"); 25 section.style.removeProperty("min-height"); 26 }); 27 rebuildFullpage(); 28 return; 29 } 30 31 var height = window.innerHeight + getGapPx(); 32 sections.forEach(function (section) { 33 section.style.height = height + "px"; 34 section.style.minHeight = height + "px"; 35 }); 36 rebuildFullpage(); 37 }; 38 39 window.addEventListener("resize", function () { 40 if (document.querySelector(".fullpage-wrapper")) { 41 window.applyPcFullpageSectionGap(); 42 } 43 }); 44})();
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.