質問編集履歴
1
index\.htmlを入れました.実際は国名が多いのでselectの部分が長いので割愛しています\.やりたいことはこのhtmlファイルのselectで選ばれたものを処理してresultのところで表示した
test
CHANGED
File without changes
|
test
CHANGED
@@ -97,3 +97,299 @@
|
|
97
97
|
|
98
98
|
|
99
99
|
となっているのでHTTPメソッドが違うのかな?とも思っています.Flaskに明るい方,どうかよろしくお願いします.
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
追記
|
110
|
+
|
111
|
+
下はindex.htmlです
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
```
|
116
|
+
|
117
|
+
<!DOCTYPE html>
|
118
|
+
|
119
|
+
<html lang="en">
|
120
|
+
|
121
|
+
<head>
|
122
|
+
|
123
|
+
<title>Flght Radiation Simulator</title>
|
124
|
+
|
125
|
+
<link rel="stylesheet" href="/static/apps.css">
|
126
|
+
|
127
|
+
</head>
|
128
|
+
|
129
|
+
<body>
|
130
|
+
|
131
|
+
<h1>Flying Radiation Simulator</h1>
|
132
|
+
|
133
|
+
<p><font size="5" face="Comic Sans MS">Please select Leaving & Going City <br><br></font></p>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<!-- What's the Flying Radiation Simulater? </font></p> -->
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<div class="small-5 medium-4 columns padding-left-none">
|
142
|
+
|
143
|
+
<select class="Leaving City" id="fromCity" name="Leave">
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
<option selected="selected" value="">Leaving Country</option>
|
148
|
+
|
149
|
+
<!--<select name="country">-->
|
150
|
+
|
151
|
+
<option value="">Country...</option>
|
152
|
+
|
153
|
+
<option value="Afganistan">Afghanistan</option>
|
154
|
+
|
155
|
+
...
|
156
|
+
|
157
|
+
...
|
158
|
+
|
159
|
+
<option value="Yemen">Yemen</option>
|
160
|
+
|
161
|
+
<option value="Zaire">Zaire</option>
|
162
|
+
|
163
|
+
<option value="Zambia">Zambia</option>
|
164
|
+
|
165
|
+
<option value="Zimbabwe">Zimbabwe</option>
|
166
|
+
|
167
|
+
</select>
|
168
|
+
|
169
|
+
</select>
|
170
|
+
|
171
|
+
</div>
|
172
|
+
|
173
|
+
</div>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
<div id="returnContent">
|
178
|
+
|
179
|
+
<div class="small-7 medium-8 columns padding-right-none">
|
180
|
+
|
181
|
+
<div class="input-group input-group-custom">
|
182
|
+
|
183
|
+
<span class="input-group-label input-group-label-blue">
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<div class="small-5 medium-4 columns padding-left-none">
|
188
|
+
|
189
|
+
<select class="input-group-field" id="fromTime" name="go">
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
<option selected="selected" value="">Going Country</option>
|
194
|
+
|
195
|
+
<!--<select name="country">-->
|
196
|
+
|
197
|
+
<option value="">Country...</option>
|
198
|
+
|
199
|
+
<option value="Afganistan">Afghanistan</option>
|
200
|
+
|
201
|
+
...
|
202
|
+
|
203
|
+
...
|
204
|
+
|
205
|
+
<option value="Zambia">Zambia</option>
|
206
|
+
|
207
|
+
<option value="Zimbabwe">Zimbabwe</option>
|
208
|
+
|
209
|
+
</select>
|
210
|
+
|
211
|
+
</select>
|
212
|
+
|
213
|
+
</div>
|
214
|
+
|
215
|
+
</div>
|
216
|
+
|
217
|
+
</select>
|
218
|
+
|
219
|
+
</div>
|
220
|
+
|
221
|
+
</div>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
<p><font size="5" face="Comic Sans MS">
|
226
|
+
|
227
|
+
Result!
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
{{ ms }} mSv
|
232
|
+
|
233
|
+
</font></p>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
<p>
|
238
|
+
|
239
|
+
<input type="button" value="Calclate!" onclick="location.href='http://127.0.0.1:5000/result'">
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
<p><font size="5" face="Comic Sans MS">What's the Flying Radiation Simulater? <br><br>
|
244
|
+
|
245
|
+
This tool calculates sky’s radiation dose from collected dates.<br> You can select safe trajectory from calculated results. This tool protects your health from radiation in flight.
|
246
|
+
|
247
|
+
</font></p>
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
</body>
|
252
|
+
|
253
|
+
</html>
|
254
|
+
|
255
|
+
```
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
以下はresult.htmlです
|
260
|
+
|
261
|
+
```
|
262
|
+
|
263
|
+
<!DOCTYPE html>
|
264
|
+
|
265
|
+
<html lang="en">
|
266
|
+
|
267
|
+
<head>
|
268
|
+
|
269
|
+
<title>Flight Radiation Simulator</title>
|
270
|
+
|
271
|
+
</head>
|
272
|
+
|
273
|
+
<body>
|
274
|
+
|
275
|
+
<h1>Flight Radiation Simulator</h1>
|
276
|
+
|
277
|
+
<p><font size="5" face="Comic Sans MS">Please select Leaving & Going City <br><br></font></p>
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
<!-- What's the Flight Radiation Simulater? </font></p> -->
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
<div class="small-5 medium-4 columns padding-left-none">
|
286
|
+
|
287
|
+
<select class="Leaving City" id="fromCity" name="LeaveCityform">
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
<option selected="selected" value="">Leaving Country</option>
|
292
|
+
|
293
|
+
<!--<select name="country">-->
|
294
|
+
|
295
|
+
<option value="">Country...</option>
|
296
|
+
|
297
|
+
<option value="Afganistan">Afghanistan</option>
|
298
|
+
|
299
|
+
...
|
300
|
+
|
301
|
+
...
|
302
|
+
|
303
|
+
<option value="Yemen">Yemen</option>
|
304
|
+
|
305
|
+
<option value="Zaire">Zaire</option>
|
306
|
+
|
307
|
+
<option value="Zambia">Zambia</option>
|
308
|
+
|
309
|
+
<option value="Zimbabwe">Zimbabwe</option>
|
310
|
+
|
311
|
+
</select>
|
312
|
+
|
313
|
+
</select>
|
314
|
+
|
315
|
+
</div>
|
316
|
+
|
317
|
+
</div>
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
<div id="returnContent">
|
322
|
+
|
323
|
+
<div class="small-7 medium-8 columns padding-right-none">
|
324
|
+
|
325
|
+
<div class="input-group input-group-custom">
|
326
|
+
|
327
|
+
<span class="input-group-label input-group-label-blue">
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
<div class="small-5 medium-4 columns padding-left-none">
|
332
|
+
|
333
|
+
<select class="input-group-field" id="fromTime" name="goDepartureTime">
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
<option selected="selected" value="">Going Country</option>
|
338
|
+
|
339
|
+
<!--<select name="country">-->
|
340
|
+
|
341
|
+
<option value="">Country...</option>
|
342
|
+
|
343
|
+
<option value="Afganistan">Afghanistan</option>
|
344
|
+
|
345
|
+
...
|
346
|
+
|
347
|
+
...
|
348
|
+
|
349
|
+
<option value="Zambia">Zambia</option>
|
350
|
+
|
351
|
+
<option value="Zimbabwe">Zimbabwe</option>
|
352
|
+
|
353
|
+
</select>
|
354
|
+
|
355
|
+
</select>
|
356
|
+
|
357
|
+
</div>
|
358
|
+
|
359
|
+
</div>
|
360
|
+
|
361
|
+
</select>
|
362
|
+
|
363
|
+
</div>
|
364
|
+
|
365
|
+
</div>
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
<p><font size="5" face="Comic Sans MS"></p>
|
370
|
+
|
371
|
+
Result!
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
{{ ms }} mSv
|
376
|
+
|
377
|
+
</font></p>
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
<p><font size="5" face="Comic Sans MS">What's the Flying Radiation Simulater? <br><br>
|
384
|
+
|
385
|
+
This tool calculates cosmic radiation dose from collected dates.<br> You can select safe trajectory from calculated results. This tool protects your health from radiation in flight.
|
386
|
+
|
387
|
+
</font></p>
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
</body>
|
392
|
+
|
393
|
+
</html>
|
394
|
+
|
395
|
+
```
|