This repository has been archived by the owner on Jun 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbyh.js
80 lines (63 loc) · 2.28 KB
/
byh.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
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
68
69
70
71
72
73
74
75
76
77
78
79
80
$(document).ready(function(){
$(".optSelected").hide();
$(".rdSelected").hide();
$('#optionsRadios1').click(function () {
selectBreakfast(1);
});
$('#optionsRadios2').click(function () {
selectBreakfast(2);
});
$('#optionsRadios3').click(function () {
selectBreakfast(3);
});
$("#rdVis1").click(function () {
selectVisiting(1);
});
$("#rdVis2").click(function () {
selectVisiting(2);
});
$("#rdVis3").click(function () {
selectVisiting(3);
});
function selectVisiting(id)
{
$('#rdVis'+ id).parent().parent().toggleClass("btn btn-outline-success");
if ($('#rdVis' + id).parent().parent().hasClass("btn btn-outline-success")) {
$('#rdCheck'+ id).show();
}
else {
$('#rdCheck' + id).hide();
}
}
function selectBreakfast(id)
{
$(".optSelected").hide();
$("#optCheck" + id).show();
$(".cardBreakfast").find(".form-check").removeClass("btn btn-outline-success");
$('#optionsRadios' + id).parent().parent().addClass("btn btn-outline-success");
}
$('.carousel').carousel({
interval: false
});
$("#nameSelection").html("<strong>" + $("ul.carousel-indicators li.active").attr("place") + "</strong>");
$('#datepicker').datepicker({
maxViewMode: 0,
clearBtn: true,
autoclose: true,
todayHighlight: true
});
$('.carousel').on('slid.bs.carousel', function () {
$("#nameSelection").html("<strong>" + $("ul.carousel-indicators li.active").attr("place") + "</strong>");
$("#nameSelection").show();
$(".carousel-container-caption").slideToggle();
$(".cardDetail").hide();
})
$('.btndestination').mouseup(function(){
$("#nameSelection").html("<strong>" + $("ul.carousel-indicators li.active").attr("place") + "</strong>");
$("#nameSelection").show();
$(".cardDetail").show();
});
$('.img').click(function(){
$(".carousel-container-caption").slideToggle();
});
});