-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
172 lines (138 loc) · 5.54 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> Welcome to my Website </title>
<link rel="stylesheet" href="40_css_Base.css">
</head>
<body>
<div id="hiddenGrid">
<button id="hiddenMenuButton">메뉴</button>
<h1 id="hiddenBigTile"><a href="index.html">Welcome to My site~ I just Learn everything!</a></h1>
</div>
<div id="hiddenList">
<li><a href="index.html">◼︎ HOME</a></li>
<br>
<li><a href="200_web.html">◼︎ What is WEB?</a></li>
<br>
<li><a href="300_html.html">◼︎ HTML</a>
<!-- <ul>
<li class="plusMaginForSecondList">하위 리스트 항목 1</li>
<li>하위 리스트 항목 2</li>
<li>하위 리스트 항목 3</li>
</ul> -->
</li>
<br>
<li><a href="400_css.html">◼︎ CSS</a>
<!-- <ul>
<li class="plusMaginForSecondList">하위 리스트 항목 1</li>
<li>하위 리스트 항목 2</li>
<li>하위 리스트 항목 3</li>
</ul> -->
</li>
<br>
<li><a href="500_javascript.html">◼︎ JavaScript</a>
<ul>
<li class="plusMaginForSecondList"><a href="511_[JS]word-relay.html">[Game] Word-relay</a></li>
<!-- <li>하위 리스트 항목 2</li>
<li>하위 리스트 항목 3</li> -->
</ul>
</li>
<br>
<li><a href="700_startupStation.html">◼︎ Startup Station of TECHIT</a>
<ul>
<li class="plusMaginForSecondList"><a href="701_startup_1.html">Introduce Myself</a></li>
<!-- <li>하위 리스트 항목 2</li>
<li>하위 리스트 항목 3</li> -->
</ul>
</li>
<br>
</div>
<div id="topGrid">
<div id="emptyBox"></div>
<h1 id="bigTile"><a href="index.html">Welcome to My site~ I just Learn everything!</a></h1>
</div>
<div id="centerGrid">
<ul class="ulList">
<li><a href="index.html">◼︎ HOME</a></li>
<br>
<li><a href="200_web.html">◼︎ What is WEB?</a></li>
<br>
<li><a href="300_html.html">◼︎ HTML</a>
<!-- <ul>
<li class="plusMaginForSecondList">하위 리스트 항목 1</li>
<li>하위 리스트 항목 2</li>
<li>하위 리스트 항목 3</li>
</ul> -->
</li>
<br>
<li><a href="400_css.html">◼︎ CSS</a>
<!-- <ul>
<li class="plusMaginForSecondList">하위 리스트 항목 1</li>
<li>하위 리스트 항목 2</li>
<li>하위 리스트 항목 3</li>
</ul> -->
</li>
<br>
<li><a href="500_javascript.html">◼︎ JavaScript</a>
<ul>
<li class="plusMaginForSecondList"><a href="511_[JS]word-relay.html">[Game] Word-relay</a></li>
<!-- <li>하위 리스트 항목 2</li>
<li>하위 리스트 항목 3</li> -->
</ul>
</li>
<br>
<li><a href="700_startupStation.html">◼︎ Startup Station of TECHIT</a>
<ul>
<li class="plusMaginForSecondList"><a href="701_startup_1.html">Introduce Myself</a></li>
<!-- <li>하위 리스트 항목 2</li>
<li>하위 리스트 항목 3</li> -->
</ul>
</li>
<br>
<br>
<li><a href="513_lottoNumber.html">◼︎ 로또번호 추첨 만들기</a>
<ul>
<!-- <li>하위 리스트 항목 1</li>
<!-- <li>하위 리스트 항목 2</li>
<li>하위 리스트 항목 3</li> -->
</ul>
</li>
<br>
</ul>
<!-- ======================================================== -->
<!-- 🟩 본문 -->
<div id="article">
<h2>◼︎ Introduce this website!</h2>
<p>
Hi, guys! Nice to meet you!!!
<br>
<br>
This is a site that organizes everything I learn!
<br>
<br>
</p>
</div>
</div>
<!-- ======================================================== -->
<script>
// 1. 이렇게 변수 or 상수로 html코드를 이렇게 가져온다.
const hiddenMenuButton = document.querySelector('#hiddenMenuButton');
const hiddenGrid = document.querySelector('#hiddenGrid');
const hiddenList = document.querySelector('#hiddenList');
// 2. 이벤트 시 작동할 함수, 즉 기능을 만든다.
// 3. 이벤트 시 위 기능을 실행하라는 이벤트 리스너를 만든다.
const onClickHiddenMenuButton = () => {
// const windowWidth = window.innerWidth;
// if (windowWidth <= 800) {
// hiddenList.style.display = "block";
// } else {
// hiddenList.style.display = "none";
// }
hiddenList.classList.toggle('active');
};
hiddenMenuButton.addEventListener('click',onClickHiddenMenuButton);
</script>
</body>
</html>