-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathindex.html
67 lines (66 loc) · 2.34 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Auto-Ticketing</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<style>
body {
margin-top: 50px;
margin-left: 150px;
margin-right: 150px;
}
input {
margin-right: 10px;
}
label {
display: none;
}
</style>
</head>
<body>
<div class="ticketing">
<h1>I wanna go consert</h1>
<br><br>
<div class="mb-3">
<label for="consertId" class="form-label">Consert ID</label>
<input id="consertId" class="form-control" type="text" placeholder="콘서트 ID" required="required"/>
</div>
<div class="mb-3">
<label for="numberPerson">numberPerson</label>
<input id="numberPerson" class="form-control" type="number" placeholder="몇개의 좌석을 원하시나요? (숫자만 입력)" required="required"/>
</div>
<div class="mb-3">
<label for="day">day</label>
<input id="day" class="form-control" type="number" placeholder="원하시는 관람일 (예시 :4월 28일의 경우 28 입력)" required="required"/>
</div>
<div class="mb-3">
<label for="userId">User ID</label>
<input id="userId" class="form-control" type="text" placeholder="User ID" required="required"/>
</div>
<div class="mb-3">
<label for="password">Password</label>
<input id="password" class="form-control" type="password" placeholder="Password" required="required"/>
</div>
<br>
<button id="ticketing" onclick="start()" class="btn btn-primary btn-block btn-large">
Let's go
</button>
<hr>
<div class="mb-3">
<textarea class="form-control" id="logArea" rows="3" disabled></textarea>
</div>
</div>
<script src="./js/function.js"></script>
<script>
function start() {
const consertId = document.getElementById('consertId').value;
const numberPerson = document.getElementById('numberPerson').value;
const day = document.getElementById('day').value;
const userId = document.getElementById('userId').value;
const pw = document.getElementById('password').value;
startTicketing(consertId, numberPerson, day, userId, pw);
}
</script>
</body>
</html>