-
Notifications
You must be signed in to change notification settings - Fork 0
/
programacao-control.js
33 lines (31 loc) · 1.34 KB
/
programacao-control.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
// Palco Tech doesn't has names for each day so we need to hide the title if it is selected
$("#select-field-palco").change(function() {
// console.log($("#select-field-palco").val());
if($("#select-field-palco").val() == "Palco SEO Tech") {
$(".programacao-title-wrapper").css("display", "none");
}
else {
$(".programacao-title-wrapper").css("display", "block");
}
});
// Select the correct title depending on the day selected
$("#select-field-dia").change(function() {
// console.log($("#select-field-dia").val());
if($("#select-field-dia").val() == "21") {
$(".programacao-dia-title.is-01").css("display", "block");
$(".programacao-dia-title.is-02").css("display", "none");
$(".programacao-dia-title.is-03").css("display", "none");
} else if($("#select-field-dia").val() == "22") {
$(".programacao-dia-title.is-01").css("display", "none");
$(".programacao-dia-title.is-02").css("display", "block");
$(".programacao-dia-title.is-03").css("display", "none");
}
else {
$(".programacao-dia-title.is-01").css("display", "none");
$(".programacao-dia-title.is-02").css("display", "none");
$(".programacao-dia-title.is-03").css("display", "block");
}
});
$(".progrmacao-select-field").change(function() {
$("#programacao").click();
});