1var jQ = jQuery.noConflict(); 2 3jQ(document).ready(function(){ 4 if (typeof foo !== 'undefined') { 5 // Now we know that foo is defined, we are good to go. 6 } 7 jQ('html').attr('user-agent',navigator.userAgent); 8 9 /*START function Same height boxes--------------------*/ 10 11 function sameheight1($object){ 12 var Box1 = 0; 13 jQ($object).each(function(){ 14 if(jQ(this).height() > Box1){ 15 Box1 = jQ(this).height(); 16 } 17 }); 18 jQ($object).height(Box1); 19 } 20 21 // sameheight1("#"); 22 23 function sameheight2($object1, $object2){ 24 var Box2 = 0; 25 jQ($object1).each(function(){ 26 if(jQ(this).height() > Box2){ 27 Box2 = jQ(this).height(); 28 } 29 }); 30 jQ($object2).height(Box2); 31 } 32 33 // sameheight2("#1", "#2" ); 34 35/*END function Same height boxes--------------------*/ 36/*Start function Slider Wrap into Item--------------*/ 37 38 function itemswrap($path, $number, $wrap){ 39 var divgallry = jQ($path); 40 for(var i = 0; i < divgallry.length; i+=$number) { 41 divgallry.slice(i, i+$number).wrapAll($wrap); 42 } 43 } 44 function itemsunwrap($path){ 45 jQ($path).unwrap(); 46 } 47 48/*END function Slider Wrap into Item----------------------------*/ 49/*Start function Slider Bullets Wrap----------------------------*/ 50 51 function bulletsWrap($sliderID){ 52 var indicatorsProduct= jQ($sliderID + " .carousel-item").size(); 53 var row = jQ('<li data-target="'+$sliderID+'"></li>'); 54 55 for (var i=0; i<indicatorsProduct; i++) { 56 jQ($sliderID + ' .carousel-indicators').append(row.clone()); 57 } 58 var counterProduct=-1; 59 jQ($sliderID + " .carousel-indicators li").each(function(){ 60 counterProduct++; 61 var self=jQ(this); 62 self.attr('data-slide-to', counterProduct); 63 }); 64 65 jQ($sliderID + " .carousel-indicators li").first().addClass('active'); 66 } 67 68/*END function Slider Bullets Wrap----------------------------*/ 69 jQ("#home-slider").swiperight(function() { 70 jQ(this).carousel('prev'); 71 }); 72 jQ("#home-slider").swipeleft(function() { 73 jQ(this).carousel('next'); 74 }); 75 76 bulletsWrap("#home-slider"); 77 78 jQ('.alert').alert(); 79 80 // $closeAlert = jQ('.important-alert .close'); 81 // $closeAlert.click(function() { 82 // $closeAlert.parent().removeClass('active'); 83 // }); 84 85/*START Resize--------------------*/ 86 87 function myOrientResizeFunction(){ 88 89 jQ('.menu-footer > li').removeClass('dropdown'); 90 91 // Extra large devices (large desktops, 1200px and up) 92 if (jQ(window).width() >= 1199.99){ 93 94 setTimeout(function() { 95 var $headerHeight = jQ('header.header'); 96 //jQ('body').css('padding-top',$headerHeight.height()+'px'); 97 98 99 var $wpAdminBar = jQ('#wpadminbar'); 100 if ($wpAdminBar.length) { 101 jQ('header.header').css('margin-top',$wpAdminBar.height()+'px'); 102 jQ('body').css('padding-top', $headerHeight.height() + $wpAdminBar.height() +'px'); 103 } 104 105 },500); 106 107 /*START Fixed Header--------------------*/ 108 var $headerOffset = jQ('header.header').offset().top; 109 if( $headerOffset >= 150 ){ 110 jQ('body').addClass('fixed'); 111 } 112 jQ(window).bind('scroll', function () { 113 if (jQ(window).scrollTop() > 150) { 114 jQ('body').addClass('fixed'); 115 } 116 else { 117 jQ('body').removeClass('fixed'); 118 } 119 }); 120 /*END Fixed Header--------------------*/ 121 122 /*START Dropdown Main Menu Animation--------------------*/ 123 jQ(".dropdown-btn").unbind(); 124 jQ('.dropdown, .dropdown-menu').unbind(); 125 jQ('.dropdown-btn').remove(); 126 127 /*START Dropdown Main Menu Animation--------------------*/ 128 jQ('.dropdown, .dropdown-menu').hover(function(){ 129 jQ(this).children('.dropdown-menu').stop(true, false).slideDown("fast").addClass('display_dropdown'); 130 }, function(){ 131 jQ(this).children('.dropdown-menu').stop(true, false).slideUp("fast").removeClass('display_dropdown'); 132 });
133 jQ(".dropdown-btn").click(function(){ 134 jQ(this).next().slideToggle("fast"); 135 }); 136 137 /*END Dropdown Main Menu Animation--------------------*/ 138 139 } else if (jQ(window).width() <= 1199.98) { 140 141 142 setTimeout(function() { 143 var $headerHeight = jQ('header.fixed-top'); 144 jQ('body').css('padding-top',$headerHeight.height()+'px'); 145 146 var $wpAdminBar = jQ('#wpadminbar'); 147 if ($wpAdminBar.length) { 148 jQ('header.header').css('margin-top',$wpAdminBar.height()+'px'); 149 jQ('body').css('padding-top', $headerHeight.height() + $wpAdminBar.height() +'px'); 150 } 151 152 },500); 153 154 var $headerOffset = jQ('header.header').offset().top; 155 if( $headerOffset >= 65 ){ 156 jQ('body').addClass('fixed'); 157 } 158 /*START Fixed Header--------------------*/ 159 jQ(window).bind('scroll', function () { 160 if (jQ(window).scrollTop() > 65) { 161 jQ('body').addClass('fixed'); 162 } 163 else { 164 jQ('body').removeClass('fixed'); 165 } 166 }); 167 168 /*END Fixed Header--------------------*/ 169 170 /*START Include Dropdown Button--------------------*/ 171 jQ('.dropdown-btn').remove(); 172 var itemBtn = '<button class="dropdown-toggle dropdown-btn"><span class="fas fa-chevron-down"></span></button>'; 173 jQ( 'header .nav .dropdown > a').after(itemBtn); 174 /*END Include Dropdown Button--------------------*/ 175 176 var $sidenav = jQ('.header-navigation #NavDropdown'), 177 $toggler = jQ('.header-navigation .navbar-toggler'); 178 179 $toggler.click(function() { 180 $toggler.toggleClass('active'); 181 if (!$sidenav.hasClass('show')) { 182 showSidenav(); 183 } else { 184 hideSidenav(); 185 } 186 $sidenav.toggleClass('show'); 187 }); 188 189 function showSidenav() { 190 $sidenav.css('display', 'block'); 191 window.setTimeout(function() { 192 if(jQ(window).width() <= 767.98){ 193 $sidenav.css({ 194 'width':'100vw', 195 }); 196 } else { 197 $sidenav.css({ 198 'width':'480px', 199 }); 200 } 201 }, 10); 202 $sidenav.addClass('show'); 203 }; 204 205 function hideSidenav() { 206 $sidenav.css({ 207 'width':'0px' 208 }); 209 window.setTimeout(function() { 210 $sidenav.css('display', 'none'); 211 }, 500); 212 $sidenav.removeClass('show'); 213 }; 214 215 /*START Dropdown Main Menu Animation--------------------*/ 216 jQ(".dropdown-btn").unbind(); 217 jQ('.dropdown, .dropdown-menu').unbind(); 218 219 jQ(".dropdown-btn, .dropdown-toggle .dropdown-btn").click(function(){ 220 jQ(this).find('.fas').toggleClass('open'); 221 jQ(this).next().slideToggle('open'); 222 }); 223 /*END Dropdown Main Menu Animation--------------------*/ 224 225 /*START Dropdown Main Menu Animation--------------------*/ 226 jQ('header .nav .dropdown .dropdown-menu').css('display','none'); 227 jQ(".dropdown, .dropdown-menu .dropdown").unbind(); 228 /*jQ(".navbar-header button.navbar-toggle").click(function(event) { 229 event.preventDefault(); 230 jQ(".dropdown-menu").slideUp("400"); 231 });*/ 232 jQ( "#NavDropdown ul li.menu-item-has-children").each(function(){ 233 jQ('#NavDropdown ul li.menu-item-has-children ul li.active').parent().parent().addClass('active'); 234 }); 235 /*END Dropdown Main Menu Animation--------------------*/ 236 237 } else if (jQ(window).width() <= 767.98) { 238 239} 240 241 /*END header mobile-------------------------------------------------------------------------------------------*/ 242 243 /******************************** 244 Carousel Homepage 245 ********************************/ 246 jQ('#home-slider ol.carousel-indicators li').remove(); 247 bulletsWrap("#home-slider"); 248 249 } myOrientResizeFunction(); 250 251 //*START carousels Touchable--------------------*/ 252 253 jQ(window).bind('resize', function(e){ 254 if (window.RT) clearTimeout(window.RT); 255 window.RT = setTimeout(function(){ 256 // this.location.reload(false); /* false to get page from cache */ 257 myOrientResizeFunction(); 258 }, 0); 259 }); 260 261 jQ(window).resize(function(){ 262 myOrientResizeFunction(); 263 }); 264 265 /*START Search--------------------*/ 266 jQ('.search #searchform #s').attr('placeholder', 'Search here...'); 267 jQ('#open-search, .header-navigation.desktop-menu #open-search').click(function() { 268 jQ('.search-section').slideToggle('400'); 269 setTimeout(function(){ 270 jQ('#s').focus(); 271 },500); 272 }); 273 /*END Search--------------------*/ 274 275}); 276 277/*FUNCTION SLOW ANIMATION ANCHOR LINKS-------------------------------*/ 278 279/* Add rel="external" to links that are external (this.hostname !== location.hostname) BUT don't add to anchors containing images */ 280// jQ('body p a').each(function() {
281// // Compare the anchor tag's host name with location's host name 282// return this.hostname && this.hostname !== location.hostname; 283// }).not('a:has(img)').attr("rel","external"); 284 285 286jQ(".anchor").click(function() { 287 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 288 289 var target = jQ(this.hash); 290 target = target.length ? target : jQ('[name=' + this.hash.slice(1) +']'); 291 if (target.length) { 292 jQ('html,body').animate({ 293 scrollTop: target.offset().top - 122 294 }, 600); 295 return false; 296 } 297 } 298}); 299 300// ===== Scroll to Top ==== 301/* 302 jQ(window).scroll(function() { 303 if (jQ(this).scrollTop() >= 600) { // If page is scrolled more than 50px 304 jQ('#return-to-top').fadeIn('slow'); // Fade in the arrow 305 } else { 306 jQ('#return-to-top').fadeOut('fast'); // Else fade out the arrow 307 } 308 }); 309*/ 310 jQ(function() { 311 jQ('#return-to-top').click(function() { 312 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 313 314 var target = jQ(this.hash); 315 target = target.length ? target : jQ('[name=' + this.hash.slice(1) +']'); 316 if (target.length) { 317 jQ('html,body').animate({ 318 scrollTop: target.offset().top 319 }, 1000); 320 return false; 321 } 322 } 323 }); 324 });
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.