Repository navigation
Expand file tree
/
Copy pathscript.js
More file actions
63 lines (62 loc) · 1.86 KB
/
Copy pathscript.js
File metadata and controls
63 lines (62 loc) · 1.86 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
const init = function() {
// booknew btn :
document.addEventListener("DOMContentLoaded", () => {
document.getElementById("booknew").addEventListener("click", () => {
booknew();
});
});
// viewrooms btn :
document.addEventListener("DOMContentLoaded", () => {
document.getElementById("viewrooms").addEventListener("click", () => {
viewrooms();
});
});
// booknewsetbar btn :
document.addEventListener("DOMContentLoaded", () => {
document.getElementById("booknewsetbar").addEventListener("click", () => {
booknewsetbar();
});
});
// checkavailability btn :
const checkavailability = document.getElementById("checkavailability");
checkavailability.addEventListener("click", () => {
checkavailability()
});
//page2 :
// booknewrooms btn :
const booknewrooms = document.querySelectorAll('.booknewrooms');
checkavailability.addEventListener("click", () => {
booknewrooms()
});
// booknewsetbar1 btn
const booknewsetbar1 = document.getElementById("checkavailability");
booknewsetbar1.addEventListener("click", () => {
booknewsetbar1()
});
}
init();
// fnt booknew btn :
const booknew = () => {
window.location.href = "contact_us.html";
}
// fnt viewrooms btn :
const viewrooms = () => {
window.location.href = "roms_prices1.html#chenckavailability1";
}
// fnt booknewsetbar :
const booknewsetbar = () => {
window.location.href = "contact_us.html";
}
// fnt checkavailability :
const checkavailability = () => {
window.location.href = "roms_prices1.html#checkavailability1";
}
//page2
// fnt booknewrooms btn :
const booknewrooms = () => {
window.location.href = "contact_us.html";
}
// fnt booknewsetbar btn :
const booknewsetbar1= () => {
window.location.href = "contact_us.html";
}