-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path예매.html
95 lines (74 loc) · 2.31 KB
/
예매.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
<!DOCTYPE html>
<html>
<head>
<style>
div{width:330px;height:370px;border:1px solid red;display:table-cell;}
section{padding:20px;}
</style>
</head>
<body>
<script>
function checkDate(){
var s=document.getElementById("wdate").value;
var wdate= new Date(s);
var today= new Date();
var diff= wdate.getTime()-today.getTime();
if(diff<0){alert("관람 가능 시간이 아닙니다")};
}
</script>
<h1>영화 예매</h1></br>
관람 시간 선택: <input type="date" id="wdate">
<button onclick="checkDate()">확인</button></br>
<section>
<div>image</div>
<div>image</div>
<div>image</div>
<div>image</div>
<div>image</div>
<div>image</div>
</section>
<form action="">
<h2>Movie1</h2>
<select>
<input type="checkbox" value="time">12:20
<input type="checkbox" value="time">13:20
<input type="checkbox" value="time">15:20
<input type="checkbox" value="time">18:20
<input type="checkbox" value="time">20:20
<input type="checkbox" value="time">21:20
<input type="submit" value="좌석 예매하기">
<h2>Movie2</h2>
<input type="checkbox" value="time">12:20
<input type="checkbox" value="time">13:20
<input type="checkbox" value="time">15:20
<input type="checkbox" value="time">18:20
<input type="checkbox" value="time">20:20
<input type="checkbox" value="time">21:20
<input type="submit" value="좌석 예매하기">
<h2>Movie3</h2>
<input type="checkbox" value="time">12:20
<input type="checkbox" value="time">13:20
<input type="checkbox" value="time">15:20
<input type="checkbox" value="time">18:20
<input type="checkbox" value="time">20:20
<input type="checkbox" value="time">21:20
<input type="submit" value="좌석 예매하기">
<h2>Movie4</h2>
<input type="checkbox" value="time">12:20
<input type="checkbox" value="time">13:20
<input type="checkbox" value="time">15:20
<input type="checkbox" value="time">18:20
<input type="checkbox" value="time">20:20
<input type="checkbox" value="time">21:20
<input type="submit" value="좌석 예매하기">
<h2>Movie5</h2>
<input type="checkbox" value="time">12:20
<input type="checkbox" value="time">13:20
<input type="checkbox" value="time">15:20
<input type="checkbox" value="time">18:20
<input type="checkbox" value="time">20:20
<input type="checkbox" value="time">21:20
<input type="submit" value="좌석 예매하기">
</form>
</body>
</html>