1function log(data) { 2 if (window.console && console.log) { console.log(data) }; 3}; 4 5// store the hash (DON'T put this code inside the $() function, it has to be executed 6// right away before the browser can start scrolling! 7var hash = window.location.hash; 8 hashId = hash.split('a')[0]; 9 hashId = hashId.replace('#', ''); 10 11$(document).ready(function() { 12 if(hashId) { 13 $('body,html').animate({scrollTop: 0},0); 14 var hashScroll = setInterval(function() { 15 var smallHeaderHeight = $('#header').attr('data-onscrollheight'); 16 $('body,html').animate({scrollTop: $('#' + hashId + '').offset().top - $('#pagewrap').offset().top - smallHeaderHeight + 1 - 30}, 1000); 17 clearInterval(hashScroll); 18 }, 1500); 19 } 20}); 21 22window.breakpoint = ''; 23var supportsOrientationChange = "onorientationchange" in window; 24var orientationEvent = supportsOrientationChange ? "orientationchange" : "resize"; 25 26function breakpointFunction() { 27 if(window.getComputedStyle) { 28 breakpoint = window.getComputedStyle(document.body, ':after').content.replace(/\W/g, ''); 29 } else if (document.body.currentStyle.breakpoint) { 30 respond.update(); 31 breakpoint = document.body.currentStyle.breakpoint.replace(/\W/g, ''); 32 } 33 if(breakpoint == '') { 34 setTimeout(function(){ $(document).trigger(orientationEvent); }, 50); 35 } else { 36 log('current breakpoint: ' + window.breakpoint); 37 } 38} 39 40window.addEventListener('DOMContentLoaded', breakpointFunction); 41window.addEventListener('resize', breakpointFunction); 42 43Flickity.prototype._createResizeClass = function() { 44 this.element.classList.add('flickity-resize'); 45}; 46 47Flickity.createMethods.push('_createResizeClass'); 48 49var resize = Flickity.prototype.resize; 50Flickity.prototype.resize = function() { 51 this.element.classList.remove('flickity-resize'); 52 resize.call( this ); 53 this.element.classList.add('flickity-resize'); 54}; 55 56function is_touch_device() { 57 return 'ontouchstart' in window /* works on most browsers */ 58 || navigator.maxTouchPoints; /* works on IE10/11 and Surface */ 59}; 60 61function fluid_width() { 62 var fluid_width = $('#header').width(); 63 $('.frame-container-fluid').each(function() { 64 if($(this).parents('.colAjax').length > 0) { 65 $(this).css('width',$('.colAjax').width() + 'px'); 66 } else { 67 $(this).css('width',fluid_width + 'px'); 68 } 69 }); 70} 71 72window.addEventListener('DOMContentLoaded', fluid_width); 73window.addEventListener('resize', fluid_width); 74 75var getUrlParameter = function getUrlParameter(sParam) { 76 var sPageURL = decodeURIComponent(window.location.search.substring(1)), 77 sURLVariables = sPageURL.split('&'), 78 sParameterName, 79 i; 80 81 for (i = 0; i < sURLVariables.length; i++) { 82 sParameterName = sURLVariables[i].split('='); 83 84 if (sParameterName[0] === sParam) { 85 return sParameterName[1] === undefined ? true : sParameterName[1]; 86 } 87 } 88}; 89 90 91 92$(document).ready(function () { 93 objectFitImages(); 94 objectFitVideos(); 95 document.addEventListener('lazyloaded', function(e){ 96 objectFitImages(); 97 }); 98}); 99 100(function() { 101 var beforePrint = function() { 102 $('.lazyload').addClass('lazypreload'); 103 }; 104 if (window.matchMedia) { 105 var mediaQueryList = window.matchMedia('print'); 106 mediaQueryList.addListener(function(mql) { 107 if (!mql.matches) { 108 beforePrint(); 109 } 110 }); 111 } 112 window.onbeforeprint = beforePrint; 113 window.onafterprint = beforePrint; 114}()); 115
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.