1 2new LazyLoad({ 3 elements_selector: ".lazy", 4 threshold: 0, 5 callback_loaded: function(img) { 6 var zoomOverlay = $(img).parent().parent().find('div.zoom-overlay'); 7 if ( zoomOverlay.length ) { 8 var imgwidth = $(img).outerWidth()+'px'; 9 var imgheight = $(img).height()+'px'; 10 if ( $(window).width() < 576 ) { 11 imgwidth = '100%'; 12 } 13 zoomOverlay.addClass('card-img-overlay'); 14 if ( imgwidth ) { 15 zoomOverlay.css('max-width', imgwidth); 16 } 17 if ( imgheight ) { 18 zoomOverlay.css('max-height', imgheight); 19 } 20 } 21 } 22}); 23 24 25hljs.initHighlightingOnLoad(); 26 27(function($){"use strict"; 28 var isHover = false; 29 var navbarHeight = $("#main-navbar").outerHeight(); 30 var fixedNavbar = false; 31 32 if ( $("#main-navbar").hasClass("fixed-top") || $("#main-navbar").hasClass("sticky-top") ) { 33 fixedNavbar = true; 34 } 35 36 // toast active 37 var toast = $('.toast'); 38 if ( toast.length ) { 39 $('.toast').toast('show'); 40 } 41 42 // collapse 43 var collapse = $( ".collapsible-accordion" ); 44 if ( collapse.length && window.location.hash ) { 45 collapse.removeClass("show"); 46 var hashArr = window.location.hash.split('c'), 47 coll = $('#collapse-'+hashArr[1]); 48 if (coll.length) { 49 $('#collapse-'+hashArr[1]).addClass('show'); 50 var offsetSize = 0; 51 if ( fixedNavbar ) { 52 offsetSize = navbarHeight; 53 } 54 var collAnchor = '#collapse-'+hashArr[1]; 55 $("html, body").stop().animate({ 56 scrollTop: $(collAnchor).offset().top-offsetSize 57 }, 1500, "easeInOutExpo"); 58 } 59 } 60 61 // collapsible active scroll to top 62 $('.collapse').on('shown.bs.collapse', function(e) { 63 var $card = $(this).closest('.card'); 64 if ( $card.find('a.temp-gets-shown').length != 1) { 65 return; 66 } 67 $card.find('a.temp-gets-shown').removeClass('temp-gets-shown'); 68 if ( $card.length ) { 69 var offsetSize = $card.find('.card-header').outerHeight()+15; 70 if ( fixedNavbar ) { 71 offsetSize += navbarHeight; 72 } 73 $('html,body').animate({ 74 scrollTop: $card.offset().top-offsetSize 75 }, 500); 76 } 77 }); 78 $('.card a[data-toggle="collapse"]').on('click', function(e) { 79 if ($(this).attr('aria-expanded') == 'true') { 80 return; 81 } 82 $(this).addClass('temp-gets-shown'); 83 }); 84 85 // card image overlay on mobile only 86 if ( $(window).width() < 576 && $('.img-overlay').length ) { 87 $('.card .img-overlay').each(function() { 88 $(this).addClass( "card-img-overlay d-flex align-items-end" ); 89 }); 90 } 91 92 93 // scroll anchor 94 if (window.location.hash) { 95 96 var hash = window.location.hash; 97 98 if ($("hash").length) { 99 var idArr = hash.split('#'), 100 targetElement = document.getElementById(idArr[1]), 101 targetOffset = targetElement.offsetTop, 102 offsetSize = 29; 103 104 if ( fixedNavbar ) { 105 offsetSize += navbarHeight; 106 } 107 108 var scrollTo = targetOffset-offsetSize; 109 110 $("html, body").stop().animate({ 111 'scrollTop': scrollTo 112 }, 1500, "easeInOutExpo"); 113 } 114 } 115 116 117 // loading Spinner - page.jsFooterInline.5.4 118 $(window).bind("load", function() { 119 $('#status').fadeOut(); 120 $('#site-preloader').delay(350).fadeOut('slow'); 121 }); 122 123 124 // lightbox - page.jsFooterInline.5.5 125 baguetteBox.run(".gallery, .image-gallery"); 126 127 128 // dropdown menu - page.jsFooterInline.5.6 129 $(".dropdown-menu a.dropdown-toggle").on("click", function() { 130 if (!$(this).next().hasClass("show")) { 131 $(this).parents(".dropdown-menu").first().find(".show").removeClass("show"); 132 } 133 var $subMenu = $(this).next(".dropdown-menu"); 134 $subMenu.toggleClass("show"); 135 136 $(this).parents("li.nav-item.dropdown.show").on("hidden.bs.dropdown", function() { 137 $(".dropdown-submenu .show").removeClass("show"); 138 }); 139 140 return false; 141 }); 142 143 144 // link to top - page.jsFooterInline.5.8 145 var offset = 220; 146 var duration = 500; 147 $(window).scroll(function() { 148 if ($(this).scrollTop() > offset) { 149 $(".back-to-top").fadeIn(duration); 150 } else { 151 $(".back-to-top").fadeOut(duration); 152 } 153 }); 154 $(".back-to-top").click(function(event) { 155 event.preventDefault(event); 156 $("html, body").animate({scrollTop: 0}, duration); 157 return false; 158 }); 159 160 161 // carousel - page.jsFooterInline.5.10 162 var carousel = $( ".carousel .carousel-inner .carousel-item:first-child" ); 163 if ( carousel.length ) { 164 carousel.addClass( "active" ); 165 } 166 167 var cardSlider = $( ".carousel.card-slider" ); 168 if ( cardSlider.length ) { 169 $(".carousel.card-slider").on("slide.bs.carousel", function(e) { 170 var $e = $(e.relatedTarget); 171 var idx = $e.index(); 172 var itemsPerSlide = 3; 173 var totalItems = $(".carousel-item").length; 174 175 if (idx >= totalItems - (itemsPerSlide - 1)) { 176 var it = itemsPerSlide - (totalItems - idx); 177 for (var i = 0; i < it; i++) { 178 if (e.direction == "left") { 179 $(".carousel-item") 180 .eq(i) 181 .appendTo(".carousel-inner"); 182 } else { 183 $(".carousel-item") 184 .eq(0) 185 .appendTo(".carousel-inner"); 186 } 187 } 188 } 189 }); 190 } 191 192
193 // nav tab - page.jsFooterInline.5.12 194 var tab = $( ".tab-content .tab-pane:first-child" ); 195 if ( tab.length ) { 196 if ( window.location.hash ) { 197 var tabHashArr = window.location.hash.split('c'); 198 $('.nav[role="tablist"] a[href="#tab-content-'+tabHashArr[1]+'"]').tab('show'); 199 var tabOffsetSize = 30; 200 if ( fixedNavbar ) { 201 tabOffsetSize = navbarHeight+30; 202 } 203 var tabAnchor = '#tab-'+tabHashArr[1]; 204 205 if ($(tabAnchor).length) { 206 $("html, body").stop().animate({ 207 scrollTop: $(tabAnchor).offset().top-tabOffsetSize 208 }, 1500, "easeInOutExpo"); 209 } 210 211 } else { 212 tab.addClass( "show active" ); 213 } 214 } 215 216 217 // Navbar hover - page.jsFooterInline.5.50 218 function navbarHover() { 219 isHover = true; 220 $("ul.navbar-nav .dropdown, ul.navbar-nav .dropdown-submenu").hover(function() { 221 $(this).find(" > .dropdown-menu").stop(true, true).delay(200).fadeIn(); 222 $(this).addClass("show"); 223 $(this).next(".dropdown-menu").addClass("show"); 224 $(this).next("a").attr("aria-expanded","true"); 225 }, function() { 226 $(this).find(" > .dropdown-menu").stop(true, true).delay(200).fadeOut(); 227 $(this).removeClass("show"); 228 $(this).next(".dropdown-menu").removeClass("show"); 229 $(this).next("a").attr("aria-expanded","false"); 230 }); 231 } 232 233 234 // Navbar hover - page.jsFooterInline.5.54 - xl 235 if ( $(window).width() > 1200-1 ) { 236 navbarHover(); 237 238 } 239 // Shrinking Navbar on scrolling - page.jsFooterInline.5.61 240 var navShrinkColorschemes = $('#main-navbar').data('shrinkcolorschemes'), 241 navShrinkColor = $('#main-navbar').data('shrinkcolor'), 242 navColorschemes = $('#main-navbar').data('colorschemes'), 243 navColor = $('#main-navbar').data('color'); 244 245 $(window).scroll(function() { 246 if ($("#main-navbar").offset().top > 100) { 247 $("#main-navbar").removeClass("py-5").removeClass(navColorschemes).removeClass(navColor) 248 .addClass("navbar-shrink").addClass(navShrinkColor).addClass(navShrinkColorschemes); 249 } else { 250 $("#main-navbar").addClass("py-5").removeClass("navbar-shrink").removeClass(navShrinkColor).removeClass(navShrinkColorschemes) 251 .addClass(navColorschemes).addClass(navColor); 252 } 253 }); 254 255$(function() { 256 $('a[href*="#"]').click(function() { 257 var linktHref = this.href.split('#'); 258 259 if(linktHref[1] === '') { // Exception #3: orphaned # at end of URL 260 e.preventDefault(); 261 return false; 262 } 263 264 var currentUrlRoot = window.location.href.split('#')[0], 265 scrollToAnchor = $("a[name=" + linktHref[1]+"]").offset().top; 266 267 // Animate for targets on the same page. 268 269 $('html, body') 270 .animate({ scrollTop : scrollToAnchor }, 250 ); // Duration: 250ms. 271 $("a[name=" + linktHref[1]+"]").fadeOut(250).fadeIn(250); 272 //e.preventDefault(); 273 return false; 274 275 }); 276});� $(document).ready(function() { 277 $('#modal-5473').modal('show'); 278 }); 279 �})(jQuery);
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.