-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.html
182 lines (154 loc) · 5.07 KB
/
Home.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
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html>
<head>
<title>The Unknown Game Blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="CSS/GeneralStyle.css">
<link rel="stylesheet" type="text/css" href="CSS/Home.css">
</head>
<body>
<header>
<H1><a href="Home.html">The Unknown Game Blog</a></H1>
<nav>
<div class="dropdown">
<div onclick="toggleDropdown()" class="dropbtn"></div>
<ul id="myDropdown" class="dropdown-content">
<li><a href="GameRecommendation.html">Game Recommendation</a></li>
<li><a href="GameAnalysis.html">Game Analysis</a></li>
<li><a href="CreativityBlog.html">Creativity Blog</a></li>
</ul>
</div>
<ul id="NavBar">
<li><a href="GameRecommendation.html">Game Recommendation</a></li>
<li><a href="GameAnalysis.html">Game Analysis</a></li>
<li><a href="CreativityBlog.html">Creativity Blog</a></li>
</ul>
</nav>
<script src="js/dropdown.js"></script>
</header>
<main>
<!-- image slider -->
<div class="SlideshowContainer">
<!-- Full-width images with number and caption text -->
<div class="Slide">
<img src="Images/SlideLimbo.jpg">
<a href="GameRecommendation.html"><H3>Recommendation</H3></a>
<H2>Limbo</H2>
</div>
<div class="Slide">
<img src="Images/SlideCubeEscape.jpg">
<a href="GameRecommendation.html"><H3>Recommendation</H3></a>
<H2>Cube Escape</H2>
</div>
<div class="Slide">
<img src="Images/SlideASM.jpg">
<a href="GameRecommendation.html"><H3>Recommendation</H3></a>
<H2>Always Sometimes Monsters</H2>
</div>
<div class="Slide">
<img src="Images/SlideStardew.jpg">
<a href="GameRecommendation.html"><H3>Recommendation</H3></a>
<H2>Stardew Valley</H2>
</div>
<!-- Next and previous buttons -->
<a class="PrevButtom" onclick="plusSlides(-1)">❮</a>
<a class="NextButtom" onclick="plusSlides(1)">❯</a>
</div>
<!-- The dots/circles -->
<div style="text-align:center">
<span class="Dot" onclick="currentSlide(1)"></span>
<span class="Dot" onclick="currentSlide(2)"></span>
<span class="Dot" onclick="currentSlide(3)"></span>
<span class="Dot" onclick="currentSlide(4)"></span>
</div>
<script>
var slideIndex = 0;
var hoverOnSlides = false;
autoSlides();
$(".Slide, .PrevButtom, .NextButtom").mouseover( function(){
hoverOnSlides = true;
});
$(".Slide, .PrevButtom, .NextButtom").mouseout( function(){
hoverOnSlides = false;
});
function plusSlides(n) {
slideIndex += n;
showSlides(slideIndex);
}
function showSlides(n) {
var i;
var dots = document.getElementsByClassName("Dot");
var slides = document.getElementsByClassName("Slide");
if (n > slides.length) {
slideIndex = 1
}
else if (n < 1) {
slideIndex = slides.length
}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function autoSlides(){
var timeoutVar = setTimeout(autoSlides, 2500);
if (hoverOnSlides==false){
slideIndex++;
showSlides(slideIndex);
}
}
</script>
<div class="Container">
<div class="PostContainer">
<img src="Images/CSquare300Orwell.jpg">
<a href="CreativityBlog.html" class="PostPage"><H3>Blog</H3></a>
<a href="CreativityBlog/Blog1.html" class="SinglePost"><H2>Play Something</H2></a>
</div>
<div class="PostContainer">
<img src="Images/ASquare300Inside.jpg">
<a href="GameAnalysis.html" class="PostPage"><H3>Analysis</H3></a>
<a href="GameAnalysis/Analysis1.html" class="SinglePost"><H2>World Building in INSIDE</H2></a>
</div>
<div class="PostContainer">
<img src="Images/CSquare300Persepolis.jpg">
<a href="CreativityBlog.html" class="PostPage"><H3>Blog</H3></a>
<a href="CreativityBlog/Blog2.html" class="SinglePost"><H2>Good Watches for the Week</H2></a>
</div>
<div class="PostContainer">
<img src="Images/CSquare300GGJ.jpg">
<a href="CreativityBlog.html" class="PostPage"><H3>Blog</H3></a>
<a href="CreativityBlog/Blog3.html" class="SinglePost"><H2>Global Game Jam at NYU Game Center</H2></a>
</div>
</div>
</main>
<div id="RunAnimation">
<div id="RunningBox">
</div>
</div>
<script>
var boxPosition = 0;
var boxSpeed = 10;
function BoxRun() {
var box = document.getElementById("RunningBox");
boxPosition += boxSpeed;
box.style.left = boxPosition + 'px';
}
</script>
<footer>
<p>This site is a random personal game blog.</p>
<p>Contact: [email protected]</p>
<p>©TheUnknownGameBlog</p>
<div class="RunButton">
<button id="RunButton" onclick="BoxRun()">Run!</button>
</div>
</footer>
</body>
</html>