-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathour-services.php
320 lines (297 loc) · 15.8 KB
/
our-services.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
<!-- Header -->
<?php $title = "Our Services";
include 'include/header.php'; ?>
<main id="bg_div">
<div class="swiper-container">
<div class="slider swiper-wrapper">
<!-- servicesBanner -->
<div class="swiper-slide">
<section class="servicesBanner innerBanner banner-bg slide-inner">
<div class="container">
<div class="row">
<div class="col-12">
<div class="servicesBanner-title innerBanner-title text-center">
<h2 class="color-white">Our Services</h2>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- servicesDetials -->
<div class="swiper-slide">
<section class="servicesDetials slide-inner">
<div class="container-fluid reveal">
<div class="row align-items-center">
<div class="col-12 col-lg-6 offset-lg-2">
<div class="section-content">
<h4>Book A Service Today</h4>
<p>
Lorem Ipsum is simply dummy text of the printing and <br> industry's standard
dummy text
ever since
the 1500s, when <br> an unknown printer took a galley of type and scrambled it
<br> to make
a type
specimen book. It has survived <br> not only five centuries.
</p>
<a href="javascirpt:void(0)" class="themeBtn">Schedule Now <span><i
class="fa-solid fa-arrow-right"></i></span></a>
</div>
</div>
<div class="col-12 col-lg-4 pr-0">
<div class="services-screen">
<img src="images/Services-screen.png" alt="image" class="imgFluid object-fit">
</div>
</div>
</div>
</div>
</section>
</div>
<!-- services -->
<div class="swiper-slide swiper-services">
<section class="services mar-y tv reveal slide-inner">
<div class="container">
<div class="serviceTitle section-content text-center">
<h6 class="color-primary">our services</h6>
<h4>Your Title Goes Here</h4>
<p>Lorem Ipsum is simply dummy text of the printing and industry's standard <br>
dummy text ever since the 1500s, when an unknown pris.</p>
</div>
<div class="row align-items-center">
<div class="col-12 col-lg-4">
<div class="serviceCard-mbl">
<div class="servicesCard num-1">
<div class="servicesCard-content text-right section-content">
<h5>Title Goes Here</h5>
<p>Lorem Ipsum is simply dummy text of <br> the printing and industry's
standard
<br>
dummy
text
ever
since the </p>
<a href="book-a-service.php" class="themeBtn d-inline-block">Book A Service
<span><i class="fa-solid fa-arrow-right"></i></span></a>
</div>
</div>
<div class="servicesCard num-1 num-4">
<div class="servicesCard-content text-right section-content">
<h5>Title Goes Here</h5>
<p>Lorem Ipsum is simply dummy text of <br> the printing and industry's
standard
<br>
dummy
text
ever
since the </p>
<a href="book-a-service.php" class="themeBtn d-inline-block">Book A Service
<span><i class="fa-solid fa-arrow-right"></i></span></a>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-4">
<div class="services-img">
<img src="images/services-img.png" alt="image" class="imgFluid object-fit">
</div>
</div>
<div class="col-12 col-lg-4">
<div class="serviceCard-mbl">
<div class="servicesCard servicesCard-respon num-1 num-2">
<div class="servicesCard-content section-content">
<h5>Title Goes Here</h5>
<p>Lorem Ipsum is simply dummy text of <br> the printing and industry's
standard
<br>
dummy
text
ever
since the </p>
<a href="book-a-service.php" class="themeBtn">Book A Service <span><i
class="fa-solid fa-arrow-right"></i></span></a>
</div>
</div>
<div class="servicesCard num-1 num-2 num-5">
<div class="servicesCard-content section-content">
<h5>Title Goes Here</h5>
<p>Lorem Ipsum is simply dummy text of <br> the printing and industry's
standard
<br>
dummy
text
ever
since the </p>
<a href="book-a-service.php" class="themeBtn">Book A Service <span><i
class="fa-solid fa-arrow-right"></i></span></a>
</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 = 'index.php' : location.href = 'our-work.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'; ?>