-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
230 lines (208 loc) · 11.2 KB
/
index.html
File metadata and controls
230 lines (208 loc) · 11.2 KB
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!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>Document</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">
<link rel="stylesheet" href="./css/all.css">
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<!-- TODO: progress bar -->
<ul id="progressbar" class="d-flex ">
<li class="active"><i class="far fa-dot-circle"></i></li>
<li><i class="far fa-circle"></i></li>
<li><i class="far fa-circle"></i></li>
<li><i class="far fa-circle"></i></li>
</ul>
<!-- TODO: 5 個表單頁面 -->
<div id="form1" class="container d-flex align-items-center flex-column">
<h1>Create Account</h1>
<h2>Glad to see you here!</h2>
<form action="" novalidate class="col-6">
<div class="form-row">
<div class="col-12">
<label for="account">Account</label>
<!-- 只能是英文,數字,@,_,-,. -->
<input onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9\@\_\-\.]/g,'')" type="email"
class="form-control required" id="account" placeholder="example@email.com">
<i style="display:none;" class="fas fa-exclamation-triangle"></i>
<span data-tooltip="INVALID EMAIL" data-require="required"></span>
</div>
</div>
<div class="form-row">
<div class="col-12">
<label for="password">Password</label>
<!-- 只能是至少8碼的英文,數字 -->
<input pattern="[A-Za-z0-9]{8,}" type="password" class="form-control required" id="password"
placeholder="Enter password">
<i style="display:none;" class="fas fa-exclamation-triangle"></i>
<span data-tooltip="MINIMUM 8 CHARACTERS OR NUMBER" data-require="required"></span>
</div>
</div>
<div class="form-row">
<div class="col-12">
<label for="confirmPwd">Confirm Password</label>
<input onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9]/g,'')" type="password"
class="form-control required" id="confirmPwd" placeholder="Enter password">
<i style="display:none;" class="fas fa-exclamation-triangle"></i>
<span data-tooltip="NOT MATCH" data-require="required"></span>
</div>
</div>
<button type="button" class="btn btn-primary btn-block" disabled>SUBMIT & NEXT</button>
</form>
</div>
<div id="form2" class="container d-flex align-items-center flex-column">
<h1>General Infomation</h1>
<h2>Tell us who you are!</h2>
<form class="col-6" novalidate>
<div class="form-row w-100">
<div class="col" id="nameBlock">
<label for="name">Name <span>(optional)</span></label>
<!-- 只能是英文,數字,-,中文 -->
<input onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5\-]/g,'')" type="text"
class="form-control" id="name" placeholder="Example Name">
<i style="display:none;" class="fa fa-warning fa-lg"></i>
<span data-tooltip="FORMAT ERROR" data-require="required">
</div>
<div class="col" id="phoneBlock">
<label for="phone">Phone*</label>
<!-- 只能是數字 -->
<input type="tel" pattern="^09\d{2}-?\d{3}-?\d{3}$" maxlength="10" class="form-control required"
id="phone" placeholder="0912345678" title="請輸入10位手機號碼">
<i style="display:none;" class="fa fa-warning fa-lg"></i>
<span data-tooltip="FORMAT ERROR" data-require="required">
</div>
</div>
<div class="form-row w-100">
<div class="col-5" id="yearBlock">
<label for="year">Birth Date <span>(optional)</span></label>
<input type="number" min="1900" max="2018" class="form-control" id="year" placeholder="YYYY">
<i style="display:none;" class="fa fa-warning fa-lg"></i>
<span data-tooltip="OUT OF RANGE" data-require="OUT OF RANGE">
</div>
<div class="col" id="monthBlock">
<label for="month"> </label>
<input type="number" min="1" max="12" class="form-control" id="month" placeholder="MM">
<i style="display:none;" class="fa fa-warning fa-lg"></i>
<span data-tooltip="OUT OF RANGE" data-require="OUT OF RANGE">
</div>
<div class="col" id="dayBlock">
<label for="day"> </label>
<input type="number" min="1" max="31" class="form-control" id="day" placeholder="DD">
<i style="display:none;" class="fa fa-warning fa-lg"></i>
<span data-tooltip="OUT OF RANGE" data-require="OUT OF RANGE">
</div>
</div>
<div class="form-row w-100">
<div class="col">
<label for="validationCustom03">Address*</label>
<div id="twzipcode"></div>
</div>
</div>
<div class="form-row w-100">
<div class="col">
<input type="text" class="form-control required" id="adrsdetail" placeholder="Address Detail">
<i style="display:none;" class="fa fa-warning fa-lg"></i>
<span data-tooltip="REQUIRED FILED" data-require="required">
</div>
</div>
<button type="button" class="btn btn-primary btn-block" disabled>SUBMIT & NEXT</button>
</form>
</div>
<div id="form3" class="container d-flex align-items-center flex-column">
<h1>Update Profile Picture</h1>
<h2>We wanna know you more!</h2>
<form novalidate>
<div id="photo" class="d-flex align-items-center justify-content-center rounded">
<i class="fa fa-image fa-4x"></i>
<div>
<h5>UPLOAD UP TO 3 PHOTOS</h5>
<h6>MAX SIZE: 800*800px</h6>
</div>
</div>
<span id="warnpic" class="mt-4 d-none">
<i class="fa fa-warning fa-lg mr-2"></i><span></span>
</span>
<!-- 不能放在click的div範圍內,只接受圖片格式 -->
<div>
<div>
<input id="file" name="file[]" multiple class="d-none" type="file" accept="image/*" required>
</div>
</div>
<div class="d-flex mt-4" id="profile"></div>
<div class="d-flex mt-4" id="profile"></div>
<div class="d-flex mt-4" id="profile"></div>
<button id="picBtn" type="button" class="btn btn-primary btn-block w-100" disabled>SUBMIT & NEXT</button>
</form>
</div>
<div id="form4" class="container d-flex align-items-center flex-column">
<h1>Payment Method</h1>
<h2>Add your credit card infomation! </h2>
<form class="col-6" novalidate>
<div class="form-row">
<div class="col">
<label for="cardnumber">Card Number</label>
<!-- 只能是數字 -->
<i id="brand" class="fab fa-cc-visa"></i>
<input type="text" class="form-control required" id="cardnumber"
onkeyup="value=value.replace(/[^0-9]/g,'')" pattern="^(4[0-9]{12}(?:[0-9]{3})?)*$"
placeholder="1234567890123456">
<i class="fas fa-exclamation-triangle " style="display:none;"></i>
<span data-tooltip="INVALID NUMBER" data-require="required"></span>
</div>
<div class="col">
<label for="bankname">Bank Name</label>
<input type="text" class="form-control required" id="bankname" placeholder="EXAMPLE BANK">
<i class="fas fa-exclamation-triangle " style="display:none;"></i>
<span data-tooltip="REQUIRED FIELD" data-require="required"></span>
</div>
</div>
<div class="form-row">
<div class="col" id="cvvBlock">
<label for="cvv">CVV</label>
<input type="number" placeholder="123" class="form-control required" id="cvv">
<i class="fas fa-exclamation-triangle " style="display:none;"></i>
<span data-tooltip="NOT EQUAL 3 DIGITAL" data-require="required"></span>
</div>
<div class="col">
<label for="expiremonth">Expire Date</label>
<input type="number" min="2" max="12" class="form-control required" id="expiremonth"
placeholder="MM">
<i class="fas fa-exclamation-triangle " style="display:none;"></i>
<span data-tooltip="OUT OF RANGE" data-require="required"></span>
</div>
<div class="col">
<label for="expireday"> </label>
<input type="number" min="1" max="31" class="form-control required" id="expireday" placeholder="DD">
<span data-tooltip="OUT OF RANGE" data-require="required">
</div>
</div>
<button id="done" class="btn btn-primary btn-block" disabled type="button">DONE</button>
</form>
</div>
<div id="form5" class="container d-flex align-items-center flex-column">
<h1>Congratulations</h1>
<h2>Now you’re one of us! </h2>
<div id="smile">☻</div>
<h5 id="direct">Redirected to homepage after 5 seconds…</h5>
</div>
<!-- JS -->
<script src="./js/jquery-3.3.1.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/jquery-twzipcode@1.7.14/jquery.twzipcode.min.js"></script>
<script src="./js/all.js"></script>
</body>
</html>