-
Notifications
You must be signed in to change notification settings - Fork 1
/
makeOne.html
194 lines (179 loc) · 7.81 KB
/
makeOne.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
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
<!DOCTYPE html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/makeOne.css" />
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.0/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
<script src="https://code.jquery.com/ui/1.13.0/jquery-ui.js"></script>
<script>
$( function() {
var dateFormat = "mm/dd/yy",
from = $( "#from" )
.datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 3
})
.on( "change", function() {
to.datepicker( "option", "minDate", getDate( this ) );
}),
to = $( "#to" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 3
})
.on( "change", function() {
from.datepicker( "option", "maxDate", getDate( this ) );
});
function getDate( element ) {
var date;
try {
date = $.datepicker.parseDate( dateFormat, element.value );
} catch( error ) {
date = null;
}
var ddd;
ddd=date.getFullYear().toString();
ddd+="/";
ddd+=date.getMonth().toString();
ddd+="/";
ddd+=date.getDate().toString();
return date;
}
} );
</script>
</head>
<body>
<form action="firstPage.html">
<div class="inner">
<div class="logoBox">
<img src="img/logoImage.png" class="logoImage" >
<p style="font-size: 40px;">우리 대체 언제 만나 ?</p>
</div>
<form>
<input type="text" id="title" placeholder="지금 제목을 입력하세요!">
<div class="mainContent">
<div class="leftBox">
<div class="dateBox">
<script>
/* var today=new Date();
var dates=new Array(35);
var plus=0;
var startDay=today.getDay();
for(var i=startDay;i<35;i++) {
var TODAY=new Date();
var temp=new Date(TODAY.setDate(TODAY.getDate()+plus));
plus++;
dates[i]=temp.getDate();
}
for(var j=0;j<35;j++) {
if(dates[j]!=undefined) {
document.write(dates[j]+" ");
}
if(j%7==6) {
document.write("<br>");
}
}
for(var i=0;i<5;i++) {
dates[i]=new Array(7);
for(var j=0;j<7;j++) {
}
}
for(var i=0;i<5;i++) {
for(var j=0;j<7;j++) {
}
}
var future=new Date(today.setDate(today.getDate()+33));*/
</script>
<div class="dateFromBox">
<label for="from">From</label>
<input type="text" id="from" name="from"><br>
</div>
<div class="dateToBox">
<label for="to">To</label>
<input type="text" id="to" name="to">
</div>
</div>
<p style="margin-top:30px">만날 날짜를 선택하세요</p>
</div>
<div class="rightBox">
<div class="startTime">
<img src="img/timeIcon.png" class="selectIcon">
<select id="startTimeSelect">
<option value="0" selected>12:00 AM</option>
<option value="1">1:00 AM</option>
<option value="2">2:00 AM</option>
<option value="3">3:00 AM</option>
<option value="4">4:00 AM</option>
<option value="5">5:00 AM</option>
<option value="6">6:00 AM</option>
<option value="7">7:00 AM</option>
<option value="8">8:00 AM</option>
<option value="9">9:00 AM</option>
<option value="10">10:00 AM</option>
<option value="11">11:00 AM</option>
<option value="12">12:00 PM</option>
<option value="13">1:00 PM</option>
<option value="14">2:00 PM</option>
<option value="15">3:00 PM</option>
<option value="16">4:00 PM</option>
<option value="17">5:00 PM</option>
<option value="18">6:00 PM</option>
<option value="19">7:00 PM</option>
<option value="20">8:00 PM</option>
<option value="21">9:00 PM</option>
<option value="22">10:00 PM</option>
<option value="23">11:00 PM</option>
</select>
<p>시까지</p>
</div>
<div class="endTime">
<img src="img/timeIcon.png" class="selectIcon">
<select id="endTimeSelect">
<option value="1" selected>1:00 AM</option>
<option value="2">2:00 AM</option>
<option value="3">3:00 AM</option>
<option value="4">4:00 AM</option>
<option value="5">5:00 AM</option>
<option value="6">6:00 AM</option>
<option value="7">7:00 AM</option>
<option value="8">8:00 AM</option>
<option value="9">9:00 AM</option>
<option value="10">10:00 AM</option>
<option value="11">11:00 AM</option>
<option value="12">12:00 PM</option>
<option value="13">1:00 PM</option>
<option value="14">2:00 PM</option>
<option value="15">3:00 PM</option>
<option value="16">4:00 PM</option>
<option value="17">5:00 PM</option>
<option value="18">6:00 PM</option>
<option value="19">7:00 PM</option>
<option value="20">8:00 PM</option>
<option value="21">9:00 PM</option>
<option value="22">10:00 PM</option>
<option value="23">11:00 PM</option>
<option value="24">12:00 AM</option>
</select>
<p>시까지</p>
</div>
<div class="passwordBox">
<img src="img/passwordIcon.png" class="selectIcon">
<input type="password" id="pw" placeholder="패스워드 입력">
</div>
<div class="makeButton">
<input type="submit" id="makeBtn" value=" 시작하기">
</div>
</form>
</div>
</div>
</div>
</form>
</body>
</html>