-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
67 lines (58 loc) · 1.75 KB
/
script.js
File metadata and controls
67 lines (58 loc) · 1.75 KB
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
// navbar togglemenu start
var navLinks = document.getElementById("navLinks");
function showMenu() {
navLinks.style.right = "0";
}
function hideMenu() {
navLinks.style.right = "-200px";
}
// navbar togglemenu end
// question dropdown
const faqs = document.querySelectorAll(".faq");
faqs.forEach(faq => {
faq.addEventListener("click", () => {
faq.classList.toggle("active");
})
})
function initParadoxWay() {
"use strict";
if ($(".testimonials-carousel").length > 0) {
var j2 = new Swiper(".testimonials-carousel .swiper-container", {
preloadImages: false,
slidesPerView: 1,
spaceBetween: 20,
loop: true,
grabCursor: true,
mousewheel: false,
centeredSlides: true,
pagination: {
el: '.tc-pagination',
clickable: true,
dynamicBullets: true,
},
// navigation: {
// nextEl: '.listing-carousel-button-next',
// prevEl: '.listing-carousel-button-prev',
// },
breakpoints: {
1024: {
slidesPerView: 2.5,
},
}
});
}
setInterval(function () {
var size = randomValue(sArray);
$('.bubbles').append('<div class="individual-bubble" style="left: ' + randomValue(bArray) + 'px; width: ' + size + 'px; height:' + size + 'px;"></div>');
$('.individual-bubble').animate({
'bottom': '100%',
'opacity': '-=0.7'
}, 4000, function () {
$(this).remove()
});
}, 350);
}
// Init All ------------------
$(document).ready(function () {
initParadoxWay();
});