teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

ソースコードをスクリプト部分だけではなく、全体を載せるよう変更

2020/04/02 23:11

投稿

crystalglass
crystalglass

スコア6

title CHANGED
File without changes
body CHANGED
@@ -25,7 +25,15 @@
25
25
  ~ここまで~
26
26
 
27
27
  ### ソースコード
28
+ ```html
29
+ <!DOCTYPE HTML>
30
+ <html>
28
- ```javascript
31
+ <head>
32
+ <meta charset="utf-8">
33
+ <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no">
34
+ <script src="components/loader.js"></script>
35
+ <link rel="stylesheet" href="components/loader.css">
36
+ <link rel="stylesheet" href="css/style.css">
29
37
  <script>
30
38
  // データストアを使う準備
31
39
  var APIKEY = 'mask';
@@ -65,5 +73,14 @@
65
73
  }
66
74
  }
67
75
  </script>
76
+ </head>
77
+ <body>
78
+ <h1>ここはh1です。</h1>
79
+ <input type="text" name="col1" id="col1">
80
+ <input type="text" name="col2" id="col2">
81
+ <button onClick="addData();">追加</button>
82
+ <div>ここはdivです。</div>
83
+ </body>
84
+ </html>
68
85
 
69
86
  ```