-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog_user.html
More file actions
150 lines (131 loc) · 4.83 KB
/
blog_user.html
File metadata and controls
150 lines (131 loc) · 4.83 KB
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
<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon" href="#">
<title>우리 마을 변호사</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Black+Han+Sans&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Jua&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Do+Hyeon&display=swap" rel="stylesheet">
<style>
#logo {
align-items: center;
display: block;
}
a:link {
color: darkgray;
text-decoration: none;
}
a:visited {
color: darkgray;
text-decoration: none;
}
#menubar {
background: rgb(163, 213, 201);
}
#menubar ul {
margin: 0;
padding: 3;
width: 95%
}
#menubar ul li {
display: inline-block;
list-style-type: none;
padding: 6px 20px;
}
#menubar ul li a {
color: rgb(68, 68, 68);
text-decoration: none;
font-family: 'Black Han Sans', sans-serif;
font-size: 125%;
}
#menubar ul li a:hover {
color: rgb(242, 146, 72)
}
#menubar li.user {
float: right;
margin-left: -1px;
z-index: 1;
}
</style>
</head>
<body>
<header>
<div>
<a id="logo" href="#none" onclick="move_home()">
<center><img src="img/main_logo.png" width="600" height="200"></center>
</a>
</div>
<br><br><br>
<nav id="menubar">
<ul>
<!-- 변호사 검색 버튼 -->
<li><a href="#none" onclick="move_search()">변호사 검색 & 상담 예약 신청</a></li>
<!-- 사이버법률상담 버튼 -->
<li><a href="#none" onclick="move_cyber()">사이버법률상담</a></li>
<!-- 이용 안내 버튼 -->
<li><a href="#none" onclick="move_howtouse()">이용 안내</a></li>
<li><a href="#none" onclick="move_blog()"style="color: rgb(242, 146, 72);">마을변호사 소식</a></li>
<li><a href="#none" onclick="move_qna()">자주묻는 질문</a></li>
<li class="user"><a href="./home.html">로그아웃</a></li>
<li class="user"><a id="user_name">땡땡땡</a></li>
</ul>
</nav>
<br>
</header>
<center><iframe style="display:block; width:100vw; height: 100vh" src="http://blog.naver.com/mabyun"> i레임</iframe>
</center>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript">
function change_name(name) {
var user = document.getElementById("user_name");
user.innerText = name + " 님";
}
var getParameter = function (param) {
var returnValue;
var url = location.href;
var parameters = (url.slice(url.indexOf('?') + 1, url.length)).split('&');
for (var i = 0; i < parameters.length; i++) {
var varName = parameters[i].split('=')[0];
if (varName.toUpperCase() == param.toUpperCase()) {
returnValue = parameters[i].split('=')[1];
return decodeURIComponent(returnValue);
}
}
};
$(document).ready(function () {
var name = getParameter('index');
console.log('name : ' + name);
if (name != undefined) {
change_name(name);
}
});
function move_search() {
var name = getParameter('index');
window.location.href = "lawyer_search.html?index=" + name;
}
function move_cyber() {
var name = getParameter('index');
window.location.href = "cyber_qa_user.html?index=" + name;
}
function move_home(){
var name = getParameter('index');
window.location.href = "user_home.html?index="+name;
}
function move_blog() {
var name = getParameter('index');
window.location.href = "blog_user.html?index=" + name;
}
function move_howtouse() {
var name = getParameter('index');
window.location.href = "howtouse_user.html?index=" + name;
}
function move_qna() {
var name = getParameter('index');
window.location.href = "qna_user.html?index=" + name;
}
</script>
</body>
</html>