Difference between revisions of "Widget:Pamela"

From Whitespace (Hackerspace Gent)
Jump to: navigation, search
m
m
Line 46: Line 46:
  
 
     document.getElementById('openbanner').style.display = people.length > 0 ? 'block' : 'none';
 
     document.getElementById('openbanner').style.display = people.length > 0 ? 'block' : 'none';
     document.getElementById( "pamelaWidget" ).innerHTML = "According to <a href='" + window.location.protocol + "//0x20.be/Pamela'>Pamela</a> there are " + macs.length + " devices active in the space: " + people.concat(services).join( ", " );
+
 
 +
     if ( macs.length > 0 ) {
 +
        var msg = "According to <a href='" + window.location.protocol + "//0x20.be/Pamela'>Pamela</a> there are " + macs.length + " devices active in the space: " + people.concat(services).join( ", " );
 +
    }
 +
    else {
 +
        var msg = "<b>THE WORLD EXPLODED!</b> According to <a href='" + window.location.protocol + "//0x20.be/Pamela'>Pamela</a> there are " + macs.length + " devices active in the space o_O!";
 +
    }
 +
 
 +
    document.getElementById( "pamelaWidget" ).innerHTML = msg;
 
}
 
}
  

Revision as of 20:25, 16 January 2011

The space is open!

Loading Pamela...