|
@@ -22,7 +22,7 @@ xhr.send();
|
22
|
22
|
</script> -->
|
23
|
23
|
<script>
|
24
|
24
|
var request = new XMLHttpRequest();
|
25
|
|
-var output="<ul>";
|
|
25
|
+var output="";
|
26
|
26
|
let flick_data_json;
|
27
|
27
|
|
28
|
28
|
request.open("GET","https://data.sfgov.org/api/views/yitu-d5am/rows.json?accessType=DOWNLOAD")
|
|
@@ -37,9 +37,9 @@ if((request.status== 200) && (request.readyState ==4)){
|
37
|
37
|
for(var i = 0; i < flick_data_json.data.length; i++){
|
38
|
38
|
if(flick_data_json.data[i][10] === "Golden Gate Bridge"){
|
39
|
39
|
|
40
|
|
- output += "<li>" +"Movie Title:" + flick_data_json.data[i][8]+"</li>";
|
41
|
|
- output += "Year made:" + flick_data_json.data[i][9]+"</li>";
|
42
|
|
- output += "Production by:" + flick_data_json.data[i][12]+"<br>";
|
|
40
|
+ output += "★" +"Movie Title:" + flick_data_json.data[i][8]+"<br>";
|
|
41
|
+ output += "Year made:" + flick_data_json.data[i][9]+"<br>";
|
|
42
|
+ output += "Production by:" + flick_data_json.data[i][12]+"<br>"+"<br>";
|
43
|
43
|
|
44
|
44
|
|
45
|
45
|
}
|