-
Notifications
You must be signed in to change notification settings - Fork 2
/
head.html
133 lines (112 loc) · 4.4 KB
/
head.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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1280">
<link rel="stylesheet" href="static/css/head.css">
<link rel="icon" href="static/img/favicon.ico">
<!-- 웹 참조-->
<script src="//code.jquery.com/jquery-latest.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://kit.fontawesome.com/e8a335040d.js" crossorigin="anonymous"></script>
<script src="static/js/includeHTML.js"></script>
<!-- 웹 폰트 참조-->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Courgette&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500&display=swap" rel="stylesheet">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-219523848-1"></script>
<title>Please Graduate</title>
</head>
<body>
<!-- 로고 / 메뉴바-->
<header class="header">
<div class="navbar_logo">
<a href="/"><img src="static/img/deer1.png"></a>
</div>
<ul class="navbar_menu">
<li>
<a href='https://forms.gle/f2vUqVg9wQFneBLf7' target="_blank" style="color: white">피드백하기</a>
</li>
<!-- {% if request.session.id %}-->
<li>
<a href='/mypage/' style="color: white">마이페이지</a>
</li>
<!-- {% endif %}-->
<li>
<!-- 로그인 세션 활용 -->
<!-- {% if not request.session.id %}-->
<!-- <a href='/login/'>로그인</a>-->
<!-- {% else %}-->
<a href='javascript:logout()' style="color: white">로그아웃</a>
<!-- {% endif %}-->
</li>
</ul>
</header>
<div class="bg_wrapper">
<!-- 메인 -->
<header class="main_bg">
<!-- 소개 문구 -->
<div class="bg_text_btn">
<div class="bg_small_text fadein_text" style="letter-spacing:1px;">
상명대 졸업요건 검사 사이트
</div>
<div class="bg_big_text fadein_text" style="letter-spacing:8px;">
SMUNITY
</div>
<div class="bg_btn">
<button class="bg_btn_style" onclick="location.href='/mypage/'">검사하기</button>
</div>
</div>
<!-- 방문자 + 검사횟수 -->
<div class="num_visit">
<div>
<i class="fas fa-calendar-day"></i> 오늘 방문자 수 : 322 명
</div>
<div style="margin-top:0.4rem;">
<i class="fas fa-mouse" style="margin-right:0.1rem;"></i> 총 방문자 수 : 35213 명
</div>
<div style="margin-top:0.4rem;">
<i class="fas fa-user"></i> 총 회원 수 : 6392 명
</div>
</div>
</header>
</div>
<div include-html="reference/footer.html"></div>
</body>
<script>
includeHTML();
function logout() {
var back_head = confirm('✋ 정말 로그아웃 하시겠습니까? ✋');
if (back_head) {
location.href = '/f_logout/';
}
}
// 쿠키 여부에 따라 모달창 렌더링
var unlook_cookie = document.cookie.match('(^|;) ?' + 'is_unlook_0821' + '=([^;]*)(;|$)');
if (unlook_cookie == null) {
document.getElementById('myModal').style.display = 'block';
}
// 모달 창 끄기 + 다시 보지 않음 쿠키 설정
var Spanclick_set_cookie = function (x, y) {
x.onclick = function () {
y.style.display = "none";
var chk = document.getElementById('unlook');
// 체크하고 누르면 쿠키 생성
if (chk.checked) {
var date = new Date();
date.setTime(date.getTime() + 60 * 24 * 60 * 60 * 1000);
document.cookie = 'is_unlook_0821' + '=' + 'unlook' + ';expires=' + date.toUTCString() + ';path=/';
}
}
}
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
var modal = document.getElementById('myModal');
var span = document.getElementsByClassName("close")[0];
Spanclick_set_cookie(span, modal);
</script>
</html>