-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJquery-code.js
More file actions
44 lines (39 loc) · 778 Bytes
/
Jquery-code.js
File metadata and controls
44 lines (39 loc) · 778 Bytes
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
var isMobile = false;
$(document).ready(function () {
if ($('body').width() <= 768) {
isMobile = true;
}
if (isMobile) {
}
if (!isMobile) {
}
$('#slider-container').owlCarousel({
loop: true,
margin: 10,
nav: true,
items: 3,
autoplayHoverPause: true,
dots: false,
autoplay: true,
autoplayTimeout: 3000,
navText: ["<img src=\"images/prev.png\">", "<img src=\"images/prev.png\">"],
center: true,
responsive: {
0: {
items: 1
},
700: {
items: 3
},
992: {
items: 3
}
}
});
var head = document.head;
var link = document.createElement('link');
link.type = 'text/css';
link.rel = 'stylesheet';
link.href = '{{ css_file }}';
head.appendChild(link);
});