-
Notifications
You must be signed in to change notification settings - Fork 0
/
tv.html
31 lines (30 loc) · 994 Bytes
/
tv.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
<html>
<head>
<title>Today's Observations</title>
<style type="text/css">
body { font-family: "Trebuchet MS";}
h2 {padding: 10px;}
</style>
</head>
<body marginheight=0 marginwidth=0>
<h2>Today's Observations (with photos)</h2>
<iframe border="0" style="border: 0; width:100%; height:100%"></iframe>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
function setURL(options) {
var options = options || {}
var now = new Date(),
d1 = now.toISOString().split('T')[0] + 'T00:00:00',
d2 = now.toISOString().split('T')[0] + 'T23:59:59'
if (options.offset) {
d1 += options.offset
d2 += options.offset
}
$('iframe').attr('src', "http://www.inaturalist.org/observations/stats?has[]=photos&refresh=true&per_page=200&d1="+d1+"&d2="+d2)
}
setURL({offset: "-07:00"})
})
</script>
</body>
</html>