-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
92 lines (87 loc) · 3.94 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
<?php include 'header.php' ?>
<div class="row">
<img src="static/images/1.jpg" alt="slider-image" class="c-12" id="slider-img"/>
</div>
<div class="row">
<div class="c-8 container">
<h1>Deals of the Day..!!</h1>
<div class="content">
<div class="row">
<img class="c-2" src="static/images/deal1.jpeg"/>
<img class="c-2" src="static/images/deal2.jpeg"/>
<img class="c-2" src="static/images/deal3.jpeg"/>
<img class="c-2" src="static/images/deal4.jpeg"/>
<img class="c-2" src="static/images/deal5.jpeg"/>
<img class="c-2" src="static/images/deal6.jpeg"/>
<p class="c-2">Deal 1</p>
<p class="c-2">Deal 2</p>
<p class="c-2">Deal 3</p>
<p class="c-2">Deal 4</p>
<p class="c-2">Deal 5</p>
<p class="c-2">Deal 6</p>
</div>
</div>
</div>
</div>
<hr class="line-break"/>
<hr class="line-break1"/>
<div class="row">
<div class="c-8 container">
<h1>Deals of the Day..!!</h1>
<div class="content">
<div class="row">
<img class="c-2" src="static/images/deal1.jpeg"/>
<img class="c-2" src="static/images/deal2.jpeg"/>
<img class="c-2" src="static/images/deal3.jpeg"/>
<img class="c-2" src="static/images/deal4.jpeg"/>
<img class="c-2" src="static/images/deal5.jpeg"/>
<img class="c-2" src="static/images/deal6.jpeg"/>
<p class="c-2">Deal 1</p>
<p class="c-2">Deal 2</p>
<p class="c-2">Deal 3</p>
<p class="c-2">Deal 4</p>
<p class="c-2">Deal 5</p>
<p class="c-2">Deal 6</p>
</div>
</div>
</div>
</div>
<hr class="line-break"/>
<hr class="line-break1"/>
<div class="row">
<div class="c-12" id="nav-to-top">
<a href="#top"><h4>Back to Top</h4></a>
</div>
</div>
<div class="sidebar">
<div class="img-contain"><img src="static/images/deal1.jpeg"/></div>
<div class="img-contain"><img src="static/images/deal2.jpeg"/></div>
<div class="img-contain"><img src="static/images/deal3.jpeg"/></div>
<div class="img-contain"><img src="static/images/deal4.jpeg"/></div>
<div class="img-contain"><img src="static/images/deal5.jpeg"/></div>
<div class="img-contain"><img src="static/images/deal6.jpeg"/></div>
</div>
<script language="javascript">
var pictures = ["static/images/1.jpg", "static/images/2.jpg", "static/images/3.jpg", "static/images/4.jpg", "static/images/5.jpg"];
var len = pictures.length;
var i = 0;
document.getElementById("slider-img").src = pictures[i];
setInterval(slider, 5000);
//fade-in function
function fadeIn(obj){
obj.style.opacity = 0;
function tick(){
obj.style.opacity = +obj.style.opacity + 0.02;
if(+obj.style.opacity < 1)
setTimeout(tick, 25);
}
tick();
}
//slider function
function slider(){
i = (i+1) % len;
document.getElementById("slider-img").src = pictures[i];
fadeIn(document.getElementById("slider-img"));
}
</script>
<?php include 'footer.php' ?>