-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtouch.html
711 lines (650 loc) · 23.1 KB
/
touch.html
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- all CSS file-->
<!-- font awesome 4.7.0 -->
<link href="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@3b98744fd777283a45803b7ba30b876fdf948736/assets/lib/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" ">
<!-- bootstrap 4 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/lib/bootstrap/4.4.1/css/bootstrap.min.css">
<!-- universal parallax -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/lib/universal-parallax/css/universal-parallax.min.css" >
<!-- animatecss -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/lib/animatecss/3.7.2/animate.css" >
<!-- slick carousel -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/lib/slick/slick.css" >
<!-- slick carousel --
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css" >
<!-- font -->
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,700" rel="stylesheet">
<title>Touch Responsive Sidebar Drawer</title>
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<!-- theme color -->
<meta name="theme-color" content="#0c5ca2" >
<!-- favicon -->
<link rel="icon" type="image/png" href="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@0aad010a75907a60147ad7b719b145f8a6cceec8/assets/img/skwebs-3-88.png" sizes="16x16,32x32,64x64" >
<title>Touch Responsive Sidebar Drawer</title>
<style type="text/css">
*,:after,:before{margin:0;padding:0;box-sizing:border-box;}
body,html{height:100%;width:100%}
body{font-family:'Source Sans Pro',helvetica,arial;font-size:18px;font-weight:300}
h1,h2,h3,h4,h5,h6{font-weight:700;}
.overflowX-hidden{
overflow-x:hidden;
}
#sk-drawer{
position:fixed;
top:0;
bottom:0;
width:300px;
background:#fff; /*rgba(0,0,0,.5);*/
transform:translateX(-300px);
box-shadow:0 0 7px rgba(0,0,0,.3);
}
/* Bootstrap customization*/
.sk-nav{
box-shadow:0 0 5px rgba(0,0,0,0.5);
}
.bg-white{
background:#fff;
}
.sk-nav .navbar-toggler:hover,
.sk-nav .navbar-toggler:focus,
.sk-nav .navbar-toggler:active{
outline:none;
box-shadow:2px 2px 5px rgba(0,0,0,0.2);
}
#overlay{
position:fixed;
top:0;
bottom:0;left:0;right:0;
background:rgba(0,0,0,.5);
display:none;
}
.drawerProfile{
width:100%;
height:125px;
padding:20px;
}
.drawerNav{
width:100%;
padding:5px 10px;
height:100vh;
}
.drawerNav .nav-item{
padding:0 15px;
margin:5px 0;
box-shadow:1px 1px 5px #aaa;/*rgba(0,0,0,.5);*/
ackground:#007BFF;
}
drawerNav .nav-item a{
padding-left:0 !important;
}
.drawerNav .nav-item:hover{
background:#007BFF;
}
.drawerNav .nav-item:active a,
.drawerNav .nav-item:hover a
{
color:#fff ;
}
.drawerNav .nav-item a:after{
position:absolute;
font-family: FontAwesome;
right:5px;
padding:0 15px;
display: inline-block;
content: "\f054";
vertical-align: middle;
}
.drawerNav .nav-item a:before{
position:relative;
left:-15px;
padding:0 15px;
display: inline-block;
vertical-align: middle;
}
.drawerNav .nav-item.home a:before{
font-family: FontAwesome;
content: "\f015";
}
.navbar-brand img{height:45px;}
.bg1{
background-image:url("bg3.jpg");
}
.parallax-section {
-webkit-align-items: center;
align-items: center;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin: 0;
padding: 15px;
position: relative;
width: 100%;
}
.parallax-section .content {
background: rgba(0, 0, 0, .65);
border-radius: 8px;
color: #fff;
margin: 0 auto;
padding: 30px 35px;
text-align: center;
}
.vh-100{height:100vh;}
.wow{visibility:hidden;}
.center-center{display:flex;flex-direction: column;justify-content: center;align-items:center;}
/*
|-----------------------------------------
| footer css (All footer CSS here)
|-----------------------------------------
*/
.copyright {
background:rgba(0,0,0,.2);
color:grey;
}
#more-links a{
margin:5px 10px;
display:inline-block;
color:grey;
text-decoration:none;
transition:.5s;
}
#more-links a:hover{
color:#fff;
transform:translateX(3px);
}
.social{flex-direction:row !important;color:grey;}
.social ul{
margin:0 5px;
padding:0;
display:flex;
}
.social ul li{
list-style:none;
margin:0 5px;
}
.social ul li a{
position:relative;
display:flex;
justify-content:center;
align-items:center;
width:40px;
height:40px;
/*border-radius:50%;*/
text-decoration:none;
font-size:1.25rem;
color:#fff;
transition:all .5s;
}
.social ul li a .fa{
transition:.5s;
}
.social ul li a:hover{
border:1px solid #fff;
border-radius:50%;
}
.social ul li a:hover .fa{
color:#fff;
transform:scale(.85);
}
/* data-aos */
[data-aos] {
visibility: hidden;
}
[data-aos].animated {
visibility: visible;
}
.share{
position:fixed;
background:rgba(255,255,255,.05);
width:40px;
height:40px;
border-radius:50%;
right:25px;
bottom:100px;
box-shadow:0 0 10px rgba(0,0,0,.5),0 0 25px rgba(0,0,0,.05);
color:rgba(0,0,0,.3);
z-index:1200;
}
.bg-contact{
background:rgba(0,0,0,0.99) url("https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@master/img/typing.jpg") no-repeat center center;
background-size:cover;
}
.bg-contact .layer{
background:rgba(0,0,0,0.65);
color:#fff;
}
.bg-contact .layer a{
display:inline-block;
color:#fff;
}
</style>
</head>
<body>
<div class="overflowX-hidden" >
<nav class="py-0 navbar sk-nav fixed-top navbar-expand-m navbar-light bg-white">
<div class="container" >
<a class="pl-2 navbar-brand wow fadeIn" href="#">
<img src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@0aad010a75907a60147ad7b719b145f8a6cceec8/assets/img/skwebs-3-88.png">
</a>
<button class="navbar-toggler" type="button" >
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item active home">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link<!--<i class="fa fa-quote-left fa-pull-right fa-border" aria-hidden="true"></i>--></a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
</li>
</ul>
</div>
</div>
</nav>
<div id="sk-drawer" > </div>
<div id="overlay" ></div>
<div class="overflowX-hidden">
<section class="parallax-section vh-100" >
<div class="content container wow fadeInUp" >
<h1 class="h1 wow fadeInLeft" data-wow-delay=".6s">Welcome to SKWebs. </h1>
<p class="text-justify wow fadeInRight" data-wow-delay=".9s">Here you get some ideas with code and their example based on my creative idea for beginners that can you use in your project. And you also get some selected useful plugin that make your project unique. </p>
<p class="m-0 py-2 bg-primary wow fadeInUp" data-wow-delay=".9s"><a class="text-light d-block " href="https://github.com/skwebs/skwebs.github.io" >Read more...</a></p>
</div>
<div class="parallax" data-parallax-image="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@master/img/bg4.jpg"></div>
</section>
<div class="container px-4 px-md-5 py-5" >
<h1 class="h1 p-2 wow fadeInUp" >About this project.</h1>
<p class="text-justify wow fadeInUp" > I always want to create something new, unique and creative web app that has following features and I tried to achieve it in this project.</p>
<br>
<p class="h2 wow fadeInUp" >Features:</p><br>
<h4 class="h4 wow fadeInLeft" > 1. Touch responsive sidebar.</h4>
<p class="wow fadeInUp text-justify" data-wow-delay=".3s">
I tried to make touch responsive sidebar that allows to
open & close sidebar drawer with your finger moving direction as like android
application sidebar drawer.
<br>
You can open sidebar by swiping finger
from the end of left side. Sidebar will be
open or, close with your finger moving
direction.
</p>
<br>
<br>
</div>
<section class="parallax-section py-5" >
<div class="content container wow fadeInUp my-5" >
<h1 class="h1 wow fadeInUp" data-wow-delay=".9s">Used Plugins. </h1><hr class="mt-0 wow fadeInRight bg-white delay-2s" >
<div class="plugins text-left pl-5 wow fadeInUp" data-wow-delay=".9s">
1. jQuery<a href="#" > Link</a><br>
2. Bootstrap 4<a href="#" > Link</a><br>
3. Animate.css<a href="#" > Link</a><br>
4. wow.js<a href="#" > Link</a> or,<br>     AOS</a><a href="#" > Link</a><br>
5. universal-parallax<a href="#" > Link</a><br>
6. Wave<a href="#" > Link.js</a><br>
</div>
</div>
<div class="parallax" data-parallax-image="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@master/img/typing.jpg"></div>
</section>
<div style='background-image:url("https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@0aad010a75907a60147ad7b719b145f8a6cceec8/assets/img/paper.jpg"); font-weight:bold' class="py-5 px-4" >
<h1 class="mt-5 h3 border border-primary rounded text-primary text-center p-3 wow fadeInUp" >About Us</h1>
<p class="text-primary p-3 text-justify wow fadeInUp" >
<i>Hi, I am Satish. I have knowledge and experience of front-end language
as like <b>html, CSS, JavaScript</b> and back-end script <b>php, MySQL</b> with <b>Object
Oriented Programme (OPP)</b> Concept and also have knowledge of frameworks as like <b>Bootstrap, jQuery</b> and another useful
<b>PHP Libraries</b>. I like to create something new and I always curious about learn and use new things.<br><br>
</i>
</p>
</div>
<div class="bg-contact" >
<div class="layer p-5" >
<p class="p-2 mb-4 border h3 text-center wow fadeInUp" >Connect with Us</p>
<a class="wow fadeInLeft" href="mailto:skwebservises@gmail.com" ><i class="fa fa-envelope " ></i> : skwebservises@gmail.com</a><br>
<a class="wow fadeInRight" href="https://facebook.com/skwebservices" ><i class="fa fa-facebook-square " ></i> : https://fb.com/skwebservices</a>
</div>
</div>
<i class="share center-center fa fa-share-alt fa-2x" ></i>
<!--slick carrousel slider-->
<style type="text/css">
.vendors{
background-image:url("https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@0aad010a75907a60147ad7b719b145f8a6cceec8/assets/img/paper2.jpg");
}
.vendors .slider{
width:100%;
}
/* the slides */
.slick-slide {
margin:0 1px;
}
/* the parent */
.slick-list {
margin: 0 -2px;
}
.vendors .slider .item{
height:70px;
}
.vendors .slider .item img{
height:100%;
width:100%;
}
.slick-dots {
display: -webkit-box;
display: flex;
-webkit-box-pack: center;
justify-content: center;
margin: 0;
padding: .5rem 0;
list-style-type: none;
}
.slick-dots li {
margin: 0 0.25rem;
}
.slick-dots button {
display: block;
width: 1rem;
height: 1rem;
padding: 0;
border: none;
border-radius: 100%;
background-color: #bbb;
text-indent: -9999px;
}
.slick-dots li.slick-active button {
background-color: purple;
}
/*
.slick-dots{
position:absolute;
height:5px;
background:rgba(255,255,255,.20);
bottom:0px;
width:100%;
left:0px;
padding:0px;
margin:0px;
list-style-type:none;
}
.slick-dots li button{display:none;}
.slick-dots li{
float:left;
width:0px;
height:5px;
background:purple;
position:absolute;
left:0px;
bottom:0px;
}
.slick-dots li.slick-active{
width:100%;
animation:ProgressDots 2s both;
}
@-webkit-keyframes ProgressDots{from{width:0px;}to{width:100%;}}
@keyframes ProgressDots{from{width:0px;}to{width:100%;}}
*/
</style>
<div class="vendors p-3 pb-0" >
<h4 class=" text-primary" >We use:</h4>
<div class="slider" >
<div class="item" ><img src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/img/jquery.jpg"></div>
<div class="item" ><img src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/img/bootstrap.jpg"></div>
<div class="item" ><img src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/img/fontAwesome.jpg"></div>
<div class="item" ><img src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/img/animatecss.jpg"></div>
<div class="item" ><img src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/img/wowjs.jpg"></div>
<div class="item" ><img src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/img/slick.jpg"></div>
<div class="item" ><img src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/img/aos.jpg"></div>
<div class="item" ><img src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@0aad010a75907a60147ad7b719b145f8a6cceec8/assets/img/waves.jpg"></div>
<div class="item" ><img src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@0aad010a75907a60147ad7b719b145f8a6cceec8/assets/img/universalParallax.jpg"></div>
</div>
</div>
<footer class="footer bg-dark" >
<div class="py-1 bg-primary" >
<div class="container text-light social center-center" >
<ul class="d-none d-md-flex" > <li>Follow us on : </li></ul>
<ul>
<li class="fb wow fadeInLeftBig" data-wow-delay=".3s" ><a href="https://fb.com/skwebsofficial/" ><i class="fa fa-facebook" ></i></a></li>
<li class="tw wow fadeInLeftBig" data-wow-delay="0" ><a href="https://twitter.com/SatishKmrSharma/" ><i class="fa fa-twitter" ></i></a></li>
<li class="ig wow fadeInRightBig" data-wow-delay="0" ><a href="https://instagram.com/satishkmrsharma/" ><i class="fa fa-instagram" ></i></a></li>
<li class="yt wow fadeInRightBig" data-wow-delay="0.3s" ><a href="#!" ><i class="fa fa-youtube" ></i></a></li>
</ul>
</div>
</div>
<hr class="m-0 bg-half-black" >
<div id="more-links" class="container py-4" >
<a class="wow fadeInRightBig" data-wow-delay=".3s" data-wow-offset="0" href="mailto:skwebservices@gmail.com" >Email</a>
<a class="wow fadeInRightBig" data-wow-delay=".6s" data-wow-offset="0" href="https://facebook.com/satishkumarsharma05">Facebook</a>
<a class="wow fadeInRightBig" data-wow-delay=".9s" data-wow-offset="0" href="https://m.me/sks555sks" >Messenger</a>
</div>
<div class="copyright my-auto py-4 text-center " >
©<script>//
document.write(new Date().getFullYear())</script> <a class="text-lightgrey mr-md-5" href="./" ><b>SKWebs.GitHub.io</b>.</a><span class="d-none d-md-inline" >All Right Reserved.</span>
<!--<hr class="d-md-none bg-half-black" >
Designed & Developed by <strong><a href="https://skwebs.github.io" data-aos="pulse infinite" data-aos-offset="0" class="d-inline-block border border-primary rounded px-1" >S.K.Webs</a></strong> <!--<a href="https://facebook.com/skwebsofficial" class="nowrap border border-primary rounded px-1 d-inline-block" >S.K.Sharma <i class="fa fa-facebook-square" ></i></a>
-->
</div>
</footer>
</div>
<!-- JavaScript libraries -->
<!-- jQuery -->
<script src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/lib/jquery/3.4.1/jquery.min.js" ></script>
<!-- bootstrap js-->
<script src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/lib/bootstrap/4.4.1/js/bootstrap.bundle.min.js" ></script>
<!-- waypoints -->
<script src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/lib/waypoint/4.0.0/jquery.waypoints.min.js" ></script>
<!-- universal parallax -->
<script src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/lib/universal-parallax/js/universal-parallax.min.js" ></script>
<!-- wowjs -->
<script src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/lib/wow/1.1.2/wow.min.js" ></script>
<!-- slick js -->
<script src="https://cdn.jsdelivr.net/gh/skwebs/skwebs.github.io@6cc364c9d0336d720cead5e42f7bc4d4fc79dce9/assets/lib/slick/slick.min.js" ></script>
<script type="text/javascript">
//variables declaration
function elem(e){return document.querySelector(e);}
var touchSurface = elem("body");
var drawer = elem("#sk-drawer");
var drawerWidth = drawer.offsetWidth;
var startX = "";
var change = "";
var drawerOpened = false;
var minTouchLeft =30;
var navbarToggler = elem(".navbar-toggler");
var overlay = elem("#overlay");
//CSS related variables
const __SETTING = {
dTrans : "transform 500ms ",
oTrans : "all 1s ease-in 500ms",
navExpandClass : "md",
dIndex : 1033 //1029 for under nav or, 1032 for above nav (don't use 1030/1031)
};
//drawer opening time
function handleStart(e){
if(!drawerOpened){
startX = e.changedTouches[0].clientX;
if(startX<minTouchLeft){
overlay.style.opacity=0;
overlay.style.display="block";
drawer.style.transition="none";
overlay.style.transition="none";
}
}
}
function handleMove(e){
if(!drawerOpened){
if(startX<minTouchLeft){
change = e.changedTouches[0].clientX - startX;
if((change-drawerWidth) < 0){
drawer.style.transform="translateX("+(change-drawerWidth)+"px)";
overlay.style.opacity=change/drawerWidth;
}
}
}
}
function handleEnd(e){
if(!drawerOpened){
if(startX<minTouchLeft){
if(change<(drawerWidth/3)){
drawerClose();
}else{
drawerOpen();
}
}
}
}
// drawer closing time
function drawerHandlerStart(e){
overlay.style.display="block";
drawer.style.transition="none";
overlay.style.transition="none";
if(drawerOpened){
startX = e.changedTouches[0].clientX;
}
}
function drawerHandlerMove(e){
if(drawerOpened){
change = e.changedTouches[0].clientX - startX;
if(change<0){
drawer.style.transform="translateX("+change+"px)";
overlay.style.opacity=(drawerWidth+change)/drawerWidth;
}
}
}
function drawerHandlerEnd(e){
if(drawerOpened){
if(change<0){
if(change<(0-drawerWidth/3)){
drawerClose();
}else{
drawerOpen();
}
}
}
}
function handleCancel(e){}
function drawerOpen(){
overlay.style.display="block";
drawer.style.transform="translateX(0px)";
drawer.style.transition=__SETTING.dTrans;
overlay.style.transition=__SETTING.oTrans;
drawerOpened = true;
}
function drawerClose(){
overlay.style.display="none";
drawer.style.transform="translateX(-"+drawerWidth+"px)";
drawer.style.transition=__SETTING.dTrans;
overlay.style.transition=__SETTING.oTrans;
drawerOpened = false;
}
function drawerToggle(){
if(drawerOpened){
drawerClose();
}else{
drawerOpen();
}
}
document.addEventListener("DOMContentLoaded", ()=>{
touchSurface.addEventListener("touchstart", handleStart, false);
touchSurface.addEventListener("touchend", handleEnd, false);
touchSurface.addEventListener("touchmove", handleMove, false);
//for drawer
drawer.addEventListener("touchstart",drawerHandlerStart,false);
drawer.addEventListener("touchmove",drawerHandlerMove,false);
drawer.addEventListener("touchend",drawerHandlerEnd,false);
new universalParallax().init({
speed: 4
});
wow = new WOW(
{
boxClass: 'wow', // default
animateClass: 'animated', // default
offset: 120, // default
mobile: true, // default
live: true // default
}
)
wow.init();
});
overlay.addEventListener("click",()=>{drawerClose();})
navbarToggler.addEventListener("click",()=>{drawerToggle();})
//jquery code here
$(()=>{
$(".sk-nav").addClass("navbar-expand-"+__SETTING.navExpandClass)
$('<div class="drawerProfile bg-primary text-light" ></div><div class="drawerNav" ></div>').appendTo("#sk-drawer");
$('<p class="p-2" >Satish Kumar Sharma<br>Email : XXXXXXX@gmail.com<br>Contact : 9XXXXXXXX0</p>').appendTo(".drawerProfile")
$('.navbar-nav').clone().appendTo('.drawerNav');
$("#sk-drawer").addClass("d-"+__SETTING.navExpandClass+"-none");
$("#overlay").addClass("d-"+__SETTING.navExpandClass+"-none");
$("#sk-drawer").css("z-index",__SETTING.dIndex);
$("#overlay").css("z-index",(__SETTING.dIndex-1));
})
$(()=>{
$(".vendors .slider").slick({
autoplay:true,
autoplaySpeed:2000,
speed:300,
slidesToShow:1,
slidesToScroll:1,
pauseOnHover:false,
dots:true,
pauseOnDotsHover:false,
cssEase:'linear',
// prevArrow: false,nextArrow: false,
arrows:false,
responsive: [
{
breakpoint: 1400,
settings: {
slidesToShow: 7
}
},
{
breakpoint: 1200,
settings: {
slidesToShopw: 6
}
},
{
breakpoint: 1000,
settings: {
slidesToShow: 7
}
},
{
breakpoint: 800,
settings: {
slidesToShow: 4
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 3
}
},
{
breakpoint: 400,
settings: {
slidesToShow: 3
}
},
{
breakpoint: 200,
settings: {
slidesToShow: 1
}
}
]
});
});
</script>
</body>
</html>