Xcuello 7 лет назад
Родитель
Сommit
061d85932b
6 измененных файлов: 285 добавлений и 1 удалений
  1. 9
    0
      .idea/JSON-Lab-2.iml
  2. 6
    0
      .idea/misc.xml
  3. 8
    0
      .idea/modules.xml
  4. 6
    0
      .idea/vcs.xml
  5. 226
    0
      .idea/workspace.xml
  6. 30
    1
      index.html

+ 9
- 0
.idea/JSON-Lab-2.iml Просмотреть файл

@@ -0,0 +1,9 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+    <exclude-output />
5
+    <content url="file://$MODULE_DIR$" />
6
+    <orderEntry type="inheritedJdk" />
7
+    <orderEntry type="sourceFolder" forTests="false" />
8
+  </component>
9
+</module>

+ 6
- 0
.idea/misc.xml Просмотреть файл

@@ -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 Просмотреть файл

@@ -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 Просмотреть файл

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

+ 226
- 0
.idea/workspace.xml Просмотреть файл

@@ -0,0 +1,226 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="bd5a8157-34c7-4aa0-8c08-415caa0e862f" name="Default Changelist" comment="">
5
+      <change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
6
+    </list>
7
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
+    <option name="SHOW_DIALOG" value="false" />
9
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+    <option name="LAST_RESOLUTION" value="IGNORE" />
12
+  </component>
13
+  <component name="FUSProjectUsageTrigger">
14
+    <session id="70125871">
15
+      <usages-collector id="statistics.lifecycle.project">
16
+        <counts>
17
+          <entry key="project.closed" value="1" />
18
+          <entry key="project.open.time.0" value="1" />
19
+          <entry key="project.opened" value="1" />
20
+        </counts>
21
+      </usages-collector>
22
+      <usages-collector id="statistics.file.extensions.open">
23
+        <counts>
24
+          <entry key="css" value="1" />
25
+          <entry key="html" value="1" />
26
+          <entry key="iml" value="1" />
27
+          <entry key="xml" value="4" />
28
+        </counts>
29
+      </usages-collector>
30
+      <usages-collector id="statistics.file.types.open">
31
+        <counts>
32
+          <entry key="CSS" value="1" />
33
+          <entry key="HTML" value="1" />
34
+          <entry key="IDEA_MODULE" value="1" />
35
+          <entry key="XML" value="4" />
36
+        </counts>
37
+      </usages-collector>
38
+    </session>
39
+  </component>
40
+  <component name="FileEditorManager">
41
+    <leaf>
42
+      <file pinned="false" current-in-tab="false">
43
+        <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
44
+          <provider selected="true" editor-type-id="text-editor" />
45
+        </entry>
46
+      </file>
47
+      <file pinned="false" current-in-tab="false">
48
+        <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
49
+          <provider selected="true" editor-type-id="text-editor" />
50
+        </entry>
51
+      </file>
52
+      <file pinned="false" current-in-tab="false">
53
+        <entry file="file://$PROJECT_DIR$/.idea/misc.xml">
54
+          <provider selected="true" editor-type-id="text-editor" />
55
+        </entry>
56
+      </file>
57
+      <file pinned="false" current-in-tab="false">
58
+        <entry file="file://$PROJECT_DIR$/.idea/JSON-Lab-2.iml">
59
+          <provider selected="true" editor-type-id="text-editor" />
60
+        </entry>
61
+      </file>
62
+      <file pinned="false" current-in-tab="true">
63
+        <entry file="file://$PROJECT_DIR$/index.html">
64
+          <provider selected="true" editor-type-id="text-editor">
65
+            <state relative-caret-position="-101" />
66
+          </provider>
67
+        </entry>
68
+      </file>
69
+    </leaf>
70
+  </component>
71
+  <component name="Git.Settings">
72
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
73
+  </component>
74
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
75
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
76
+  <component name="JsGulpfileManager">
77
+    <detection-done>true</detection-done>
78
+    <sorting>DEFINITION_ORDER</sorting>
79
+  </component>
80
+  <component name="ProjectFrameBounds">
81
+    <option name="y" value="23" />
82
+    <option name="width" value="1275" />
83
+    <option name="height" value="689" />
84
+  </component>
85
+  <component name="ProjectView">
86
+    <navigator proportions="" version="1">
87
+      <foldersAlwaysOnTop value="true" />
88
+    </navigator>
89
+    <panes>
90
+      <pane id="ProjectPane">
91
+        <subPane>
92
+          <expand>
93
+            <path>
94
+              <item name="JSON-Lab-2" type="b2602c69:ProjectViewProjectNode" />
95
+              <item name="JSON-Lab-2" type="462c0819:PsiDirectoryNode" />
96
+            </path>
97
+            <path>
98
+              <item name="JSON-Lab-2" type="b2602c69:ProjectViewProjectNode" />
99
+              <item name="JSON-Lab-2" type="462c0819:PsiDirectoryNode" />
100
+              <item name=".idea" type="462c0819:PsiDirectoryNode" />
101
+            </path>
102
+            <path>
103
+              <item name="JSON-Lab-2" type="b2602c69:ProjectViewProjectNode" />
104
+              <item name="JSON-Lab-2" type="462c0819:PsiDirectoryNode" />
105
+              <item name="css" type="462c0819:PsiDirectoryNode" />
106
+            </path>
107
+            <path>
108
+              <item name="JSON-Lab-2" type="b2602c69:ProjectViewProjectNode" />
109
+              <item name="JSON-Lab-2" type="462c0819:PsiDirectoryNode" />
110
+              <item name="images" type="462c0819:PsiDirectoryNode" />
111
+            </path>
112
+            <path>
113
+              <item name="JSON-Lab-2" type="b2602c69:ProjectViewProjectNode" />
114
+              <item name="JSON-Lab-2" type="462c0819:PsiDirectoryNode" />
115
+              <item name="images" type="462c0819:PsiDirectoryNode" />
116
+              <item name="logos" type="462c0819:PsiDirectoryNode" />
117
+            </path>
118
+          </expand>
119
+          <select />
120
+        </subPane>
121
+      </pane>
122
+      <pane id="PackagesPane" />
123
+      <pane id="Scope" />
124
+    </panes>
125
+  </component>
126
+  <component name="PropertiesComponent">
127
+    <property name="WebServerToolWindowFactoryState" value="false" />
128
+    <property name="aspect.path.notification.shown" value="true" />
129
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
130
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
131
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
132
+  </component>
133
+  <component name="RunDashboard">
134
+    <option name="ruleStates">
135
+      <list>
136
+        <RuleState>
137
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
138
+        </RuleState>
139
+        <RuleState>
140
+          <option name="name" value="StatusDashboardGroupingRule" />
141
+        </RuleState>
142
+      </list>
143
+    </option>
144
+  </component>
145
+  <component name="SvnConfiguration">
146
+    <configuration />
147
+  </component>
148
+  <component name="TaskManager">
149
+    <task active="true" id="Default" summary="Default task">
150
+      <changelist id="bd5a8157-34c7-4aa0-8c08-415caa0e862f" name="Default Changelist" comment="" />
151
+      <created>1543415645239</created>
152
+      <option name="number" value="Default" />
153
+      <option name="presentableId" value="Default" />
154
+      <updated>1543415645239</updated>
155
+      <workItem from="1543415646603" duration="514000" />
156
+    </task>
157
+    <servers />
158
+  </component>
159
+  <component name="TimeTrackingManager">
160
+    <option name="totallyTimeSpent" value="514000" />
161
+  </component>
162
+  <component name="ToolWindowManager">
163
+    <frame x="0" y="23" width="1275" height="689" extended-state="0" />
164
+    <editor active="true" />
165
+    <layout>
166
+      <window_info id="Image Layers" />
167
+      <window_info id="Designer" />
168
+      <window_info id="UI Designer" />
169
+      <window_info id="Capture Tool" />
170
+      <window_info id="Favorites" side_tool="true" />
171
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24979724" />
172
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
173
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
174
+      <window_info anchor="bottom" id="Version Control" />
175
+      <window_info anchor="bottom" id="Terminal" />
176
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
177
+      <window_info anchor="bottom" id="Message" order="0" />
178
+      <window_info anchor="bottom" id="Find" order="1" />
179
+      <window_info anchor="bottom" id="Run" order="2" />
180
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
181
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
182
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
183
+      <window_info anchor="bottom" id="TODO" order="6" />
184
+      <window_info anchor="right" id="Palette" />
185
+      <window_info anchor="right" id="Theme Preview" />
186
+      <window_info anchor="right" id="Capture Analysis" />
187
+      <window_info anchor="right" id="Palette&#9;" />
188
+      <window_info anchor="right" id="Database" />
189
+      <window_info anchor="right" id="Maven Projects" />
190
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
191
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
192
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
193
+    </layout>
194
+  </component>
195
+  <component name="TypeScriptGeneratedFilesManager">
196
+    <option name="version" value="1" />
197
+  </component>
198
+  <component name="VcsContentAnnotationSettings">
199
+    <option name="myLimit" value="2678400000" />
200
+  </component>
201
+  <component name="editorHistoryManager">
202
+    <entry file="file://$PROJECT_DIR$/.idea/misc.xml">
203
+      <provider selected="true" editor-type-id="text-editor" />
204
+    </entry>
205
+    <entry file="file://$PROJECT_DIR$/css/style.css">
206
+      <provider selected="true" editor-type-id="text-editor" />
207
+    </entry>
208
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
209
+      <provider selected="true" editor-type-id="text-editor" />
210
+    </entry>
211
+    <entry file="file://$PROJECT_DIR$/.idea/vcs.xml">
212
+      <provider selected="true" editor-type-id="text-editor" />
213
+    </entry>
214
+    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
215
+      <provider selected="true" editor-type-id="text-editor" />
216
+    </entry>
217
+    <entry file="file://$PROJECT_DIR$/.idea/JSON-Lab-2.iml">
218
+      <provider selected="true" editor-type-id="text-editor" />
219
+    </entry>
220
+    <entry file="file://$PROJECT_DIR$/index.html">
221
+      <provider selected="true" editor-type-id="text-editor">
222
+        <state relative-caret-position="-101" />
223
+      </provider>
224
+    </entry>
225
+  </component>
226
+</project>

+ 30
- 1
index.html Просмотреть файл

@@ -33,10 +33,39 @@
33 33
         <p>Use <code>document.getElementById('result').innerHTML += <i>your_output</i>;</code> to write the movie's info to the page.</p>
34 34
         <p>Append <code>"&ltbr&gt"</code> to output code to create a new line</p>
35 35
     </article>
36
+    <script>
37
+
38
+    var xhttp = new XMLHttpRequest();
39
+    var url = "https://data.sfgov.org/api/views/yitu-d5am/rows.json?accessType=DOWNLOAD";
40
+
41
+xhttp.onreadystatechange = function() {
42
+
43
+    if (this.readyState == 4 && this.status == 200) {
44
+        var obj = this.responseText;
45
+        var obj1 = JSON.parse(obj);
46
+        var obj2 = obj1.data;
47
+
48
+        for (var i = 0; i < obj2.length; i++) {
49
+
50
+        var movies = obj2[i];
51
+
52
+          if(movies[10] == "Golden Gate Bridge"){
53
+
54
+          document.getElementById("result").innerHTML += movies[9] + "<br>";
55
+          document.getElementById("result").innerHTML += movies[8] + "<br>";
56
+          document.getElementById("result").innerHTML += movies[12] + "<br>";
57
+          }
58
+          }
59
+  }
60
+};
61
+xhttp.open("GET",url, true);
62
+xhttp.send();
63
+
64
+    </script>
36 65
 
37 66
     <section>
38 67
     	<h1>Movie Information</h1>
39 68
     	<div id="result"></div>
40 69
     </section>
41 70
 </body>
42
-</html>
71
+</html>