-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
119 lines (112 loc) · 4.77 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
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
<?php
require("includes/connection.php");
if (isset($_SESSION['email'])) {
header('location: products.php');
}
?>
<!doctype HTML>
<html>
<head>
<title>Home | PetsWorld</title>
<link rel = "icon" href ="https://www.petsworld.in/pub/media/favicon/stores/1/pets.png"
type = "image/x-icon">
<script src="https://kit.fontawesome.com/f4bbad3365.js" crossorigin="anonymous"></script>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="css/style.css">
<style>
body {
background-image: url(img/b3.jpg);
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}
</style>
</head>
<body style="padding-top: 50px;">
<?php
include 'includes/header.php';
?>
<!--------Slide------------------------------------------------------------------------------------>
<div id="c1">
<div id="c2">
<a href=products.php><img class="mySlides" src="img/1.jpg" style="width:100%"></a>
<a href=products.php><img class="mySlides" src="img/2.jpg" style="width:100%"></a>
<a href=products.php><img class="mySlides" src="img/3.png" style="width:100%"></a>
<a href=products.php><img class="mySlides" src="img/4.jpg" style="width:100%"></a>
</div>
</div>
<!-----------Category----------------------------------------------------------------------------------->
<div class="container-fluid" style="padding-bottom: 30px;">
<div class="row text-center" id="item_list">
<div class="col-sm-3">
<a href="products.php#cat" >
<div class="thumbnail">
<img src="img/c.jfif" alt="" style="height: 200px;width: 100%">
<div class="caption">
<h3 id="cap">CATS</h3>
</div>
</div>
</a>
</div>
<div class="col-sm-3">
<a href="products.php#fish" >
<div class="thumbnail">
<img src="img/f.jfif" alt="" style="height: 200px;width: 100%">
<div class="caption">
<h3 id="cap">FISHS</h3>
</div>
</div>
</a>
</div>
<div class="col-sm-3">
<a href="products.php#bird" >
<div class="thumbnail">
<img src="img/w.jpg" alt="" style="height: 200px;width: 100%">
<div class="caption">
<h3 id="cap">BIRDS</h3>
</div>
</div>
</a>
</div>
<div class="col-sm-3">
<a href="products.php#dog" >
<div class="thumbnail">
<img src="img/d.jfif" alt="" style="height: 200px;width: 100%">
<div class="caption">
<h3 id="cap">DOGS</h3>
</div>
</div>
</a>
</div>
</div>
</div>
<!--Footer---------------------------------------------------------------->
<?php
include 'includes/footer.php';
?>
<!-----------SCRIPT------------------------------------------------------------------------------------------->
<script>
var slideIndex = 0;
carousel();
function carousel() {
var i;
var x = document.getElementsByClassName("mySlides");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
slideIndex++;
if (slideIndex > x.length)
{ slideIndex = 1
}
x[slideIndex-1].style.display = "block";
setTimeout(carousel, 4000);
}
</script>
</body>
</html>