-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataLoad_Test.html
42 lines (39 loc) · 1.36 KB
/
DataLoad_Test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery Get-n-Print Example</title>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<style type="text/css">
/* Impromptu Styles Here */
body
{
background-color:#ecf0f1;
}
div
{
font-family: times, Times New Roman, times-roman, georgia, serif;
font-size: 14px;
line-height: 25px;
letter-spacing: -1px;color: #444;
}
</style>
</head>
<body>
<script type="text/javascript">
// This jQuery method loads JSON-encoded data from the Google Drive server using a GET HTTP request.
$.getJSON("http://www.corsproxy.com/spreadsheets.google.com/feeds/list/0Ajys_D_Kd9XYdG9LRVpIanludjl2RTJBYl9waTVvOGc/od6/public/values?alt=json", function(data) {
//Loops through the Object array
for ( var i = 0; i < data.feed.entry.length; i++ ){
//Troubleshooting Resource
//console.log(data.feed.entry)
$(document).ready(function () {
//Appends div's to the body that contain the name of the intersection and a link to the traffic camera located there.
$("body").append('<div><a href=\"' + data.feed.entry[i]['gsx$url']['$t'] + '\">' + data.feed.entry[i]['gsx$name']['$t'] + "</a></div>");
});
}
});
</script>
</body>
</html>