Nuridalia.Hernandez před 7 roky
rodič
revize
9f60b95071
7 změnil soubory, kde provedl 311 přidání a 1 odebrání
  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. 247
    0
      .idea/workspace.xml
  6. 7
    1
      index.html
  7. 28
    0
      index.js

+ 9
- 0
.idea/JSON-Lab-2.iml Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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>

+ 247
- 0
.idea/workspace.xml Zobrazit soubor

@@ -0,0 +1,247 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="166b6d32-afe0-48e8-8088-19fe3c6b0e1f" name="Default Changelist" comment="">
5
+      <change afterPath="$PROJECT_DIR$/.idea/JSON-Lab-2.iml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
9
+      <change afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
10
+      <change afterPath="$PROJECT_DIR$/index.js" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/index.html" afterDir="false" />
12
+    </list>
13
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
14
+    <option name="SHOW_DIALOG" value="false" />
15
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
16
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
17
+    <option name="LAST_RESOLUTION" value="IGNORE" />
18
+  </component>
19
+  <component name="FUSProjectUsageTrigger">
20
+    <session id="1239265511">
21
+      <usages-collector id="statistics.lifecycle.project">
22
+        <counts>
23
+          <entry key="project.closed" value="4" />
24
+          <entry key="project.open.time.0" value="1" />
25
+          <entry key="project.open.time.1" value="3" />
26
+          <entry key="project.opened" value="4" />
27
+        </counts>
28
+      </usages-collector>
29
+      <usages-collector id="statistics.file.extensions.open">
30
+        <counts>
31
+          <entry key="html" value="1" />
32
+          <entry key="js" value="1" />
33
+        </counts>
34
+      </usages-collector>
35
+      <usages-collector id="statistics.file.types.open">
36
+        <counts>
37
+          <entry key="HTML" value="1" />
38
+          <entry key="JavaScript" value="1" />
39
+        </counts>
40
+      </usages-collector>
41
+      <usages-collector id="statistics.file.extensions.edit">
42
+        <counts>
43
+          <entry key="html" value="4" />
44
+          <entry key="js" value="7" />
45
+        </counts>
46
+      </usages-collector>
47
+      <usages-collector id="statistics.file.types.edit">
48
+        <counts>
49
+          <entry key="HTML" value="4" />
50
+          <entry key="JavaScript" value="7" />
51
+        </counts>
52
+      </usages-collector>
53
+    </session>
54
+  </component>
55
+  <component name="FileEditorManager">
56
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
57
+      <file pinned="false" current-in-tab="false">
58
+        <entry file="file://$PROJECT_DIR$/index.html">
59
+          <provider selected="true" editor-type-id="text-editor">
60
+            <state relative-caret-position="60">
61
+              <caret line="4" selection-start-line="4" selection-end-line="4" />
62
+            </state>
63
+          </provider>
64
+        </entry>
65
+      </file>
66
+      <file pinned="false" current-in-tab="true">
67
+        <entry file="file://$PROJECT_DIR$/index.js">
68
+          <provider selected="true" editor-type-id="text-editor">
69
+            <state relative-caret-position="105">
70
+              <caret line="7" column="41" selection-start-line="7" selection-start-column="41" selection-end-line="7" selection-end-column="41" />
71
+            </state>
72
+          </provider>
73
+        </entry>
74
+      </file>
75
+    </leaf>
76
+  </component>
77
+  <component name="Git.Settings">
78
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
79
+  </component>
80
+  <component name="IdeDocumentHistory">
81
+    <option name="CHANGED_PATHS">
82
+      <list>
83
+        <option value="$PROJECT_DIR$/index.html" />
84
+        <option value="$PROJECT_DIR$/index.js" />
85
+      </list>
86
+    </option>
87
+  </component>
88
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
89
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
90
+  <component name="JsGulpfileManager">
91
+    <detection-done>true</detection-done>
92
+    <sorting>DEFINITION_ORDER</sorting>
93
+  </component>
94
+  <component name="ProjectFrameBounds">
95
+    <option name="x" value="120" />
96
+    <option name="y" value="294" />
97
+    <option name="width" value="1119" />
98
+    <option name="height" value="710" />
99
+  </component>
100
+  <component name="ProjectView">
101
+    <navigator proportions="" version="1">
102
+      <foldersAlwaysOnTop value="true" />
103
+    </navigator>
104
+    <panes>
105
+      <pane id="ProjectPane">
106
+        <subPane>
107
+          <expand>
108
+            <path>
109
+              <item name="JSON-Lab-2" type="b2602c69:ProjectViewProjectNode" />
110
+              <item name="JSON-Lab-2" 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=".idea" type="462c0819:PsiDirectoryNode" />
116
+            </path>
117
+          </expand>
118
+          <select />
119
+        </subPane>
120
+      </pane>
121
+      <pane id="Scope" />
122
+      <pane id="PackagesPane" />
123
+    </panes>
124
+  </component>
125
+  <component name="PropertiesComponent">
126
+    <property name="WebServerToolWindowFactoryState" value="false" />
127
+    <property name="aspect.path.notification.shown" value="true" />
128
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1543452989701" />
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="RunManager">
146
+    <configuration name="index.html" type="JavascriptDebugType" factoryName="JavaScript Debug" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/JSON-Lab-2/index.html">
147
+      <method v="2" />
148
+    </configuration>
149
+    <recent_temporary>
150
+      <list>
151
+        <item itemvalue="JavaScript Debug.index.html" />
152
+      </list>
153
+    </recent_temporary>
154
+  </component>
155
+  <component name="SvnConfiguration">
156
+    <configuration />
157
+  </component>
158
+  <component name="TaskManager">
159
+    <task active="true" id="Default" summary="Default task">
160
+      <changelist id="166b6d32-afe0-48e8-8088-19fe3c6b0e1f" name="Default Changelist" comment="" />
161
+      <created>1543426464334</created>
162
+      <option name="number" value="Default" />
163
+      <option name="presentableId" value="Default" />
164
+      <updated>1543426464334</updated>
165
+      <workItem from="1543426465651" duration="762000" />
166
+      <workItem from="1543435357993" duration="18000" />
167
+      <workItem from="1543439593573" duration="133000" />
168
+      <workItem from="1543452500520" duration="336000" />
169
+    </task>
170
+    <servers />
171
+  </component>
172
+  <component name="TimeTrackingManager">
173
+    <option name="totallyTimeSpent" value="1249000" />
174
+  </component>
175
+  <component name="ToolWindowManager">
176
+    <frame x="120" y="294" width="1119" height="710" extended-state="0" />
177
+    <editor active="true" />
178
+    <layout>
179
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.26369545" />
180
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
181
+      <window_info id="Image Layers" order="2" />
182
+      <window_info id="Designer" order="3" />
183
+      <window_info id="UI Designer" order="4" />
184
+      <window_info id="Capture Tool" order="5" />
185
+      <window_info id="Favorites" order="6" side_tool="true" />
186
+      <window_info anchor="bottom" id="Message" order="0" />
187
+      <window_info anchor="bottom" id="Find" order="1" />
188
+      <window_info anchor="bottom" id="Run" order="2" />
189
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
190
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
191
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
192
+      <window_info anchor="bottom" id="TODO" order="6" />
193
+      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
194
+      <window_info anchor="bottom" id="Terminal" order="8" />
195
+      <window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
196
+      <window_info anchor="bottom" id="Version Control" order="10" />
197
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
198
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
199
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
200
+      <window_info anchor="right" id="Palette" order="3" />
201
+      <window_info anchor="right" id="Capture Analysis" order="4" />
202
+      <window_info anchor="right" id="Theme Preview" order="5" />
203
+      <window_info anchor="right" id="Palette&#9;" order="6" />
204
+      <window_info anchor="right" id="SciView" order="7" />
205
+      <window_info anchor="right" id="Database" order="8" />
206
+      <window_info anchor="right" id="Maven Projects" order="9" />
207
+    </layout>
208
+  </component>
209
+  <component name="TypeScriptGeneratedFilesManager">
210
+    <option name="version" value="1" />
211
+  </component>
212
+  <component name="VcsContentAnnotationSettings">
213
+    <option name="myLimit" value="2678400000" />
214
+  </component>
215
+  <component name="editorHistoryManager">
216
+    <entry file="file://$PROJECT_DIR$/index.html">
217
+      <provider selected="true" editor-type-id="text-editor">
218
+        <state relative-caret-position="60">
219
+          <caret line="4" selection-start-line="4" selection-end-line="4" />
220
+        </state>
221
+      </provider>
222
+    </entry>
223
+    <entry file="file://$PROJECT_DIR$/index.js">
224
+      <provider selected="true" editor-type-id="text-editor">
225
+        <state relative-caret-position="105">
226
+          <caret line="7" column="41" selection-start-line="7" selection-start-column="41" selection-end-line="7" selection-end-column="41" />
227
+        </state>
228
+      </provider>
229
+    </entry>
230
+  </component>
231
+  <component name="masterDetails">
232
+    <states>
233
+      <state key="ProjectJDKs.UI">
234
+        <settings>
235
+          <last-edited>1.8</last-edited>
236
+          <splitter-proportions>
237
+            <option name="proportions">
238
+              <list>
239
+                <option value="0.2" />
240
+              </list>
241
+            </option>
242
+          </splitter-proportions>
243
+        </settings>
244
+      </state>
245
+    </states>
246
+  </component>
247
+</project>

+ 7
- 1
index.html Zobrazit soubor

@@ -1,9 +1,15 @@
1
+
2
+
3
+
4
+
1 5
 <!DOCTYPE html>
2 6
 <html lang="en">
3 7
 <head>
4 8
     <meta charset="UTF-8">
5 9
     <link href="./css/style.css" type="text/css" rel="stylesheet">
6 10
     <title>Import Local JSON Data | Zipcode Wilmington</title>
11
+    <script src = "index.js"></script>
12
+
7 13
 </head>
8 14
 <body>
9 15
     <header class="main-header group">
@@ -39,4 +45,4 @@
39 45
     	<div id="result"></div>
40 46
     </section>
41 47
 </body>
42
-</html>
48
+</html>

+ 28
- 0
index.js Zobrazit soubor

@@ -0,0 +1,28 @@
1
+var request = new XMLHttpRequest();
2
+
3
+request.open('GET', "https://data.sfgov.org/api/views/yitu-d5am/rows.json?accessType=DOWNLOAD");
4
+
5
+request.onreadystatechange = function () {
6
+
7
+    let data_movies;
8
+    if ((request.status === 200 && request.readyState === 4)) {
9
+        // console.log(request.responseText);
10
+
11
+        data_movies = JSON.parse(request.response);
12
+
13
+        var movieData = data_movies.data;
14
+
15
+        let output = "";
16
+        for (let i = 0; i < movieData.length; i++) {
17
+            if (movieData[i][10] === "Golden Gate Bridge") {
18
+                var tempMovie = movieData[i];
19
+                output += "Movie Title: " + tempMovie[8] + "<br>";
20
+                output += "Release Year: " + tempMovie[9] + "<br>";
21
+                output += "Production Company: " + tempMovie[12] + "<br><br>";
22
+            }
23
+        }
24
+
25
+        document.getElementById('result').innerHTML = output;
26
+    }
27
+};
28
+request.send();