-
Notifications
You must be signed in to change notification settings - Fork 0
/
guesthome.php
132 lines (118 loc) · 4.05 KB
/
guesthome.php
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
<html>
<link rel="stylesheet" type="text/css" href="home.css">
<style>
.content {
padding: 16px;
}
/* The sticky class is added to the navbar with JS when it reaches its scroll position */
.sticky {
position: fixed;
top: 0;
width: 100%;
}
/* Add some top padding to the page content to prevent sudden quick movement (as the navigation bar gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .content {
padding-top: 60px;
}
</style>
<head>
<title>Omni Games</title>
</head>
<body>
<div id="box1">
<h1>
Omni Games
</h1>
</div>
<div id="box5">
<div class="topnav" id= "navbar">
<!-- Centered link -->
<div class="topnav-centered">
<a href="guesthome.php" class="active"><img src="omnigames logo.png" width="60" height="37.5"></a>
</div>
<!-- Left-aligned links (default) -->
<a href="pongguest.php">Pong</a>
<a href="snakeguest.php">Snake</a>
<a href="tetrisguest.php">Tetris</a>
<!-- Right-aligned links -->
<div class="topnav-right">
<a> Hello Guest</a>
<a href="guestnews.html">News</a>
<a href="guestcontact.html">About Us</a>
</div>
</div>
</div>
<!--
<div id="box2">
<h1><a href = "tetris.html"> Hardcore Tetris </a></h1>
</div>
<div id="box3">
<h1><a href = "Snake.html">Snake</a></h1>
</div>
<div id="box4">
<h1><a href = "pong.html">Pong</a></h1>
</div>
-->
<div class="background_home">
<div class="slideshow-container">
<div class="mySlides fade">
<div class="numbertext">1 / 3</div>
<a href = "pongguest.php">
<img src="i4.jpg" style="width:80%; height:1000px">
<div class="text" style = "color:White">Pong</div>
</a>
</div>
<div class="mySlides fade">
<a href = "snakeguest.php">
<div class="numbertext">2 / 3</div>
<img src="i3.png" style="width:80%; height:1000px">
<div class="text" style = "color:White">Snake</div>
</a>
</div>
<div class="mySlides fade">
<a href = "tetrisguest.php">
<div class="numbertext">3 / 3</div>
<img src="i2.jpg" style="width:80%; height:1000px">
<div class="text" style = "color:White">Hardcore Tetris</div>
</a>
</div>
</div>
<br>
<div style="text-align:center">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
<script>
var slideIndex = 0;
showSlides();
function showSlides() {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
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";
setTimeout(showSlides, 5000); // Change image every 2 seconds
}
/*--------------------------------------------*/
window.onscroll = function() {myFunction()};
var navbar = document.getElementById("navbar");
var sticky = navbar.offsetTop;
function myFunction() {
if (window.pageYOffset >= sticky) {
navbar.classList.add("sticky")
} else {
navbar.classList.remove("sticky");
}
}
</script>
</body>
</html>