質問編集履歴

3

タイトル変更

2020/02/04 06:29

投稿

21212121
21212121

スコア61

test CHANGED
@@ -1 +1 @@
1
- javascriptで文字列の置換をUIに反映させる方法
1
+ javascriptで文字列の置換をユーザーインターフェイスに反映させる方法
test CHANGED
File without changes

2

htmlの追加

2020/02/04 06:29

投稿

21212121
21212121

スコア61

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,124 @@
1
+ ```html
2
+
3
+ <!DOCTYPE html>
4
+
5
+ <html>
6
+
7
+ <head>
8
+
9
+ <meta charset="utf-8">
10
+
11
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
12
+
13
+ <meta name="viewport" content="width=device-width">
14
+
15
+ <title>Silly story generator</title>
16
+
17
+
18
+
19
+ <style>
20
+
21
+
22
+
23
+ body {
24
+
25
+ font-family: helvetica, sans-serif;
26
+
27
+ width: 350px;
28
+
29
+ }
30
+
31
+
32
+
33
+ label {
34
+
35
+ font-weight: bold;
36
+
37
+ }
38
+
39
+
40
+
41
+ div {
42
+
43
+ padding-bottom: 20px;
44
+
45
+ }
46
+
47
+
48
+
49
+ input[type="text"] {
50
+
51
+ padding: 5px;
52
+
53
+ width: 150px;
54
+
55
+ }
56
+
57
+
58
+
59
+ p {
60
+
61
+ background: #FFC125;
62
+
63
+ color: #5E2612;
64
+
65
+ padding: 10px;
66
+
67
+ visibility: hidden;
68
+
69
+ }
70
+
71
+
72
+
73
+ </style>
74
+
75
+ </head>
76
+
77
+
78
+
79
+ <body>
80
+
81
+ <div>
82
+
83
+ <label for="customname">Enter custom name:</label>
84
+
85
+ <input id="customname" type="text" placeholder="">
86
+
87
+ </div>
88
+
89
+ <div>
90
+
91
+ <label for="us">US</label><input id="us" type="radio" name="ukus" value="us" checked>
92
+
93
+ <label for="uk">UK</label><input id="uk" type="radio" name="ukus" value="uk">
94
+
95
+ </div>
96
+
97
+ <div>
98
+
99
+ <button class="randomize">Generate random story</button>
100
+
101
+ </div>
102
+
103
+ <!-- Thanks a lot to Willy Aguirre for his help with the code for this assessment -->
104
+
105
+ <p class="story"></p>
106
+
107
+
108
+
109
+
110
+
111
+ <script src="main.js"></script>
112
+
113
+ </body>
114
+
115
+ </html>
116
+
117
+ ```
118
+
119
+
120
+
1
- ```ここに言語を入力
121
+ ```javascript
2
122
 
3
123
  const customName = document.getElementById('customname');
4
124
 

1

誤字修正

2020/02/04 06:18

投稿

21212121
21212121

スコア61

test CHANGED
File without changes
test CHANGED
@@ -108,4 +108,4 @@
108
108
 
109
109
  (https://mdn.github.io/learning-area/javascript/introduction-to-js-1/assessment-finished/)
110
110
 
111
- こちらが完成版となっております。![イメージ説明]
111
+ こちらが完成版となっております。