forked from Season-Hackathon/Mission-Book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguide_modal.html
255 lines (241 loc) · 8.27 KB
/
guide_modal.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
<!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>guide_modal.html</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
<style>
/* 안내 메세지 모달창 css */
.modal{
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
}
.md_overlay{
background: rgba(0, 0, 0, 0.25);
width: 100%; height: 100%;
position: absolute;
display: flex;
justify-content: center;
align-items: center;
}
.md_position{
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.md_content{
width: 300px; height: 230px;
position: absolute;
z-index: 10;
background-color: white;
border-radius: 5px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.hidden{
display: none;
}
.title_position{
display: flex;
margin-top: 42px;
margin-bottom: 14px;
}
.md_content>img{
display: inline;
}
.md_content h3{
color: #666666;
font-weight: 800;
font-size: 25px;
line-height: 30px;
margin: 0;
}
.md_content p{
font-weight: 700;
font-size: 18px;
line-height: 22px;
color: #7A7A7A;
margin: 0;
}
.md_content>input{
margin-top: 35px;
margin-bottom: 28px;
box-sizing: border-box;
width: 150px; height: 45px;
padding: 10px;
background: #FAFAFA;
border: 0.8px solid #C0C0C0;
border-radius: 5px;
font-family: 'Apple SD Gothic Neo';
font-style: normal;
font-weight: 800;
font-size: 18px;
line-height: 22px;
color: #666666;
}
.left_icon{
margin-right: 8px;
}
.right_icon{
margin-left: 8px;
}
/* 졸업 안내 모달창 css */
.modal2{
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
}
.md_overlay2{
background: rgba(0, 0, 0, 0.25);
width: 100%; height: 100%;
position: absolute;
display: flex;
justify-content: center;
align-items: center;
}
.md_position2{
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.md_content2{
width: 300px; height: 280px;
position: absolute;
z-index: 10;
background-color: white;
border-radius: 5px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.hidden{
display: none;
}
.title_position{
display: flex;
margin-top: 0;
margin-bottom: 14px;
padding-top: 40px;
}
.md_content2>img{
display: inline;
}
.md_content2 h3{
color: #666666;
font-weight: 800;
font-size: 25px;
line-height: 30px;
margin: 0;
}
.first_p{
font-weight: 700;
font-size: 18px;
line-height: 22px;
color: #7A7A7A;
margin: 0;
}
.second_p{
font-weight: 700;
font-size: 13px;
line-height: 16px;
margin: 0;
color: #7A7A7A;
font-family: 'Apple SD Gothic Neo';
font-style: normal;
}
.second_p span{
color: #C74E4E;
}
.md_content2>input{
margin-top: 27px;
margin-bottom: 28px;
box-sizing: border-box;
width: 150px; height: 45px;
padding: 10px;
background: #FAFAFA;
border: 0.8px solid #C0C0C0;
border-radius: 5px;
font-family: 'Apple SD Gothic Neo';
font-style: normal;
font-weight: 800;
font-size: 18px;
line-height: 22px;
color: #666666;
}
.left_icon{
margin-right: 8px;
}
.right_icon{
margin-left: 8px;
}
</style>
</head>
<body>
<!-- 안내매세지 모달창 -->
<div class="md_position hidden">
<div class="modal">
<div class="md_overlay ">
</div>
</div>
<div class="md_content">
<div class="title_position">
<img src="image/celebrate_icon.png" alt="왼쪽아이콘" width="25px" height="25px" class="left_icon"/>
<h3>축하합니다!</h3>
<img src="image/celebrate_icon_reverse.png" alt="오른쪽아이콘" width="25px" height="25px" class="right_icon"/>
</div>
<p>레벨이 올랐습니다.</p>
<input type="button" name="loginErrorModal" value="확인"/>
</div>
</div>
<!-- 졸업 안내 모달창 -->
<div class="md_position2">
<div class="modal2">
<div class="md_overlay2">
</div>
</div>
<div class="md_content2">
<div class="title_position">
<img src="image/graduation_icon.png" alt="왼쪽아이콘" width="25px" height="25px" class="left_icon"/>
<h3>엔딩</h3>
<img src="image/graduation_icon.png" alt="오른쪽아이콘" width="25px" height="25px" class="right_icon"/>
</div>
<p class="first_p">12월 31일이 되었습니다. <br/>
지금 바로 엔딩을 확인해보세요!</p> <br/>
<p class="second_p"><span>주의사항</span>: 지금부터 미션을 성공해도 <br/>
더 이상의 스탯, 레벨 변화는 없습니다.</p>
<input type="button" name="loginErrorModal" value="확인"/>
</div>
</div>
<script>
// 배경의 까만 부분 누르면 모달창 사라짐 (frame 31 : 엔딩 모달창의 경우만 적용)
$('.md_overlay2').click(()=>{$('.md_position2').addClass('hidden')});
// 모달창 제목의 왼쪽 아이콘 바꾸기 (아이콘 이미지 파일(~_icon) : celebrate / gift / graduation(학사모) / siren(사이렌) / throphy)
$('.md_content .left_icon').attr('src','image/trophy_icon.png');
// 모달창 제목의 오른쪽 아이콘 바꾸기
$('.md_content .right_icon').attr('src','image/trophy_icon.png');
// 모달창 제목 바꾸기
$('.md_content h3').text('미션 성공');
// 모달창 내용 바꾸기
$('.md_content p').html('<span>스탯</span>을 달성하여 선물이 왔습니다. <br/> 칭호 창을 확인해보세요!');
// frame 28처럼 '스탯', '레벨'과 같이 색깔을 진하게 하려면 모달창 내용에 <span>태그로 감싸주고 css 바꾸기
$('.md_content span').css('color','#666666');
// 모달창의 확인 버튼 누르면 모달창 사라짐
$('input[name=loginErrorModal]').click(()=>{$('.md_position').addClass('hidden')}); // 안내메세지
$('input[name=loginErrorModal]').click(()=>{$('.md_position2').addClass('hidden')}); // 졸업메세지
</script>
</body>
</html>