-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDecisionToLeave.html
323 lines (312 loc) · 13.8 KB
/
DecisionToLeave.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
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<!DOCTYPE html>
<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="movie.css">
<!-- 제이쿼리 링크 -->
<script src="js/jquery-3.6.0.min.js"></script>
<!-- 1.스와이퍼 라이브러리 -->
<link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css" />
<script src="https://unpkg.com/swiper@8/swiper-bundle.min.js"></script>
<script>
$(document).ready(function() {
//마우스 진입하는 경우
$(".gnb .m").mouseenter(function() {
$(this).addClass("on"); //클래스 추가
// $(this).find(".menu").css("display", "block");
$(this).find(".menu").slideDown();
// $(this).find(".menu").fadeIn();
// $(this).find(".menu").show();
})
//마우스 떠나는 경우
$(".gnb .m").mouseleave(function() {
$(this).removeClass("on"); //클래스 삭제
$(this).find(".menu").css("display", "none");
})
})
</script>
<style>
.swiper_a img {
width: 100%;
height: auto;
top: 90px; /* 수정 */
}
</style>
</head>
<body>
<header>
<div class="wrap"><!-- 위쪽헤더 -->
<div class="top"><!-- margin:0 auto; -->
<div class="name">
<h1><img id="logo" src="https://www.lottecinema.co.kr/NLCHS/Content/images/common/logo.png" alt="롯데시네마"></h1>
</div>
<ul class="top_left"><!-- 왼쪽 -->
<li><a href="#"><span>페이스북</span></a></li>
<li><a href="#"><span>유튜브</span></a></li>
<li><a href="#"><span>인스타그램</span></a></li>
</ul>
<ul class="top_right"><!-- 오른쪽 -->
<li><a href="#"><span>멤버십</span></a></li>
<li><a href="#"><span>고객센터</span></a></li>
<li><a href="#"><span>단체관람/대관문의</span></a></li>
<li><a href="#"><span>로그인</span></a></li>
</ul>
</div>
</div>
<div class="row_header">
<ul class="gnb">
<li class="m">
<a href="#">예매</a>
<ul class="menu"><!-- position absolute -->
<li><a href="#">예매하기</a></li>
<li><a href="#">상영시간표</a></li>
<li><a href="#">할인안내</a></li>
</ul>
</li>
<li class="m">
<a href="#">영화</a>
<ul class="menu">
<li><a href="./HOME.html">홈</a></li>
<li><a href="./movie/present.html">현재상영작</a></li>
<li><a href="#">상영예정작</a></li>
<li><a href="#">아르떼</a></li>
<li><a href="#">국립극장</a></li>
</ul>
</li>
<li class="m">
<a href="#">영화관</a>
<ul class="menu">
<li><a href="#">스페셜관</a></li>
<li><a href="#">서울</a></li>
<li><a href="#">경기/인천</a></li>
<li><a href="#">충청/대전</a></li>
<li><a href="#">전라/광주</a></li>
<li><a href="#">경북/대구</a></li>
<li><a href="#">경남/부산/울산</a></li>
<li><a href="#">강원</a></li>
<li><a href="#">제주</a></li>
</ul>
</li>
<li class="m">
<a href="#">이벤트</a>
<ul class="menu">
<li><a href="#">홈</a></li>
<li><a href="#">영화</a></li>
<li><a href="#">시사회/무대인사</a></li>
<li><a href="#">HOT</a></li>
<li><a href="#">제휴할인</a></li>
<li><a href="#">우리동네영화관</a></li>
</ul>
</li>
<li class="m">
<a href="#">스토어</a>
<ul class="menu">
<li><a href="#">베스트</a></li>
<li><a href="#">관람권</a></li>
<li><a href="#">스낵음료</a></li>
<li><a href="#">포토카드</a></li>
</ul>
</li>
</ul>
</div>
</header>
<!-- 2.스와이퍼 레이아웃 -->
<div class="swiper_a">
<div class="swiper-wrapper aaaa">
<div class="swiper-slide"><img src="img/decisiontoleaveimg2.png"></div>
<div class="swiper-slide"><img src="img/decisiontoleaveimg.png"></div>
</div>
<!-- If we need pagination -->
<div class="swiper-pagination"></div>
<!-- If we need navigation buttons -->
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
<!-- If we need scrollbar -->
<!-- <div class="swiper-scrollbar"></div> -->
<div class="wrap2">
<div class="movie">
<img src="img/DecisionToLeave.jpg" style="width: 200px;" alt="헤어질결심포스터">
<div class="movieInfomation">
<!-- 영화 이름 -->
<div class="moviename">
<h2>헤어질 결심</h2>
<p id="subtitle">Decision to Leave, 2021</p>
</div>
<!-- 영화 정보(왼쪽)-->
<div class="left">
<div class="lineHeight">
<p class="infoname">개봉</p>
<p class="info">2022.06.29</p>
</div>
<div class="lineHeight">
<p class="infoname">장르</P>
<p class="info">로맨스/멜로/드라마</p>
</div>
<div class="lineHeight">
<p class="infoname">국가</P>
<p class="info">한국</p>
</div>
<div class="lineHeight">
<P class="infoname">등급</P>
<p class="info">15세이상관람가</p>
</div>
<div class="lineHeight">
<P class="infoname">러닝타임</P>
<p class="info">138분</p>
</div>
</div>
<!-- 영화 정보(오른쪽)-->
<div class="right">
<div class="lineHeight">
<p class="infoname">평점</p>
<p class="info">8.1</p>
</div>
<div class="lineHeight">
<p class="infoname">누적관객</p>
<p class="info">1,341,505명</p>
</div>
<div class="lineHeight">
<p class="infoname">박스오피스</p>
<p class="info">5위</p>
</div>
<div class="lineHeight">
<p class="infoname">쿠키영상</p>
<p class="info">없음</p>
</div>
<div class="lineHeight">
<p class="infoname">수상내역</p>
<p class="info">75회 칸영화제,2022</p>
</div>
</div>
</div>
</div>
<div class="rating">
<h3>네티즌 평점</h3>
<div class="center">
<p class="choice">별점을 선택해주세요</p>
<div class="stars">
<p class="star">★</p>
<p class="star">★</p>
<p class="star">★</p>
<p class="star">★</p>
<p class="star">★</p>
<p class="rate">0</p>
</div>
</div>
<div class="center2">
<input type="text" id="input" placeholder="감상평을 등록해주세요.">
<button id="register">등록</button>
</div>
</div>
<!-- 등록 평점 -->
<div class="registerRating">
<div class="userComment top">
<div class="userRating">
<p class="user_Star">★</p>
<p class="user_Star">★</p>
<p class="user_Star">★</p>
<p class="user_Star">★</p>
<p class="user_Star">★</p>
<p class="user_Rate">10</p>
</div>
<p class="content">네게 미결로 남고 싶은 내 삶의 흔적</p>
</div>
<div class="userComment">
<div class="userRating">
<p class="user_Star">★</p>
<p class="user_Star">★</p>
<p class="user_Star">★</p>
<p class="user_Star">★</p>
<p class="user_Star">★</p>
<p class="user_Rate">10</p>
</div>
<p class="content">이 영화는 4시 전후로 보는 것이 좋다. 엔딩크레딧이 올라가고 밖으로 나와 어둑해진 하늘을 보면 파도처럼 밀려오는 여운과 함께 영화가 계속 이어지는 느낌을 받을 수 있다.</p>
</div>
<div class="userComment">
<div class="userRating">
<p class="user_Star">★</p>
<p class="user_Star">★</p>
<p class="user_Star">★</p>
<p class="user_Star">★</p>
<p class="user_Star gray">★</p>
<p class="user_Rate">8</p>
</div>
<p class="content">사랑에는 결심이 필요하지 않죠, 자연스러운 거니까. 그런데 헤어질 땐 결심이 필요하죠.</p>
</div>
</div>
</div>
<script>
//별점 이벤트
$(".star").click(function() {
$(this).prevAll(".star").css("color","red");
$(this).nextAll(".star").css("color","rgb(209, 209, 209)");
$(this).css("color","red");
})
$(".star:nth-child(1)").click(function() {
$(".rate").html("2");
})
$(".star:nth-child(2)").click(function() {
$(".rate").html("4");
})
$(".star:nth-child(3)").click(function() {
$(".rate").html("6");
})
$(".star:nth-child(4)").click(function() {
$(".rate").html("8");
})
$(".star:nth-child(5)").click(function() {
$(".rate").html("10");
})
//리뷰 등록 이벤트
//2. 새로 등록한 리뷰 별점
$("#register").click(function() {
//태그 생성 및 내용 입력
$(".registerRating").append($("<div>").addClass("userComment"));
$(".userComment").last().append($("<div>").addClass("userRating"));
$(".userRating").last().append($("<p>").addClass("user_Star").html("★"));
$(".userRating").last().append($("<p>").addClass("user_Star").html("★"));
$(".userRating").last().append($("<p>").addClass("user_Star").html("★"));
$(".userRating").last().append($("<p>").addClass("user_Star").html("★"));
$(".userRating").last().append($("<p>").addClass("user_Star").html("★"));
$(".userRating").last().append($("<p>").addClass("user_Rate").html($(".rate").html()));
$(".userComment").last().append($("<p>").addClass("content").html($("#input").val()));
//새로 등록한 리뷰 별점
if($(".rate").html() === "2"){
$(".userRating:last .user_Star").first().nextAll(".user_Star").css("color","rgb(209, 209, 209)");
} else if ($(".rate").html() === "4"){
$(".userRating:last .user_Star:nth-child(2)").nextAll(".user_Star").css("color","rgb(209, 209, 209)");
} else if ($(".rate").html() === "6"){
$(".userRating:last .user_Star:nth-child(3)").nextAll(".user_Star").css("color","rgb(209, 209, 209)");
} else if ($(".rate").html() === "8"){
$(".userRating:last .user_Star:nth-child(4)").nextAll(".user_Star").css("color","rgb(209, 209, 209)");
}
})
// 로고 클릭시 홈 화면 이동
$("#logo").click(function(){
location.href="HOME.html";
})
</script>
<script>
// <!-- 4. 스와이퍼 JS -->
const swiper = new Swiper('.swiper_a', {
// Optional parameters
direction: 'horizontal', /* 수직, 수평 */
loop: true, /* 무한루프 */
// If we need pagination
pagination: {
el: '.swiper-pagination',
clickable: true, /* 클릭 옵션 */
type: 'bullet', /* 타입 */
},
// Navigation arrows
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
}
});
</script>
</body>
</html>