-
Notifications
You must be signed in to change notification settings - Fork 3
/
scripts.js
29 lines (25 loc) · 1.21 KB
/
scripts.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
$(document).ready(function(){
$("#reservebtn").click(function(){
$("#reserveModal").modal('show');
});
$("#loginbtn").click(function(){
$("#loginModal").modal('show');
});
$("#cancel-btn-login").click(function(){
$("#loginModal").modal("hide");
});
$("#cancel-btn-reserve").click(function(){
$("#reserveModal").modal("hide");
});
$("#carousel-button").click(function(){
if ($("#carousel-button").children("span").hasClass('fa-pause')) {
$("#mycarousel").carousel('pause');
$("#carousel-button").children("span").removeClass('fa-pause');
$("#carousel-button").children("span").addClass('fa-play');
}
else if($("#carousel-button").children("span").hasClass('fa-play')){
$("#mycarousel").carousel('cycle');
$("#carousel-button").children("span").removeClass('fa-play');
$("#carousel-button").children("span").addClass('fa-pause');}
});
});