Skip to content

Commit

Permalink
Disabled showing a filter switch on a branded calendar page for the b…
Browse files Browse the repository at this point in the history
…rand calendar
  • Loading branch information
Sp3EdeR committed Jul 8, 2024
1 parent a6c28fa commit bdd8ca9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const calendars = new class Calendars {
props.on != false :
pageStorage.getItem(id) == 'true';

const ctrl = $('<div class="custom-control custom-switch mr-sm-2">' +
const ctrl = $(`<div class="custom-control custom-switch mr-sm-2"${props.hidden ? ' style="display: none"' : ''}>` +
`<input type="checkbox" class="custom-control-input" id="${id}" value="${props.url}" ${isEnabled ? 'checked' : ''}>` +
`<label class="custom-control-label" for="${id}" style="color: ${props.clr}">${name}</label>` +
'</div>');
Expand Down
3 changes: 2 additions & 1 deletion celicaclub/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ <h3 class="masthead-brand">Celica Club Eseménynaptár</h3>
calendars.init({
'Celica Club Események': {
'url': '&src=lgjsqr60r3fnsjuc6mv4ogd2hs@group.calendar.google.com&color=%234285F4',
'clr': '#2952A3'
'clr': '#2952A3',
'hidden': true
},
'Általános Események': {
'url': '&src=6ed4253a01425b241902ebb68e9fdada28e89336654eed1bd54ccd8139ce1276%40group.calendar.google.com&color=%23616161',
Expand Down

0 comments on commit bdd8ca9

Please sign in to comment.