-
Notifications
You must be signed in to change notification settings - Fork 0
/
tetrisguest.php
76 lines (69 loc) · 2.23 KB
/
tetrisguest.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
<!DOCTYPE html>
<html>
<link rel="stylesheet" type="text/css" href="home.css">
<head>
<title>Omni Games - Tetris</title>
<style>
body {
background: #262626;
color: #fff;
font-family: sans-serif;
font-size: 2em;
text-align: center;
}
canvas {
border: solid .2em #fff;
height: 90vh;
}
body div.relative {
float: right;
height: 160px;
position: relative;
right: 610px;
top: 320px;
}
.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>
<div id="box5">
<div class="topnav" id= "navbar">
<!-- Centered link -->
<div class="topnav-centered">
<a href="home.php"><img src="omnigames logo.png" width="60" height="37.5"></a>
</div>
<!-- Left-aligned links (default) -->
<a href="pong.php">Pong</a>
<a href="snake.php">Snake</a>
<a href="tetris.php" class="active">Tetris</a>
<!-- Right-aligned links -->
<div class="topnav-right">
<a> Hello <?php session_start(); echo $_SESSION['user']; ?></a>
<a href="news.php">News</a>
<a href="contact.php">About Us</a>
</div>
</div>
</div>
</head>
<body>
<h1 style="position:absolute;left:39%;top:10px;font-size:70px; color:white">Tetris</h1>
<hr style="margin-top:85px; color:white">
<div class="relative">
<div id="buttonAppear"></div>
Level: <div id="level"></div>
Score: <div id="score"></div>
</div>
<canvas id="tetris" width="240" height="400"></canvas>
<script src="tetris1.js"></script>
</body>
</html>