-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathour-work.php
345 lines (327 loc) · 17.7 KB
/
our-work.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!-- Header -->
<?php $title = "Our Work";
include 'include/header.php'; ?>
<main id="bg_div">
<div class="swiper-container">
<div class="slider swiper-wrapper">
<!-- ourworkBanner -->
<div class="swiper-slide">
<section class="ourworkBanner innerBanner banner-bg slide-inner">
<div class="container">
<div class="row">
<div class="col-12">
<div class="ourworkBanner-title innerBanner-title text-center">
<h2 class="color-white">Our Work</h2>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- ourWork -->
<div class="swiper-slide swiper-services">
<section class="ourWork mar-y slide-inner">
<div class="container reveal">
<div class="ourWork-title section-content text-center">
<h4>Expertly Installed,
Flawlessly Mounted
</h4>
</div>
<div class="row">
<div class="col-6 col-lg-6 pr-4">
<div class="ourWork-card">
<div class="ourWork-cardImg courses-card__img">
<img src="images/ourWork-cardImg.png" alt="image" class="imgFluid object-fit">
<a href="videos/dummy-video.mp4" class="playBtn" data-fancybox="Logo">
<i class='bx bx-play'></i>
</a>
</div>
<div class="ourWork-cardContent section-content">
<h5 class="mb-3">Title Goes Here</h5>
<p class="m-0">Lorem Ipsum is simply dummy text of the printing and industry's
standard
dummy
text ever since the </p>
</div>
</div>
</div>
<div class="col-6 col-lg-6">
<div class="ourwork-Content section-content">
<h5>Unbeatable Quality In TV Mounting</h5>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has
been
the industry's standard dummy text ever since the 1500s, when an unknown
printer.
</p>
<h5>Elevate Your Viewing Experience</h5>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has
been
the industry's standard dummy text ever since the 1500s, when an unknown
printer.
</p>
<h5>Innovative TV Mounting Solutions</h5>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has
been
the industry's standard dummy text ever since the 1500s, when an unknown
printer.
</p>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- makingTv -->
<div class="swiper-slide">
<section class="makingTv mar-y slide-inner">
<div class="container reveal">
<div class="ourWork-title section-content text-center">
<h4>Making Your TV The Centerpiece</h4>
<p class="my-2">
Lorem Ipsum is simply dummy text of the printing and typesetting <br> industry. Lorem
Ipsum has been
the
industry's standard dummy <br> text ever since the 1500s.
</p>
</div>
<div class="row no-gutters">
<div class="col-6 col-lg-4">
<div class="makingTv-card card-hover">
<div class="makingTv-cardImg card-hoverImg">
<img src="images/makingTv-cardImg1.png" alt="image" class="imgFluid object-fit">
<div class="makingTv-cardContent section-content text-center">
<h5 class="color-white mb-0">Your Title Goes Here</h5>
<p class="color-white mb-0">Lorem Ipsum is simply dummy</p>
</div>
</div>
</div>
</div>
<div class="col-6 col-lg-4">
<div class="makingTv-card card-hover">
<div class="makingTv-cardImg card-hoverImg">
<img src="images/makingTv-cardImg2.png" alt="image" class="imgFluid object-fit">
<div class="makingTv-cardContent section-content text-center">
<h5 class="color-white mb-0">Your Title Goes Here</h5>
<p class="color-white mb-0">Lorem Ipsum is simply dummy</p>
</div>
</div>
</div>
</div>
<div class="col-6 col-lg-4">
<div class="makingTv-card card-hover">
<div class="makingTv-cardImg card-hoverImg">
<img src="images/makingTv-cardImg3.png" alt="image" class="imgFluid object-fit">
<div class="makingTv-cardContent section-content text-center">
<h5 class="color-white mb-0">Your Title Goes Here</h5>
<p class="color-white mb-0">Lorem Ipsum is simply dummy</p>
</div>
</div>
</div>
</div>
<div class="col-6 col-lg-4">
<div class="makingTv-card card-hover">
<div class="makingTv-cardImg card-hoverImg">
<img src="images/makingTv-cardImg4.png" alt="image" class="imgFluid object-fit">
<div class="makingTv-cardContent section-content text-center">
<h5 class="color-white mb-0">Your Title Goes Here</h5>
<p class="color-white mb-0">Lorem Ipsum is simply dummy</p>
</div>
</div>
</div>
</div>
<div class="col-6 col-lg-4">
<div class="makingTv-card card-hover">
<div class="makingTv-cardImg card-hoverImg">
<img src="images/makingTv-cardImg5.png" alt="image" class="imgFluid object-fit">
<div class="makingTv-cardContent section-content text-center">
<h5 class="color-white mb-0">Your Title Goes Here</h5>
<p class="color-white mb-0">Lorem Ipsum is simply dummy</p>
</div>
</div>
</div>
</div>
<div class="col-6 col-lg-4">
<div class="makingTv-card card-hover">
<div class="makingTv-cardImg card-hoverImg">
<img src="images/makingTv-cardImg6.png" alt="image" class="imgFluid object-fit">
<div class="makingTv-cardContent section-content text-center">
<h5 class="color-white mb-0">Your Title Goes Here</h5>
<p class="color-white mb-0">Lorem Ipsum is simply dummy</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- footer -->
<div class="swiper-slide swiper-footer">
<div class="slide-inner d-block" id="output">
<section class="partner-loo mar-y reveal">
<div class="container">
<div class="partnerLogo-img">
<ul class="d-flex align-items-center justify-content-center partnerSlider">
<li><img src="images/partnerLogo-img1.PNG" alt="image" class="imgFluid object-fit">
</li>
<li><img src="images/partnerLogo-img2.PNG" alt="image" class="imgFluid object-fit">
</li>
<li><img src="images/partnerLogo-img3.PNG" alt="image" class="imgFluid object-fit">
</li>
<li><img src="images/partnerLogo-img2.PNG" alt="image" class="imgFluid object-fit">
</li>
</ul>
</div>
</div>
</section>
<footer class="footer banner-bg">
<div class="container">
<div class="row">
<div class="col-12">
<div class="footer-logo">
<a href="index.php" class="color-white">TvMountInstalls</a>
</div>
<div class="footer-main section-content">
<p class="color-white">Lorem Ipsum is simply dummy text of the printing and
typesetting <br>
industry.
Lorem Ipsum has been the industry's.
</p>
<ul class="footer-main__nav header-main__nav">
<li><a href="index.php"
class="<?= (basename($_SERVER['PHP_SELF']) == 'index.php') ? 'active' : '' ?>">Home</a>
</li>
<li><a href="our-services.php"
class="<?= (basename($_SERVER['PHP_SELF']) == 'our-services.php') ? 'active' : '' ?>">Our
Services</a>
</li>
<li><a href="our-work.php"
class="<?= (basename($_SERVER['PHP_SELF']) == 'our-work.php') ? 'active' : '' ?>">Our
Work</a>
</li>
<li><a href="our-reviews.php"
class="<?= (basename($_SERVER['PHP_SELF']) == 'our-reviews.php') ? 'active' : '' ?>">Our
Reviews</a>
</li>
<li><a href="contact-us.php"
class="<?= (basename($_SERVER['PHP_SELF']) == 'contact-us.php') ? 'active' : '' ?>">Contact
Us</a>
</li>
</ul>
<ul class="footer-info contactInfo d-flex align-items-centermt-4">
<li><a href="tel:877-221-7051" class="color-white"><span><i
class="fa-solid fa-phone"></i></span>877-221-7051</a>
</li>
<li><a href="mailto:[email protected]" class="color-white"><span><i
class="fa-solid fa-envelope"></i></span>[email protected]</a>
</li>
<li><a href="javascirpt:void(0)" class="color-white"><span><i
class="fa-solid fa-location-dot"></i></span>your
location here</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="footerCopy-right">
<div class="footerCopy-rightContent">
<p class="color-white m-0">© <span id="year"></span>
<a href="index.php" class="color-white">TVMountInstalls.com</a> All Right Reserved
</p>
</div>
</div>
</footer>
</div>
</div>
</div>
</div>
</main>
<script>
let touchArea = document.getElementById("bg_div");
let output = document.getElementById("output");
//Initial mouse X and Y positions are 0
let mouseX,
initialX = 0;
let mouseY,
initialY = 0;
let isSwiped;
//Events for touch and mouse
let events = {
mouse: {
down: "mousedown",
move: "mousemove",
up: "mouseup",
},
touch: {
down: "touchstart",
move: "touchmove",
up: "touchend",
},
};
let deviceType = "";
//Detect touch device
const isTouchDevice = () => {
try {
//We try to create TouchEvent (it would fail for desktops and throw error)
document.createEvent("TouchEvent");
deviceType = "touch";
return true;
} catch (e) {
deviceType = "mouse";
return false;
}
};
//Get left and top of touchArea
let rectLeft = touchArea.getBoundingClientRect().left;
let rectTop = touchArea.getBoundingClientRect().top;
//Get Exact X and Y position of mouse/touch
const getXY = (e) => {
mouseX = (!isTouchDevice() ? e.pageX : e.touches[0].pageX) - rectLeft;
mouseY = (!isTouchDevice() ? e.pageY : e.touches[0].pageY) - rectTop;
};
isTouchDevice();
//Start Swipe
touchArea.addEventListener(events[deviceType].down, (event) => {
isSwiped = true;
//Get X and Y Position
getXY(event);
initialX = mouseX;
initialY = mouseY;
});
//Mousemove / touchmove
touchArea.addEventListener(events[deviceType].move, (event) => {
if (!isTouchDevice()) {
event.preventDefault();
}
if (isSwiped) {
getXY(event);
let diffX = mouseX - initialX;
let diffY = mouseY - initialY;
if (Math.abs(diffY) > Math.abs(diffX)) {
output.innerText = diffY > 0 ? "Down" : "Up";
} else {
output.innerText = diffX > 0 ? location.href = 'our-services.php' : location.href =
'our-reviews.php';
}
}
});
//Stop Drawing
touchArea.addEventListener(events[deviceType].up, () => {
isSwiped = false;
});
touchArea.addEventListener("mouseleave", () => {
isSwiped = false;
});
window.onload = () => {
isSwiped = false;
};
</script>
<!-- Footer -->
<?php $footerMain = "footerMain footer--none";
include 'include/footer.php'; ?>