#26 jasamuels

Ouvert
jasamuels veut fusionner 3 révision(s) depuis jasamuels/JSON-Lab-2:master vers master
7 fichiers modifiés avec 220 ajouts et 0 suppressions
  1. 12
    0
      .idea/JSON-Lab-2.iml
  2. 4
    0
      .idea/encodings.xml
  3. 6
    0
      .idea/misc.xml
  4. 8
    0
      .idea/modules.xml
  5. 6
    0
      .idea/vcs.xml
  6. 152
    0
      .idea/workspace.xml
  7. 32
    0
      index.html

+ 12
- 0
.idea/JSON-Lab-2.iml Voir le fichier

@@ -0,0 +1,12 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="WEB_MODULE" version="4">
3
+  <component name="NewModuleRootManager">
4
+    <content url="file://$MODULE_DIR$">
5
+      <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+      <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+      <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+    </content>
9
+    <orderEntry type="inheritedJdk" />
10
+    <orderEntry type="sourceFolder" forTests="false" />
11
+  </component>
12
+</module>

+ 4
- 0
.idea/encodings.xml Voir le fichier

@@ -0,0 +1,4 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Encoding" addBOMForNewFiles="with NO BOM" />
4
+</project>

+ 6
- 0
.idea/misc.xml Voir le fichier

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="JavaScriptSettings">
4
+    <option name="languageLevel" value="ES6" />
5
+  </component>
6
+</project>

+ 8
- 0
.idea/modules.xml Voir le fichier

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/.idea/JSON-Lab-2.iml" filepath="$PROJECT_DIR$/.idea/JSON-Lab-2.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
.idea/vcs.xml Voir le fichier

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+  </component>
6
+</project>

+ 152
- 0
.idea/workspace.xml Voir le fichier

@@ -0,0 +1,152 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="a4cb58da-e3a4-48aa-b01c-d7b210292293" name="Default Changelist" comment="">
5
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/index.html" afterDir="false" />
7
+    </list>
8
+    <ignored path="$PROJECT_DIR$/.tmp/" />
9
+    <ignored path="$PROJECT_DIR$/temp/" />
10
+    <ignored path="$PROJECT_DIR$/tmp/" />
11
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
12
+    <option name="SHOW_DIALOG" value="false" />
13
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
14
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
15
+    <option name="LAST_RESOLUTION" value="IGNORE" />
16
+  </component>
17
+  <component name="FileEditorManager">
18
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
19
+      <file pinned="false" current-in-tab="true">
20
+        <entry file="file://$PROJECT_DIR$/index.html">
21
+          <provider selected="true" editor-type-id="text-editor">
22
+            <state relative-caret-position="1587">
23
+              <caret line="69" column="34" lean-forward="true" selection-start-line="69" selection-start-column="34" selection-end-line="69" selection-end-column="34" />
24
+            </state>
25
+          </provider>
26
+        </entry>
27
+      </file>
28
+    </leaf>
29
+  </component>
30
+  <component name="FileTemplateManagerImpl">
31
+    <option name="RECENT_TEMPLATES">
32
+      <list>
33
+        <option value="JavaScript File" />
34
+      </list>
35
+    </option>
36
+  </component>
37
+  <component name="Git.Settings">
38
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
39
+  </component>
40
+  <component name="IdeDocumentHistory">
41
+    <option name="CHANGED_PATHS">
42
+      <list>
43
+        <option value="$PROJECT_DIR$/tehjs.js" />
44
+        <option value="$PROJECT_DIR$/index.html" />
45
+      </list>
46
+    </option>
47
+  </component>
48
+  <component name="ProjectFrameBounds" extendedState="6">
49
+    <option name="x" value="365" />
50
+    <option name="y" value="23" />
51
+    <option name="width" value="1280" />
52
+    <option name="height" value="721" />
53
+  </component>
54
+  <component name="ProjectLevelVcsManager">
55
+    <ConfirmationsSetting value="2" id="Add" />
56
+  </component>
57
+  <component name="ProjectView">
58
+    <navigator proportions="" version="1">
59
+      <foldersAlwaysOnTop value="true" />
60
+    </navigator>
61
+    <panes>
62
+      <pane id="Scope" />
63
+      <pane id="ProjectPane">
64
+        <subPane>
65
+          <expand>
66
+            <path>
67
+              <item name="JSON-Lab-2" type="b2602c69:ProjectViewProjectNode" />
68
+              <item name="JSON-Lab-2" type="462c0819:PsiDirectoryNode" />
69
+            </path>
70
+          </expand>
71
+          <select />
72
+        </subPane>
73
+      </pane>
74
+    </panes>
75
+  </component>
76
+  <component name="PropertiesComponent">
77
+    <property name="WebServerToolWindowFactoryState" value="false" />
78
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
79
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
80
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
81
+    <property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
82
+  </component>
83
+  <component name="RunDashboard">
84
+    <option name="ruleStates">
85
+      <list>
86
+        <RuleState>
87
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
88
+        </RuleState>
89
+        <RuleState>
90
+          <option name="name" value="StatusDashboardGroupingRule" />
91
+        </RuleState>
92
+      </list>
93
+    </option>
94
+  </component>
95
+  <component name="SvnConfiguration">
96
+    <configuration />
97
+  </component>
98
+  <component name="TaskManager">
99
+    <task active="true" id="Default" summary="Default task">
100
+      <changelist id="a4cb58da-e3a4-48aa-b01c-d7b210292293" name="Default Changelist" comment="" />
101
+      <created>1543611178687</created>
102
+      <option name="number" value="Default" />
103
+      <option name="presentableId" value="Default" />
104
+      <updated>1543611178687</updated>
105
+      <workItem from="1543611180215" duration="1269000" />
106
+      <workItem from="1543872028398" duration="1330000" />
107
+      <workItem from="1543892043008" duration="53000" />
108
+      <workItem from="1543892111513" duration="3611000" />
109
+      <workItem from="1543940046186" duration="3345000" />
110
+    </task>
111
+    <servers />
112
+  </component>
113
+  <component name="TimeTrackingManager">
114
+    <option name="totallyTimeSpent" value="9608000" />
115
+  </component>
116
+  <component name="ToolWindowManager">
117
+    <frame x="4" y="31" width="1280" height="721" extended-state="6" />
118
+    <editor active="true" />
119
+    <layout>
120
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.13899921" />
121
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
122
+      <window_info id="Favorites" order="2" side_tool="true" />
123
+      <window_info anchor="bottom" id="Message" order="0" />
124
+      <window_info anchor="bottom" id="Find" order="1" />
125
+      <window_info anchor="bottom" id="Run" order="2" />
126
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
127
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
128
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
129
+      <window_info anchor="bottom" id="TODO" order="6" />
130
+      <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
131
+      <window_info anchor="bottom" id="Version Control" order="8" />
132
+      <window_info anchor="bottom" id="Terminal" order="9" />
133
+      <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
134
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
135
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
136
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
137
+    </layout>
138
+  </component>
139
+  <component name="TypeScriptGeneratedFilesManager">
140
+    <option name="version" value="1" />
141
+  </component>
142
+  <component name="editorHistoryManager">
143
+    <entry file="file://$PROJECT_DIR$/tehjs.js" />
144
+    <entry file="file://$PROJECT_DIR$/index.html">
145
+      <provider selected="true" editor-type-id="text-editor">
146
+        <state relative-caret-position="1587">
147
+          <caret line="69" column="34" lean-forward="true" selection-start-line="69" selection-start-column="34" selection-end-line="69" selection-end-column="34" />
148
+        </state>
149
+      </provider>
150
+    </entry>
151
+  </component>
152
+</project>

+ 32
- 0
index.html Voir le fichier

@@ -6,6 +6,38 @@
6 6
     <title>Import Local JSON Data | Zipcode Wilmington</title>
7 7
 </head>
8 8
 <body>
9
+<script type="text/javascript">
10
+    let arr = [];
11
+        let ajax = new XMLHttpRequest();
12
+        ajax.onreadystatechange = function () {
13
+            if (ajax.readyState === 4 && ajax.status === 200) {
14
+                var jsondata = JSON.parse(ajax.responseText);
15
+
16
+                for (i = 0; i < jsondata.data.length; i++) {
17
+                    if (jsondata.data[i][10] === 'Golden Gate Bridge'){
18
+                        arr.push(jsondata.data[i])
19
+                    }
20
+                }
21
+
22
+                console.log(arr);
23
+
24
+                for (i = 0; i < arr.length; i++){
25
+                    document.getElementById('result').innerHTML +=
26
+                        "<b>Movie Title:</b> " + arr[i][8]
27
+                        + " | <b>Release Year:</b> "
28
+                        + arr[i][9]
29
+                        + " | <b>Production Company:</b> "
30
+                        + arr[i][12]
31
+                        + "<br>";
32
+                }
33
+            }
34
+            };
35
+    ajax.open('GET', 'https://data.sfgov.org/api/views/yitu-d5am/rows.json?accessType=DOWNLOAD', true);
36
+    ajax.send();
37
+
38
+</script>
39
+
40
+
9 41
     <header class="main-header group">
10 42
         <div class="title"><h1>Zipcode Wilmington<br>Javascript Lab - Fall 2015</h1></div>
11 43
         <div class="lesson-link"><img src="./images/logos/js_logo.png" alt="Javascript"/></div>