-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhome.php
More file actions
110 lines (72 loc) · 1.82 KB
/
home.php
File metadata and controls
110 lines (72 loc) · 1.82 KB
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
<?php
// Initialize the session
session_start();
?>
<!DOCTYPE HTML>
<html>
<link rel="stylesheet" type="text/css" href="homecss.css">
<title>James' Pizza</title>
<div class="container">
<div class="navigation">
<a href="home.php">
<img src="Pizza logo3.png" class="logo">
</a>
<?php if(!isset($_SESSION['email'])) : ?>
<a href="Login.php">
<p3> Login</p3>
</a>
<a href="register.php">
<p3> Register</p3>
</a>
<?php endif; ?>
<?php if(isset($_SESSION['email'])) : ?>
<a href="LogOut.php">
<p3>Log Out</p3>
</a>
<?php endif; ?>
</div>
<div class="buttonHolder">
<a href="order.php">
<button class="OrderButton">
<p2>Order</p2>
</button>
</a>
<a href="contactus.php">
<button class="ContactButton">
<p2>Contact Us</p2>
</button>
</a>
<a href="about.php">
<button class="AboutButton">
<p2>About</p2>
</button>
</a>
</div>
<div class="offer">
<h1>Get a Large 16" Pizza For just €12.99!
</div>
<div class="slideshow">
<img class="mySlides" src="pizza1.jpeg">
<img class="mySlides" src="pizza2.jpg">
<img class="mySlides" src="pizza3.jpg">
</div>
<footer>
<p>Website by: James Hughes</p>
</footer>
</div>
<script>
var myIndex = 0;
carousel();
function carousel() {
var i;
var x = document.getElementsByClassName("mySlides");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
myIndex++;
if (myIndex > x.length) {myIndex = 1}
x[myIndex-1].style.display = "block";
setTimeout(carousel, 5000); // Change image every 2 seconds
}
</script>
</html>