From 30dd4a130a6853e4cc22767904c770d0d4031ef5 Mon Sep 17 00:00:00 2001
From: Andre Bulatov
Date: Fri, 22 Jan 2016 22:39:24 -0500
Subject: [PATCH] Harlem Shake Func inish
---
wp-content/themes/mag-wp/js/custom.js | 37 +++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/wp-content/themes/mag-wp/js/custom.js b/wp-content/themes/mag-wp/js/custom.js
index fed91b3..0daea79 100755
--- a/wp-content/themes/mag-wp/js/custom.js
+++ b/wp-content/themes/mag-wp/js/custom.js
@@ -76,5 +76,42 @@ jQuery( document ).ready( function( $ ) {
};
stickyNav();
jQuery(window).scroll(function() { stickyNav(); });
+
+
+
+ /////////////////////////////////
+ //The Harlem Shake Easter Egg - Andre
+ /////////////////////////////////
+ function harlemShakeFunc() {
+ javascript:(function(){function c(){var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("href",f);e.setAttribute("class",l);document.body.appendChild(e)}
+ function h(){var e=document.getElementsByClassName(l);for(var t=0;te&&s.heightt&&s.width=w&&t<=b+w}
+ function S(){var e=document.createElement("audio");e.setAttribute("class",l);e.src=i;e.loop=false;e.addEventListener("canplay",function(){setTimeout(function(){x(k)},500);setTimeout(function(){N();p();for(var e=0;eIf you are reading this, it is because your browser does not support the audio element. We recommend that you get a new browser.
";document.body.appendChild(e);e.play()}
+ function x(e){e.className+=" "+s+" "+o}
+ function T(e){e.className+=" "+s+" "+u[Math.floor(Math.random()*u.length)]}
+ function N(){var e=document.getElementsByClassName(s);var t=new RegExp("\\b"+s+"\\b");for(var n=0;n