1jQuery.migrateMute = true; //Disable logging for jquery migrate 2 3function autoHeight() { 4 $('#Footer').css('margin-top', 5 $(document).height() 6 - ($('.header-inside__container').height() + $('.contents__container').height() + $('.slider__container').height()) 7 - $('#Footer').height() 8 ); 9} 10 11if (typeof fullPageEnable === 'undefined') 12 var fullPageEnable = true; 13 14function isDesktop() { 15 return ($(window).width() > 1024); 16} 17var headerContainer = $(".header__container .navbar__container "); 18 19$(function () { 20 setTimeout(function () { 21 autoHeight(); 22 }, 300); 23 24 if ($('html').is(':lang(fa-IR)')) { 25 if (typeof fullpage !== 'undefined' && fullPageEnable && isDesktop()) { 26 new fullpage('#fullpage', { 27 ...fullPageSettings, 28 autoScrolling: true, 29 recordHistory: false, 30 css3: false, 31 easingcss3: 'ease', 32 fixedElements: '.navbar__container ', 33 verticalCentered: true, 34 controlArrows: true, 35 fitToSection: false, 36 fitToSectionDelay: 400, 37 38 onLeave: function (origin, destination, direction) { 39 var leavingSection = this; 40 41 var numSections = $('.fp-section').length; 42 var activeSection = fullpage_api.getActiveSection().index; 43 44 if ((activeSection + 2) == numSections && direction === 'down') { 45 $(".arrow__guide").addClass("arrow--rotated"); 46 47 } else { 48 $(".arrow__guide").removeClass("arrow--rotated"); 49 50 } 51 if (origin.index === 0 && direction === 'down') { 52 setTimeout(() => { 53 headerContainer.addClass("header--fixed"); 54 $(".nav-bottom-menu").addClass('munopen'); 55 $(".nav-top-menu").addClass('munopen'); 56 headerContainer.animate({ top: 0 }); 57 }, 400); 58 } 59 60 else if (origin.index === 1 && direction === 'up') { 61 headerContainer.animate({ top: -50 }, 400, function () { 62 headerContainer.removeClass("header--fixed"); 63 headerContainer.removeAttr("style"); 64 }); 65 66 } 67 } 68 }); 69 } else { 70 $("body").addClass("scroll--normal"); 71 $(".arrow__guide").remove(); 72 } 73 74 } else if ($('html').is(':lang(en-us)')) { 75 if (typeof fullpage !== 'undefined' && fullPageEnable && isDesktop()) { 76 new fullpage('#fullpage', { 77 ...fullPageSettings, 78 autoScrolling: true, 79 css3: false, 80 easingcss3: 'ease', 81 fixedElements: '.navbar__container ', 82 verticalCentered: true, 83 recordHistory: false, 84 controlArrows: true, 85 fitToSection: false, 86 fitToSectionDelay: 400, 87 onLeave: function (origin, destination, direction) { 88 var leavingSection = this; 89 90 var numSections = $('.fp-section').length; 91 var activeSection = fullpage_api.getActiveSection().index; 92 93 if ((activeSection + 2) == numSections && direction === 'down') { 94 $(".arrow__guide").addClass("arrow--rotated"); 95 96 } else { 97 $(".arrow__guide").removeClass("arrow--rotated"); 98 99 } 100 if (origin.index === 0 && direction === 'down') { 101 setTimeout(() => { 102 headerContainer.addClass("header--fixed"); 103 $(".nav-bottom-menu").addClass('munopen'); 104 $(".nav-top-menu").addClass('munopen'); 105 headerContainer.animate({ top: 0 }); 106 }, 400); 107 } 108 109 else if (origin.index === 1 && direction === 'up') { 110 headerContainer.animate({ top: -50 }, 400, function () { 111 headerContainer.removeClass("header--fixed"); 112 headerContainer.removeAttr("style"); 113 }); 114 } 115 } 116 }); 117 } else { 118 $("body").addClass("scroll--normal"); 119 $(".arrow__guide").remove(); 120 } 121 } 122 123 if (!enableDownArrow || typeof fullpage_api === 'undefined') 124 $(".arrow__guide").remove(); 125 126 if (typeof fullpage_api !== 'undefined') { 127 $(".arrow__guide").on("click", function (e) { 128 e.preventDefault(); 129 130 var numSections = $('.fp-section').length; 131 var activeSection = fullpage_api.getActiveSection().index; 132 133 if ((activeSection + 1) == numSections) { 134 fullpage_api.moveTo(1, 0); 135 } else { 136 fullpage_api.moveSectionDown(); 137 } 138 }) 139 } 140 //search box 141 var searchBox = $(".search-form"); 142 var trigger = searchBox.find(".search-toggle"); 143 var searchInput = searchBox.find("input[type=text]"); 144 var searchResultAddress = "/Search-Results?Search="; 145 trigger.on("click", function (e) { 146 var $this = $(this); 147 e.preventDefault(); 148 149 var value = searchInput.val(); 150 window.location.href = searchResultAddress + value; 151 152 });
153 154 $('.header-utilities__contaienr ul').find('li.has-child > a ').on('click', function (e) { 155 e.preventDefault(); 156 e.stopPropagation(); 157 $this = $(this).find("i"); 158 159 $this.toggleClass("rotate"); 160 161 162 var $subMenu = $this.parent().next('ul').slideToggle(200, function () { 163 if ($(this).is(':visible')) { 164 $this.children('span.fa-angle-down').addClass('caret-up'); 165 } 166 else { 167 $this.children('span.fa-angle-down').addClass('caret-up'); 168 } 169 }); 170 return false; 171 }); 172 173 var lazyLoadInstance = new LazyLoad({ 174 // Your custom settings go here 175 }); 176 177 var personaBar = $(".personalBarContainer"); 178 var body = $("body"); 179 var isAdmin = (typeof personaBar == 'undefined' || personaBar.length > 0); 180 181 if (!isAdmin) 182 return; 183 184 //$("body").css("padding-top", "55px"); 185 186 var element = $("<a href='#' class='toggle-admin-menu' />") 187 188 element.css({ 189 position: "fixed", 190 top: "5px", 191 left: "5px", 192 backgroundColor: "rgba(228, 74, 74, 0.9)", 193 padding: "3px 7px", 194 display: "block", 195 color: "white", 196 textDecoration: "none", 197 zIndex: 9999999, 198 fontSize: "20px" 199 }); 200 201 element.append("<i class='fa fa-cogs' style='vertical-align: middle'><i/>"); 202 203 element.on("click", function (e) { 204 var editBar = $(".editBarFrameContainer"); 205 206 e.preventDefault(); 207 e.stopPropagation(); 208 209 if (personaBar.hasClass("hide")) { 210 personaBar.removeClass("hide"); 211 editBar.removeClass("hide"); 212 body.removeClass("hideSideBbar"); 213 body.css({ 214 marginRight: "80px" 215 }); 216 } else { 217 personaBar.addClass("hide"); 218 editBar.addClass("hide"); 219 body.addClass("hideSideBbar"); 220 body.css({ 221 marginRight: "0" 222 }); 223 } 224 }) 225 $("body").append(element); 226}) 227 228$(window).resize(function () { 229 autoHeight(); 230}); 231 232window.addEventListener('wheel', event => { event.preventDefault(); }, { passive: false });
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.