-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (63 loc) · 2.32 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" media="all" href="default.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>
<script>
function calculateTimeout(currElement, nextElement, opts, isForward) {
var index = opts.currSlide;
var times = new Array(5, 5, 5, 25);
return times[index]*1000;
}
$(document).ready(function(){
var url = "http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=b75ed595b4590c930a9dedb5a1312ab6&tags=hackerspaces&safe_search=1&per_page=10&content_type=4&media=photos";
var src;
$.getJSON(url + "&format=json&jsoncallback=?", function(data){
$.each(data.photos.photo, function(i,item){
src = "http://farm"+ item.farm +".static.flickr.com/"+ item.server +"/"+ item.id +"_"+ item.secret +"_b.jpg";
$("<img/>").attr("src", src).appendTo("#flickr");
});
});
window.setTimeout(function(){
$('#slideshow').cycle({
fx: 'all',
timeoutFn: calculateTimeout
});
$('#flickr').cycle({
fx: 'fade',
delay: 500
});
}, 5000);
window.setInterval(function(){
var iframes = document.getElementsByTagName('frame');
for(var i=0;i<iframes.length;i++){
iframes[i].contentWindow.location.reload(true);
}
}, 5*60*1000);
});
</script>
</head>
<body>
<div id="slideshow">
<div id="netstats">
<h2>Actieve mac adressen</h2>
<img src="http://192.168.1.230/mrtg/frackmac-day.png" />
<h2>Uplink</h2>
<img src="http://192.168.1.230/mrtg/192.168.0.105_24-day.png" />
<img src="http://192.168.1.230/mrtg/192.168.0.105_24-week.png" />
</div>
<div id="openstats">
<iframe src="http://vps.ar-ix.net/~ld/frack_graph/weekly.php"></iframe>
</div>
<div id="spacemap">
<iframe src="http://frack.nl/spacemap/"></iframe>
</div>
<div id="flickr">
</div>
<div id="frackprojects">
<iframe src="http://frack.nl/wiki/Projecten#Lopende_projecten"></iframe>
</div>
</div>
</body>
</html>