{"size": 1980, "ext": "js", "max_stars_repo_path": "js/harlem-shake.js", "max_stars_repo_name": "elrondwong/elrondwong.github.io", "max_stars_repo_stars_event_min_datetime": "2016-09-12T09:13:07.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-24T07:26:49.000Z", "max_issues_repo_path": "js/harlem-shake.js", "max_issues_repo_name": "elrondwong/elrondwong.github.io", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/harlem-shake.js", "max_forks_repo_name": "elrondwong/elrondwong.github.io", "max_forks_repo_forks_event_min_datetime": "2016-08-15T10:58:41.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-26T09:55:34.000Z"}
{"max_stars_count": 11, "max_issues_count": null, "max_forks_count": 12, "avg_line_length": 282.8571428571, "max_line_length": 540, "alphanum_fraction": 0.7217171717}
/* https://licson.net/post/do-harlem-shake-on-any-websites/ */

(function(){function l(a){var c=a.offsetHeight;a=a.offsetWidth;return c>q&&c<r&&a>s&&a<t}function m(){for(var a=document.getElementsByClassName(f),c=RegExp("\\b"+f+"\\b");0<a.length;)a[0].className=a[0].className.replace(c,"")}var q=10,s=10,r=1E3,t=1E3,f="mw-harlem_shake_me",n=["im_drunk","im_baked","im_trippin","im_blown","im_hanging"],p,b=document.documentElement;p=window.innerWidth?window.innerHeight:b&&!isNaN(b.clientHeight)?b.clientHeight:0;var g;g=window.pageYOffset?window.pageYOffset:Math.max(document.documentElement.scrollTop,
document.body.scrollTop);for(var b=document.getElementsByTagName("*"),h=null,e=0;e<b.length;e++){var a=b[e];if(l(a)){var d;d=a;for(var j=0;d;)j+=d.offsetTop,d=d.offsetParent;d=j;if(d>=g&&d<=p+g){h=a;break}}}if(null===a)a=b;else{a=document.createElement("link");a.setAttribute("type","text/css");a.setAttribute("rel","stylesheet");a.setAttribute("href","/css/harlem-shake.css");a.setAttribute("class","mw_added_css");document.body.appendChild(a);a=document.createElement("audio");
a.setAttribute("class","mw_added_css");a.src="/attach/harlem-shake.mp3";a.loop=!1;a.addEventListener("canplay",function(){setTimeout(function(){h.className+=" "+f+" im_first"},500);setTimeout(function(){m();var a=document.createElement("div");a.setAttribute("class","mw-strobe_light");document.body.appendChild(a);setTimeout(function(){document.body.removeChild(a)},100);for(var c=0;c<k.length;c++){var b=k[c];b.className+=" "+f+" "+n[Math.floor(Math.random()*n.length)]}},
1000)},!0);a.addEventListener("ended",function(){m();for(var a=document.getElementsByClassName("mw_added_css"),b=0;b<a.length;b++)document.body.removeChild(a[b])},!0);a.innerHTML=" <p>If you are reading this, it is because your browser does not support the audio element. We recommend that you get a new browser.</p> <p>";document.body.appendChild(a);a.play();for(var k=[],e=0;e<b.length;e++)a=b[e],l(a)&&k.push(a)}})();
