質問編集履歴
1
htmlのコードを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,52 @@
|
|
15
15
|
`
|
16
16
|
|
17
17
|
### 該当のソースコード
|
18
|
+
|
19
|
+
```html
|
20
|
+
|
21
|
+
<header>
|
22
|
+
|
23
|
+
<h2>Items</h2>
|
24
|
+
|
25
|
+
<ul id="items">
|
26
|
+
|
27
|
+
</ul>
|
28
|
+
|
29
|
+
<h2>Total Price</h2>
|
30
|
+
|
31
|
+
<p id="total">0</p>
|
32
|
+
|
33
|
+
</header>
|
34
|
+
|
35
|
+
<div id="cardcontent" class="container">
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
<div class="card">
|
40
|
+
|
41
|
+
<div class="imgBx">
|
42
|
+
|
43
|
+
<img src="airmax.png" alt="">
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div class="contentBx">
|
48
|
+
|
49
|
+
<h2 id="name">AIRMAX</h2>
|
50
|
+
|
51
|
+
<p id="price">$ 30</p>
|
52
|
+
|
53
|
+
<button onclick = buy("airmax","30")>BUY</button>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
</div>
|
62
|
+
|
63
|
+
```
|
18
64
|
|
19
65
|
|
20
66
|
|
@@ -56,34 +102,6 @@
|
|
56
102
|
|
57
103
|
<p id="price">$ ${price}</p>
|
58
104
|
|
59
|
-
<div class="size">
|
60
|
-
|
61
|
-
<h3>Size :</h3>
|
62
|
-
|
63
|
-
<span class="sizeof">7</span>
|
64
|
-
|
65
|
-
<span class="sizeof">8</span>
|
66
|
-
|
67
|
-
<span class="sizeof">9</span>
|
68
|
-
|
69
|
-
<span class="sizeof">10</span>
|
70
|
-
|
71
|
-
</div>
|
72
|
-
|
73
|
-
<div class="color">
|
74
|
-
|
75
|
-
<h3>Color :</h3>
|
76
|
-
|
77
|
-
<span></span>
|
78
|
-
|
79
|
-
<span></span>
|
80
|
-
|
81
|
-
<span></span>
|
82
|
-
|
83
|
-
<span></span>
|
84
|
-
|
85
|
-
</div>
|
86
|
-
|
87
105
|
<button onclick=buy(`+ item + `,` + price+`)>BUY</button>この行の部分がわかりません
|
88
106
|
|
89
107
|
</div>
|