質問編集履歴

2

コードの修正

2021/12/19 13:20

投稿

Pieshin
Pieshin

スコア3

test CHANGED
File without changes
test CHANGED
@@ -226,198 +226,184 @@
226
226
 
227
227
  <body>
228
228
 
229
- <font size="6"><b>中間、期末テスト自動解析システム For Web</b></font><br>
229
+ <font size="6"><b>点数記録 For Web</b></font><br>
230
230
 
231
231
 
232
232
 
233
233
 
234
234
 
235
- ※このツールはiPadのスプレッドシートから移植しています。不具合あれば以下まで。<br>ryohirose0807@gmail.com
236
-
237
- <br>
235
+ <br>
236
+
237
+ <div class="input-group" id="kokugo">
238
+
239
+ <span class="input-group-text">国語</span>
240
+
241
+ <input type="text" aria-label="First name" class="form-control" name="kokugos" id="kokugos" required>
242
+
243
+ <input type="text" aria-label="Last name" class="form-control" name="kokugoh" id="kokugoh">
244
+
245
+ </div>
246
+
247
+
248
+
249
+ <div class="input-group" id="rika1">
250
+
251
+ <span class="input-group-text">理1</span>
252
+
253
+ <input type="text" aria-label="First name" class="form-control" name="rika1s" id="rika1s">
254
+
255
+ <input type="text" aria-label="Last name" class="form-control" name="rika1h" id="rika1h">
256
+
257
+ </div>
258
+
259
+
260
+
261
+ <div class="input-group" id="rika2">
262
+
263
+ <span class="input-group-text">理2</span>
264
+
265
+ <input type="text" aria-label="First name" class="form-control" name="rika2s" id="rika2s">
266
+
267
+ <input type="text" aria-label="Last name" class="form-control" name="rika2h" id="rika2h">
268
+
269
+ </div>
270
+
271
+
272
+
273
+ <div class="input-group" id="tiri">
274
+
275
+ <span class="input-group-text">地理</span>
276
+
277
+ <input type="text" aria-label="First name" class="form-control" name="tiris" id="tiris">
278
+
279
+ <input type="text" aria-label="Last name" class="form-control" name="tirih" id="tirih">
280
+
281
+ </div>
282
+
283
+
284
+
285
+ <div class="input-group" id="rekisi">
286
+
287
+ <span class="input-group-text">歴史</span>
288
+
289
+ <input type="text" aria-label="First name" class="form-control" name="rekisis" id="rekisis">
290
+
291
+ <input type="text" aria-label="Last name" class="form-control" name="rekisih" id="rekisih">
292
+
293
+ </div>
294
+
295
+
296
+
297
+ <div class="input-group" id="daisuu">
298
+
299
+ <span class="input-group-text">代数</span>
300
+
301
+ <input type="text" aria-label="First name" class="form-control" name="daisuus" id="daisuus">
302
+
303
+ <input type="text" aria-label="Last name" class="form-control" name="daisuuh" id="daisuuh">
304
+
305
+ </div>
306
+
307
+
308
+
309
+ <div class="input-group" id="zukei">
310
+
311
+ <span class="input-group-text">図形</span>
312
+
313
+ <input type="text" aria-label="First name" class="form-control" name="zukeis" id="zukeis">
314
+
315
+ <input type="text" aria-label="Last name" class="form-control" name="zukeih" id="zukeih">
316
+
317
+ </div>
318
+
319
+
320
+
321
+ <div class="input-group" id="eigo">
322
+
323
+ <span class="input-group-text">英語</span>
324
+
325
+ <input type="text" aria-label="First name" class="form-control" name="eigos" id="eigos">
326
+
327
+ <input type="text" aria-label="Last name" class="form-control" name="eigoh" id="eigoh">
328
+
329
+ </div>
330
+
331
+
332
+
333
+ <div class="input-group" id="kagi">
334
+
335
+ <span class="input-group-text">家技</span>
336
+
337
+ <input type="text" aria-label="First name" class="form-control" name="kagis" id="kagis">
338
+
339
+ <input type="text" aria-label="Last name" class="form-control" name="kagih" id="kagih">
340
+
341
+ </div>
342
+
343
+
344
+
345
+ <div class="input-group" id="onngaku">
346
+
347
+ <span class="input-group-text">音楽</span>
348
+
349
+ <input type="text" aria-label="First name" class="form-control" name="onngakus" id="onngakus">
350
+
351
+ <input type="text" aria-label="Last name" class="form-control" name="onngakuh" id="onngakuh">
352
+
353
+ </div>
354
+
355
+
356
+
357
+ <div class="input-group" id="bizyutu">
358
+
359
+ <span class="input-group-text">美術</span>
360
+
361
+ <input type="text" aria-label="First name" class="form-control" name="bizyutus" id="bizyutus">
362
+
363
+ <input type="text" aria-label="Last name" class="form-control" name="bizyutuh" id="bizyutuh">
364
+
365
+ </div>
366
+
367
+
368
+
369
+ <div class="input-group" id="hotai">
370
+
371
+ <span class="input-group-text">保体</span>
372
+
373
+ <input type="text" aria-label="First name" class="form-control" name="hotais" id="hotais">
374
+
375
+ <input type="text" aria-label="Last name" class="form-control" name="hotaih" id="hotaih">
376
+
377
+ </div>
378
+
379
+
380
+
381
+ <center>
382
+
383
+ <button type="button" class="mt-3 btn btn-outline-secondary" onclick="cancan()">取り消し</button>
384
+
385
+ <button type="button" class="mt-3 btn btn-outline-primary" onclick="entano()">実行</button>
386
+
387
+ </center>
388
+
389
+
390
+
391
+
392
+
393
+ <script>
394
+
395
+ document.write(soten);
396
+
397
+ </script>
398
+
399
+
400
+
401
+ </body>
238
402
 
239
403
 
240
404
 
241
405
 
242
406
 
243
-
244
-
245
-
246
-
247
-
248
-
249
- <br>
250
-
251
- <div class="input-group" id="kokugo">
252
-
253
- <span class="input-group-text">国語</span>
254
-
255
- <input type="text" aria-label="First name" class="form-control" name="kokugos" id="kokugos" required>
256
-
257
- <input type="text" aria-label="Last name" class="form-control" name="kokugoh" id="kokugoh">
258
-
259
- </div>
260
-
261
-
262
-
263
- <div class="input-group" id="rika1">
264
-
265
- <span class="input-group-text">理1</span>
266
-
267
- <input type="text" aria-label="First name" class="form-control" name="rika1s" id="rika1s">
268
-
269
- <input type="text" aria-label="Last name" class="form-control" name="rika1h" id="rika1h">
270
-
271
- </div>
272
-
273
-
274
-
275
- <div class="input-group" id="rika2">
276
-
277
- <span class="input-group-text">理2</span>
278
-
279
- <input type="text" aria-label="First name" class="form-control" name="rika2s" id="rika2s">
280
-
281
- <input type="text" aria-label="Last name" class="form-control" name="rika2h" id="rika2h">
282
-
283
- </div>
284
-
285
-
286
-
287
- <div class="input-group" id="tiri">
288
-
289
- <span class="input-group-text">地理</span>
290
-
291
- <input type="text" aria-label="First name" class="form-control" name="tiris" id="tiris">
292
-
293
- <input type="text" aria-label="Last name" class="form-control" name="tirih" id="tirih">
294
-
295
- </div>
296
-
297
-
298
-
299
- <div class="input-group" id="rekisi">
300
-
301
- <span class="input-group-text">歴史</span>
302
-
303
- <input type="text" aria-label="First name" class="form-control" name="rekisis" id="rekisis">
304
-
305
- <input type="text" aria-label="Last name" class="form-control" name="rekisih" id="rekisih">
306
-
307
- </div>
308
-
309
-
310
-
311
- <div class="input-group" id="daisuu">
312
-
313
- <span class="input-group-text">代数</span>
314
-
315
- <input type="text" aria-label="First name" class="form-control" name="daisuus" id="daisuus">
316
-
317
- <input type="text" aria-label="Last name" class="form-control" name="daisuuh" id="daisuuh">
318
-
319
- </div>
320
-
321
-
322
-
323
- <div class="input-group" id="zukei">
324
-
325
- <span class="input-group-text">図形</span>
326
-
327
- <input type="text" aria-label="First name" class="form-control" name="zukeis" id="zukeis">
328
-
329
- <input type="text" aria-label="Last name" class="form-control" name="zukeih" id="zukeih">
330
-
331
- </div>
332
-
333
-
334
-
335
- <div class="input-group" id="eigo">
336
-
337
- <span class="input-group-text">英語</span>
338
-
339
- <input type="text" aria-label="First name" class="form-control" name="eigos" id="eigos">
340
-
341
- <input type="text" aria-label="Last name" class="form-control" name="eigoh" id="eigoh">
342
-
343
- </div>
344
-
345
-
346
-
347
- <div class="input-group" id="kagi">
348
-
349
- <span class="input-group-text">家技</span>
350
-
351
- <input type="text" aria-label="First name" class="form-control" name="kagis" id="kagis">
352
-
353
- <input type="text" aria-label="Last name" class="form-control" name="kagih" id="kagih">
354
-
355
- </div>
356
-
357
-
358
-
359
- <div class="input-group" id="onngaku">
360
-
361
- <span class="input-group-text">音楽</span>
362
-
363
- <input type="text" aria-label="First name" class="form-control" name="onngakus" id="onngakus">
364
-
365
- <input type="text" aria-label="Last name" class="form-control" name="onngakuh" id="onngakuh">
366
-
367
- </div>
368
-
369
-
370
-
371
- <div class="input-group" id="bizyutu">
372
-
373
- <span class="input-group-text">美術</span>
374
-
375
- <input type="text" aria-label="First name" class="form-control" name="bizyutus" id="bizyutus">
376
-
377
- <input type="text" aria-label="Last name" class="form-control" name="bizyutuh" id="bizyutuh">
378
-
379
- </div>
380
-
381
-
382
-
383
- <div class="input-group" id="hotai">
384
-
385
- <span class="input-group-text">保体</span>
386
-
387
- <input type="text" aria-label="First name" class="form-control" name="hotais" id="hotais">
388
-
389
- <input type="text" aria-label="Last name" class="form-control" name="hotaih" id="hotaih">
390
-
391
- </div>
392
-
393
-
394
-
395
- <center>
396
-
397
- <button type="button" class="mt-3 btn btn-outline-secondary" onclick="cancan()">取り消し</button>
398
-
399
- <button type="button" class="mt-3 btn btn-outline-primary" onclick="entano()">実行</button>
400
-
401
- </center>
402
-
403
-
404
-
405
-
406
-
407
- <script>
408
-
409
- document.write(soten);
410
-
411
- </script>
412
-
413
-
414
-
415
- </body>
416
-
417
-
418
-
419
-
420
-
421
407
 
422
408
 
423
409
  </html>

1

コードの書き方を変更

2021/12/19 13:20

投稿

Pieshin
Pieshin

スコア3

test CHANGED
File without changes
test CHANGED
@@ -26,34 +26,408 @@
26
26
 
27
27
  ```JavaScript(HTMLに埋め込み)
28
28
 
29
- <html>
30
-
31
- ...
32
-
33
- <script>
34
-
35
- var = 変数名;
36
-
37
- ...
29
+ <!doctype html>
30
+
31
+ <html class="no-js" lang="">
32
+
33
+
34
+
35
+ <head>
36
+
37
+ <meta charset="utf-8">
38
+
39
+ <title></title>
40
+
41
+ <meta name="description" content="">
42
+
43
+ <meta name="viewport" content="width=device-width, initial-scale=1">
44
+
45
+
46
+
47
+ <meta property="og:title" content="">
48
+
49
+ <meta property="og:type" content="">
50
+
51
+ <meta property="og:url" content="">
52
+
53
+ <meta property="og:image" content="">
54
+
55
+
56
+
57
+ <link rel="manifest" href="site.webmanifest">
58
+
59
+ <link rel="apple-touch-icon" href="icon.png">
60
+
61
+ <!-- Place favicon.ico in the root directory -->
62
+
63
+ <style>
64
+
65
+
66
+
67
+ </style>
68
+
69
+ <!-- CSS only -->
70
+
71
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
72
+
73
+
74
+
75
+ <meta name="theme-color" content="#fafafa">
76
+
77
+ </head>
78
+
79
+
80
+
81
+ <script type="text/javascript" language="javascript">
82
+
83
+ function entano(){
84
+
85
+ var kokugos = document.getElementById("kokugos").value;
86
+
87
+ var kokugoh = document.getElementById("kokugoh").value;
88
+
89
+ var rika1s = document.getElementById("rika1s").value;
90
+
91
+ var rika1h = document.getElementById("rika1h").value;
92
+
93
+ var rika2s = document.getElementById("rika2s").value;
94
+
95
+ var rika2h = document.getElementById("rika2h").value;
96
+
97
+ var tiris = document.getElementById("tiris").value;
98
+
99
+ var tirih = document.getElementById("tirih").value;
100
+
101
+ var rekisis = document.getElementById("rekisis").value;
102
+
103
+ var rekisih = document.getElementById("rekisih").value;
104
+
105
+ var daisuus = document.getElementById("daisuus").value;
106
+
107
+ var daisuuh = document.getElementById("daisuuh").value;
108
+
109
+ var zukeis = document.getElementById("zukeis").value;
110
+
111
+ var zukeih = document.getElementById("zukeih").value;
112
+
113
+ var eigos = document.getElementById("eigos").value;
114
+
115
+ var eigoh = document.getElementById("eigoh").value;
116
+
117
+ var kagis = document.getElementById("kagis").value;
118
+
119
+ var kagih = document.getElementById("kagih").value;
120
+
121
+ var onngakus = document.getElementById("onngakus").value;
122
+
123
+ var onngakuh = document.getElementById("onngakuh").value;
124
+
125
+ var bizyutus = document.getElementById("bizyutus").value;
126
+
127
+ var bizyutuh = document.getElementById("bizyutuh").value;
128
+
129
+ var hotais = document.getElementById("hotais").value;
130
+
131
+ var hotaih = document.getElementById("hotaih").value;
132
+
133
+
134
+
135
+ var scope = "soten";
136
+
137
+ soten = Number(kokugos) + Number(rika1s) + Number(rika2s) + Number(tiris) + Number(rekisis) + Number(daisuus) + Number(zukeis) + Number(eigos) + Number(kagis) + Number(onngakus) + Number(bizyutus) + Number(hotais);
138
+
139
+
140
+
141
+ var heikin;
142
+
143
+ heikin = Number(kokugoh) + Number(rika1h) + Number(rika2h) + Number(tirih) + Number(rekisih) + Number(daisuuh) + Number(zukeih) + Number(eigoh) + Number(kagih) + Number(onngakuh) + Number(bizyutuh) + Number(hotaih);
144
+
145
+
146
+
147
+ var syusoten;
148
+
149
+ syusoten = Number(kokugos) + Number(rika1s) + Number(rika2s) + Number(tiris) + Number(rekisis) + Number(daisuus) + Number(zukeis) + Number(eigos);
150
+
151
+
152
+
153
+ var syuheikin;
154
+
155
+ heikin = Number(kokugoh) + Number(rika1h) + Number(rika2h) + Number(tirih) + Number(rekisih) + Number(daisuuh) + Number(zukeih) + Number(eigoh);
156
+
157
+
158
+
159
+ var hukusoten;
160
+
161
+ hukusoten = Number(kagis) + Number(onngakus) + Number(bizyutus) + Number(hotais);
162
+
163
+
164
+
165
+ var hukuheikin;
166
+
167
+ hukuheikin = Number(kagih) + Number(onngakuh) + Number(bizyutuh) + Number(hotaih);
168
+
169
+
170
+
171
+ var syutokutensa;
172
+
173
+ syutokutensa = syusoten - syuheikin;
174
+
175
+
176
+
177
+ var hukutokutensa;
178
+
179
+ hukutokutensa = hukusoten - hukuheikin;
180
+
181
+
182
+
183
+ var tokutensa;
184
+
185
+ tokutensa = soten - heikin;
186
+
187
+
188
+
189
+
190
+
191
+ }
38
192
 
39
193
  </script>
40
194
 
195
+
196
+
197
+ <!DOCTYPE html>
198
+
199
+ <html lang="ja">
200
+
41
- ...
201
+ <head>
202
+
203
+ <meta charset="UTF-8">
204
+
205
+ <title>サンプル</title>
206
+
207
+ </head>
208
+
209
+
210
+
211
+
42
212
 
43
213
  <body>
44
214
 
215
+ <!doctype html>
216
+
217
+ <html lang="ja">
218
+
219
+ <head>
220
+
221
+ <meta charset="UTF-8">
222
+
223
+ <title>HTML Char size Sample</title>
224
+
225
+ </head>
226
+
227
+ <body>
228
+
229
+ <font size="6"><b>中間、期末テスト自動解析システム For Web</b></font><br>
230
+
231
+
232
+
233
+
234
+
235
+ ※このツールはiPadのスプレッドシートから移植しています。不具合あれば以下まで。<br>ryohirose0807@gmail.com
236
+
237
+ <br>
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+ <br>
250
+
251
+ <div class="input-group" id="kokugo">
252
+
253
+ <span class="input-group-text">国語</span>
254
+
255
+ <input type="text" aria-label="First name" class="form-control" name="kokugos" id="kokugos" required>
256
+
257
+ <input type="text" aria-label="Last name" class="form-control" name="kokugoh" id="kokugoh">
258
+
259
+ </div>
260
+
261
+
262
+
263
+ <div class="input-group" id="rika1">
264
+
265
+ <span class="input-group-text">理1</span>
266
+
267
+ <input type="text" aria-label="First name" class="form-control" name="rika1s" id="rika1s">
268
+
269
+ <input type="text" aria-label="Last name" class="form-control" name="rika1h" id="rika1h">
270
+
271
+ </div>
272
+
273
+
274
+
275
+ <div class="input-group" id="rika2">
276
+
277
+ <span class="input-group-text">理2</span>
278
+
279
+ <input type="text" aria-label="First name" class="form-control" name="rika2s" id="rika2s">
280
+
281
+ <input type="text" aria-label="Last name" class="form-control" name="rika2h" id="rika2h">
282
+
283
+ </div>
284
+
285
+
286
+
287
+ <div class="input-group" id="tiri">
288
+
289
+ <span class="input-group-text">地理</span>
290
+
291
+ <input type="text" aria-label="First name" class="form-control" name="tiris" id="tiris">
292
+
293
+ <input type="text" aria-label="Last name" class="form-control" name="tirih" id="tirih">
294
+
295
+ </div>
296
+
297
+
298
+
299
+ <div class="input-group" id="rekisi">
300
+
301
+ <span class="input-group-text">歴史</span>
302
+
303
+ <input type="text" aria-label="First name" class="form-control" name="rekisis" id="rekisis">
304
+
305
+ <input type="text" aria-label="Last name" class="form-control" name="rekisih" id="rekisih">
306
+
307
+ </div>
308
+
309
+
310
+
311
+ <div class="input-group" id="daisuu">
312
+
313
+ <span class="input-group-text">代数</span>
314
+
315
+ <input type="text" aria-label="First name" class="form-control" name="daisuus" id="daisuus">
316
+
317
+ <input type="text" aria-label="Last name" class="form-control" name="daisuuh" id="daisuuh">
318
+
319
+ </div>
320
+
321
+
322
+
323
+ <div class="input-group" id="zukei">
324
+
325
+ <span class="input-group-text">図形</span>
326
+
327
+ <input type="text" aria-label="First name" class="form-control" name="zukeis" id="zukeis">
328
+
329
+ <input type="text" aria-label="Last name" class="form-control" name="zukeih" id="zukeih">
330
+
331
+ </div>
332
+
333
+
334
+
335
+ <div class="input-group" id="eigo">
336
+
337
+ <span class="input-group-text">英語</span>
338
+
339
+ <input type="text" aria-label="First name" class="form-control" name="eigos" id="eigos">
340
+
341
+ <input type="text" aria-label="Last name" class="form-control" name="eigoh" id="eigoh">
342
+
343
+ </div>
344
+
345
+
346
+
347
+ <div class="input-group" id="kagi">
348
+
349
+ <span class="input-group-text">家技</span>
350
+
351
+ <input type="text" aria-label="First name" class="form-control" name="kagis" id="kagis">
352
+
353
+ <input type="text" aria-label="Last name" class="form-control" name="kagih" id="kagih">
354
+
355
+ </div>
356
+
357
+
358
+
359
+ <div class="input-group" id="onngaku">
360
+
361
+ <span class="input-group-text">音楽</span>
362
+
363
+ <input type="text" aria-label="First name" class="form-control" name="onngakus" id="onngakus">
364
+
365
+ <input type="text" aria-label="Last name" class="form-control" name="onngakuh" id="onngakuh">
366
+
367
+ </div>
368
+
369
+
370
+
371
+ <div class="input-group" id="bizyutu">
372
+
373
+ <span class="input-group-text">美術</span>
374
+
375
+ <input type="text" aria-label="First name" class="form-control" name="bizyutus" id="bizyutus">
376
+
377
+ <input type="text" aria-label="Last name" class="form-control" name="bizyutuh" id="bizyutuh">
378
+
379
+ </div>
380
+
381
+
382
+
383
+ <div class="input-group" id="hotai">
384
+
385
+ <span class="input-group-text">保体</span>
386
+
387
+ <input type="text" aria-label="First name" class="form-control" name="hotais" id="hotais">
388
+
389
+ <input type="text" aria-label="Last name" class="form-control" name="hotaih" id="hotaih">
390
+
391
+ </div>
392
+
393
+
394
+
395
+ <center>
396
+
397
+ <button type="button" class="mt-3 btn btn-outline-secondary" onclick="cancan()">取り消し</button>
398
+
399
+ <button type="button" class="mt-3 btn btn-outline-primary" onclick="entano()">実行</button>
400
+
401
+ </center>
402
+
403
+
404
+
405
+
406
+
45
- <script>
407
+ <script>
46
-
408
+
47
- document.write(soten);
409
+ document.write(soten);
48
-
410
+
49
- </script>
411
+ </script>
412
+
413
+
50
414
 
51
415
  </body>
52
416
 
53
417
 
54
418
 
419
+
420
+
421
+
422
+
55
423
  </html>
56
424
 
425
+
426
+
427
+
428
+
429
+ </html>
430
+
57
431
  ```
58
432
 
59
433