-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflight.js
31 lines (23 loc) · 808 Bytes
/
flight.js
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
let north_goa = document.getElementById("gotonorthgoa").addEventListener("click",()=>{
window.location.href = "flights.voyage.html"
})
// owl-carousal------------------------------------------------------------------------
let count = 0;
document.querySelector("#ltexarroww").onclick = () => {
console.log("clicked");
if (count == 0) {
return;
}
count--;
let val = count * 100;
document.querySelector("#explore_containerr").style.transform = `translateX(-${val}px)`;
};
document.querySelector("#rtexarroww").onclick = () => {
if (count > 4) {
return;
}
count++;
let val = count * 100;
document.querySelector("#explore_containerr").style.transform = `translateX(-${val}px)`;
};
//////////////////////////////////////////////////////////////////////////////////////////