Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Disable jiggly

  • Loading branch information...
commit 03c119bc0cab43f2edeb55b9d0c883ea0b476234 1 parent 8eeacd3
Brian Klug authored Hacker Dojo committed
Showing with 2 additions and 57 deletions.
  1. +1 −56 main.html
  2. +1 −1  static/sounds.js
View
57 main.html
@@ -8,63 +8,8 @@
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="/static/sounds.js"></script>
<title>Hacker Dojo Kiosk</title>
-<script type="text/javascript" charset="utf-8">
-
-function onl() {
- return false;
- document.body.style.background="#"+randhex()+randhex()+randhex()+randhex()+randhex()+randhex();
- var fore = "#"+randhexlight()+randhexlight()+randhexlight()+randhexlight()+randhexlight()+randhexlight();
-
- $(".jiggle").each(function(i) {
- this.style.color = fore;
- this.style.position = "relative";
- this.style.top = jiggly()+"px";
- this.style.left = Math.floor(Math.round(Math.random() * 20))+"px";
- });
-}
-
-function jiggly() {
- return 10-Math.floor(Math.round(Math.random() * 20));
-}
-
-function randhex() {
- return String.fromCharCode(97 + Math.round(Math.random() * 6));
-}
-
-function randhexlight() {
- return Math.round(Math.random() * 6);
-}
-
-function showmsg(m) {
- msgbox = document.getElementById("msg");
- msgbox.style.display="block";
- msgbox.innerHTML = m;
- setTimeout('msgbox.style.display="none";',10000);
-}
-
-function playsound(file) {
- $('body').append('\<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="165" height="38" id="niftyPlayer1" align="">\<param name=movie value="/static/niftyplayer.swf?file='+file+'&as=1">\<param name=quality value=high>\<param name=bgcolor value=#FFFFFF>\<embed src="/static/niftyplayer.swf?file='+file+'&as=1" quality=high bgcolor=#FFFFFF width="0" height="0" name="niftyPlayer1" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\<\/embed>\<\/object>');
- setTimeout(function(){ $("#niftyPlayer1").remove(); }, 4000);
-}
-
- function gotMsg(msg) {
- msg = eval("(" + msg + ")");
- if (msg["say"] != null) {
- playsound("http://chapaai.adamsmith.as:8999/speech?text="+msg["say"]);
- }
- if (msg["text"] != null) {
- showmsg(msg["text"]);
- }
- document.getElementById("staff").src = document.getElementById("staff").src;
- waitForMsg();
- }
- function waitForMsg(){ $('body').append('\<script type="text/javascript" src="http://live.readyinrealtime.com/hackerdojo-signin?callback=gotMsg">\<\/script>'); }
- $(document).ready(function(){
- setTimeout(waitForMsg, 4000);
- });
-</script>
</head>
-<body onload="onl();">
+<body>
<div id="top">
<table width="100%"><tr>
View
2  static/sounds.js
@@ -50,5 +50,5 @@ function waitForMsg(){ $('body').append('\<script type="text/javascript" src="ht
$(document).ready(function(){
setTimeout(waitForMsg, 4000);
- letsDance();
+ //letsDance();
});
Please sign in to comment.
Something went wrong with that request. Please try again.