1var compareWidth, 2 detector, 3 mobileNav; 4 5var scrollOffset = 90; 6 7var site = { 8 firstLoad: true, 9 init: function () { 10 jQuery('html').addClass('js'); 11 site.firstLoad = false; 12 site.common.init(); 13 if (jQuery('body').hasClass('page-template-page-home-php')) { 14 site.sections.homepage.init(); 15 } 16 }, 17 common: { 18 init: function () { 19 // 20 jQuery('.mobileNavControl').click(function () { 21 jQuery('#mainNav ul').slideToggle('fast', function () { 22 jQuery('.mobileNavControl').toggleClass('close'); 23 // $('html, body').animate({ 24 // scrollTop: $("#mainNav").offset().top + $('window').height() 25 // }, 2000); 26 }); 27 }); 28 // 29 jQuery(".fancybox").fancybox({ 30 maxWidth : 800, 31 maxHeight : 600, 32 fitToView : false, 33 width : '70%', 34 height : '70%', 35 autoSize : false, 36 closeClick : false, 37 openEffect : 'none', 38 closeEffect : 'none', 39 padding: 0 40 }); 41 } 42 }, 43 sections: { 44 homepage: { 45 init: function () { 46 // 47 48 } 49 } 50 } 51}; 52jQuery(document).ready(function () { 53 site.init(); 54 55 jQuery('.navtoggle').click(function(){ 56 jQuery(this).toggleClass('active'); 57 jQuery('#mainNav ul').slideToggle('fast'); 58 }); 59 60 window.addEventListener('resize', function() { 61 if ($(window).width() > 1140) { 62 jQuery('#mainNav ul').show(); 63 } 64 }, true); 65 66 jQuery('#menu-menu .menu-item a').click(function(e) { 67 id = jQuery(this).attr('data-href'); 68 if (id != 'store' && id != 'newsletter' && id != 'signUp' && id != 'home') { 69 e.preventDefault(); 70 slug = jQuery(this).attr('href'); 71 title = jQuery(this).attr('data-title'); 72 var header_h = jQuery('#page-header').outerHeight(); 73 // jQuery('html, body').animate({scrollTop: jQuery("#"+id).offset().top - header_h}, 1000); 74 jQuery('html, body').animate({scrollTop: jQuery("#"+id).offset().top - scrollOffset}, 1000); 75 document.title = title; 76 history.pushState('data', '', site_url + slug); 77 jQuery('#mainNav ul').slideToggle('fast'); 78 return false; 79 } 80 if (id == 'home') { 81 e.preventDefault(); 82 title = jQuery(this).attr('data-title'); 83 var header_h = jQuery('#page-header').outerHeight(); 84 // jQuery('html, body').animate({scrollTop: jQuery("#"+id).offset().top - header_h}, 1000); 85 jQuery('html, body').animate({scrollTop: jQuery("#"+id).offset().top}, 1000); 86 document.title = title; 87 // history.pushState('data', '', ''+slug); 88 history.pushState('data', '', site_url + '/'); 89 jQuery('#mainNav ul').slideToggle('fast'); 90 return false; 91 } 92 93 }); 94 95 jQuery('.nav-header').click(function(e) { 96 e.preventDefault(); 97 jQuery('html, body').animate({scrollTop: 0}, 1000); 98 }); 99 100 window.onscroll = function () { 101 scrollFunction(); 102 }; 103 function scrollFunction() { 104 if (document.body.scrollTop > window.innerHeight / 2 || document.documentElement.scrollTop > window.innerHeight / 2) { 105 jQuery('.headerImage').addClass('fadeout'); 106 } else { 107 jQuery('.headerImage').removeClass('fadeout'); 108 } 109 } 110 111 var $releasesCarousel = jQuery('.music-carousel'); 112 113 $releasesCarousel.flickity({ 114 cellAlign: 'center', 115 // contain: true 116 "wrapAround": true, 117 prevNextButtons: false, 118 pageDots: false 119 }); 120 121 $('.carousel-arrow__left').on( 'click', function(e) { 122 e.preventDefault(); 123 $releasesCarousel.flickity('previous'); 124 }); 125 126 $('.carousel-arrow__right').on( 'click', function(e) { 127 e.preventDefault(); 128 $releasesCarousel.flickity('next'); 129 }); 130 131 jQuery('.tour-dates iframe').on("load", function() { 132 console.log('hello?'); 133 }); 134}); 135jQuery(window).load(function () { 136 137 jQuery('body').removeClass('loading'); 138 jQuery('.preloader').addClass('hide-bg'); 139 140 setTimeout(function(){ 141 if ($('body').hasClass('page-about')){ 142 $('html, body').animate({scrollTop: $('#about').offset().top - scrollOffset}, 1000); 143 } 144 if ($('body').hasClass('page-tour')){ 145 $('html, body').animate({scrollTop: $('#tour').offset().top - scrollOffset}, 1000); 146 } 147 if ($('body').hasClass('page-music')){ 148 $('html, body').animate({scrollTop: $('#music').offset().top - scrollOffset}, 1000); 149 } 150 if ($('body').hasClass('page-gallery')){ 151 $('html, body').animate({scrollTop: $('#gallery').offset().top - scrollOffset}, 1000); 152 } 153 }, 500); 154 155 $(window).scroll(); 156});
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.