-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
75 lines (69 loc) · 2.46 KB
/
index.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
<?php require 'Handle/SetCookie.php'?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="View/Style/style.css">
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Amatic+SC" />
<title>Home</title>
</head>
<body>
<div class="container">
<div class="content">
<div class="top_nav">
<a href="index" class="active_background">Home</a>
<a href="View/Menu">Menu</a>
<a href="View/Contact">Contact</a>
<a href="View/About">About</a>
</div>
<div class="slideshow-container">
<div class="mySlides">
<img src="View/Images/Chicken.jpg" style="width:100%" height="600px">
</div>
<div class="mySlides">
<img src="View/Images/Hamburger.jpg" style="width:100%" height="600px">
</div>
<div class="mySlides">
<img src="View/Images/Pizza.jpg" style="width:100%" height="600px">
</div>
<div class="mySlides">
<img src="View/Images/kfc.jpg" style="width:100%" height="600px">
</div>
</div>
<div class="Go-Menu">
<a href="View/Menu">LET ME SEE THE MENU</a>
</div>
<div style="text-align:center">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
</div>
</div>
<footer>© Copyright By Hieu Pham</footer>
</body>
<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, 2000);
}
</script>
</html>