Difference between revisions of "Widget:Pamela"

From Whitespace (Hackerspace Gent)
Jump to: navigation, search
Line 3: Line 3:
 
<script type="text/javascript">
 
<script type="text/javascript">
 
var xmlHttp = null;
 
var xmlHttp = null;
alert(window.location.protocol);
+
 
 
function LoadPamelaCountWidget()
 
function LoadPamelaCountWidget()
 
{
 
{
     var Url = "http://0x20.be/pam/macs";
+
     var Url = window.location.protocol + "//0x20.be/pam/macs";
  
 
     xmlHttp = new XMLHttpRequest();
 
     xmlHttp = new XMLHttpRequest();
Line 34: Line 34:
 
     }
 
     }
 
     document.getElementById('openbanner').style.display = isOpen ? 'block' : 'none';
 
     document.getElementById('openbanner').style.display = isOpen ? 'block' : 'none';
     document.getElementById( "pamelaWidget" ).innerHTML = "According to <a href='http://0x20.be/Pamela'>Pamela</a> there are " + macs.length + " devices active in the space: " + macs.join( ", " );
+
     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: " + macs.join( ", " );
 
}
 
}
  

Revision as of 23:47, 19 December 2010