-
Notifications
You must be signed in to change notification settings - Fork 2
/
page1_review.html
130 lines (127 loc) · 3.83 KB
/
page1_review.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
<!DOCTYPE html>
<html lang ="ko">
<meta charset="utf-8">
<head>
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/moonspam/NanumSquare/master/nanumsquare.css">
<link rel="stylesheet" href="page1_review.css">
<script
src="https://kit.fontawesome.com/3e3fb6f6f4.js"
crossorigin="anonymous"
></script>
<script type="text/javascript">
function filter(){
var value,subject, name, item, i;
value = document.getElementById("name").value.toUpperCase();
item = document.getElementsByClassName("search");
for(i=0;i<item.length;i++){
subject = item[i].getElementsByClassName("lecture");
name = item[i].getElementsByClassName("professor");
if(subject[0].innerHTML.toUpperCase().indexOf(value) > -1){
item[i].style.display="flex";
}else if (name[0].innerHTML.toUpperCase().indexOf(value) > -1){
item[i].style.display="flex";
}else{
item[i].style.display = "none";
}
}
}
</script>
</head>
<body>
<nav id="navbar" class="navbar">
<img id="logo" src="로고.png" />
<div id="search_panel">
<i id="si" class="fas fa-search"></i>
<input
id="name"
type="text"
placeholder="강의명, 교수님 성함을 입력해주세요."
onkeyup="filter()"
/>
<span id="Search_bt">Search</span>
</div>
<div class="login_panel">
<div id="login_bt">로그인</div>
<div id="sign_in">회원가입</div>
</div>
</nav>
<ul>
<div class="infinite-scroll">
<div class="infinite">
<li class="search">
<a href="page2_review.html">
<div class="searchcard">
<p class="year">
2020년 2학기 - IMEN158
</p>
<span class="subject">
전공선택
</span>
</div>
<div class='searchid'>
<div class='info'>
<p class="lecture">
데이터분석을위한프로그래밍언어(영강)
</p>
<p>
<span class="professor">강필성</span> 교수님
</p>
</div>
</div>
</a>
</li>
</div>
<br>
<div class="infinite">
<li class="search">
<a href="page2_review.html">
<div class="searchcard">
<p class="year">
2020년 2학기 - IMEN214
</p>
<span class="subject">
전공필수
</span>
</div>
<div class='searchid'>
<div class='info'>
<p class="lecture">
응용통계및실습
</p>
<p>
<span class="professor">명노해</span> 교수님
</p>
</div>
</div>
</a>
</li>
</div>
<br>
<div class="infinite">
<li class="search">
<a href="page2_review.html">
<div class="searchcard">
<p class="year">
2020년 2학기 - IMEN204
</p>
<span class="subject">
전공선택
</span>
</div>
<div class='searchid'>
<div class='info'>
<p class="lecture">
일반회계및원가계산
</p>
<p>
<span class="professor">신현섭</span> 교수님
</p>
</div>
</div>
</a>
</li>
</div>
</div>
</ul>
</body>
</html>