-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (55 loc) · 1.67 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
<HTML>
<head>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<script>
function openCity(cityName) {
var i;
var x = document.getElementsByClassName("city");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
document.getElementById(cityName).style.display = "block";
}
</script>
</head>
<body>
<div class="w3-bar w3-black">
<button class="w3-bar-item w3-button" onclick="openCity('London')">Home</button>
<button class="w3-bar-item w3-button" onclick="openCity('Paris')">Blog</button>
<button class="w3-bar-item w3-button" onclick="openCity('Tokyo')">Projects</button>
<button class="w3-bar-item w3-button" onclick="openCity('About')">About</button>
</div>
<div id="London" class="city">
<h2>TubbyBlog</h2>
<p>Welcome to TubbyBlog</p>
<p>This is a website for useful tools</p>
<h6>Including</h6>
<ul>
<li><button class = "w3-button w3-blue" onclick="openCity('Blog/Posts/ASH')">ASH</button></li>
<li>Plex2</li>
<li>Googleplex</li>
<li>And more</li>
</ul>
</div>
<div id="Blog" class="city" style="display:none">
<h1>BLOG</h1>
<h2>Blog/...</h2>
<div class="w3-container">
<div class="w3-card w3-blue">
<p>Current Blog Pages:</p>
<div class="w3-card w3-white">
<button class = "w3-button w3-blue" onclick="openCity('Blog/Posts/ASH')">ASH</button>
</div>
</div>
</div>
</div>
<div id="Blog/Posts/ASH" class="city" style="display:none">
<h1>ASH</h1>
<h2>Blog/Post/ASH</h2>
<p>WIP Page</p>
</div>
<div id="Tokyo" class="city" style="display:none">
<h2>Tokyo</h2>
<p>Tokyo is the capital of Japan.</p>
</div>
</body>