-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
153 lines (124 loc) · 4.61 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>js base</title>
<link rel="stylesheet" href="style.css">
<style>
.pink{
color:pink;
}
</style>
</head>
<body>
<!-- -->
<div class="js2-1">
<ul>
<li>
<a href="#js2-1Link1">錨點1</a>
</li>
<li>
<a href="#js2-1Link2">錨點2</a>
</li>
<li>
<a href="#js2-1Link3">錨點3</a>
</li>
</ul>
<h2 id="js2-1Link1">錨點1<span>span</span></h2>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Magni quam voluptatibus voluptatem cupiditate? Quo, eveniet
quos qui eius incidunt nam omnis itaque fugit impedit ea quia, magni culpa deserunt quae.Lorem, ipsum dolor sit
amet consectetur adipisicing elit. Magni quam voluptatibus voluptatem cupiditate? Quo, eveniet quos qui eius
incidunt nam omnis itaque fugit impedit ea quia, magni culpa deserunt quae.Lorem, ipsum dolor sit amet consectetur
adipisicing elit. Magni quam voluptatibus voluptatem cupiditate? Quo, eveniet quos qui eius incidunt nam omnis
itaque fugit impedit ea quia, magni culpa deserunt quae.</p>
<h2 id="js2-1Link2">錨點1</h2>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Magni quam voluptatibus voluptatem cupiditate? Quo, eveniet
quos qui eius incidunt nam omnis itaque fugit impedit ea quia, magni culpa deserunt quae.Lorem, ipsum dolor sit
amet consectetur adipisicing elit. Magni quam voluptatibus voluptatem cupiditate? Quo, eveniet quos qui eius
incidunt nam omnis itaque fugit impedit ea quia, magni culpa deserunt quae.</p>
<h2 id="js2-1Link3">錨點1</h2>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Magni quam voluptatibus voluptatem cupiditate? Quo, eveniet
quos qui eius incidunt nam omnis itaque fugit impedit ea quia, magni culpa deserunt quae.Lorem, ipsum dolor sit
amet consectetur adipisicing elit. Magni quam voluptatibus voluptatem cupiditate? Quo, eveniet quos qui eius
incidunt nam omnis itaque fugit impedit ea quia, magni culpa deserunt quae.Lorem, ipsum dolor sit amet consectetur
adipisicing elit. Magni quam voluptatibus voluptatem cupiditate? Quo, eveniet quos qui eius incidunt nam omnis
itaque fugit impedit ea quia, magni culpa deserunt quae.</p>
</div>
<!-- -->
<div class="js3-1">
<p>
這個蛋糕
<strong id="js3-1Price"></strong> 元
</p>
</div>
<!-- -->
<div class="js3-2">
<h2 id="js3-2Cart"></h2>
</div>
<!-- -->
<div class="js3-4">
<h2>
蛋糕一個
<span id="js3-4CakePrice"></span> 元
</h2>
<h2>
共買
<span id="js3-4CakeBuyAmount"></span> 個
</h2>
<h2>
扣除優惠10元共
<span id="js3-4CakeTotalPrice"></span> 元
</h2>
</div>
<!-- -->
<div class="js4-4">
<h2>主餐一份20元,我要
<input type="text" id="mainMeal"> 份主餐
</h2>
<h2>甜點一份10元,我要
<input type="text" id="dessert"> 份甜點
</h2>
</div>
<input id="js4-4totalBtn" type="button" value="計算總額">
<h2>總共要
<span id="js4-4total"></span> 元
</h2>
<!-- 練習題1 -->
<p id="greet"></p>
<!-- -->
<div class="js6-1">
<h2>joyce是當月壽星嗎?
<span id="monthBirthday"></span>
</h2>
<h2>服務生:人數是不是還沒到齊??
<span id="herePeople"></span>
</h2>
</div>
<!-- -->
<div class="js8-1">
<h1 id="js8-1H1"><span class="js8-1H1Span"></span></h1>
<p id="js8-1PId" class="js8-1PClass">12345<span>span</span></p>
</div>
<!-- -->
<div class="js8-2">
<h2 class="js8-2H2"></h2>
<h2 class="js8-2H2"></h2>
<a href="#">yahoo</a>
</div>
<!-- -->
<div class="js8-3"></div>
<!-- -->
<ul class="js8-4"></ul>
<!-- -->
<ul class="js8-5"></ul>
<!-- -->
<div class="js8-6">增加子結點</div>
<!-- -->
<ul class="js8-7"><h2>午餐項目</h2></ul>
<!-- -->
<input id="js8-8Id" type="button" value="alert">
<script src="js/all.js"></script>
</body>
</html>