caldav-client

standalone CalDAV web client
git clone https://git.ce9e.org/caldav-client.git

commit
a6ee5e682da7eca48ef0c326e6aecb8d39e909a6
parent
4f3886c613857fcd7aacddfda6c894c3baf9f2f5
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-02-05 12:54
display links to calendars

Diffstat

M main.js 6 ++++++
M style.css 5 +++++

2 files changed, 11 insertions, 0 deletions


diff --git a/main.js b/main.js

@@ -138,13 +138,19 @@ dav.getCalendars(config.rootUrl).then(calendars => {
  138   138         var el = document.createElement('label');
  139   139         var checkbox = document.createElement('input');
  140   140         var circle = document.createElement('span');
   -1   141         var link = document.createElement('a');
  141   142         checkbox.type = 'checkbox';
  142   143         checkbox.checked = true;
  143   144         circle.className = 'fc-daygrid-event-dot';
  144   145         circle.style.borderColor = cal.color;
   -1   146         link.href = cal.href;
   -1   147         link.className = 'no-link';
   -1   148         link.textContent = '🔗';
  145   149         el.append(checkbox);
  146   150         el.append(circle);
  147   151         el.append(cal.name);
   -1   152         el.append(' ');
   -1   153         el.append(link);
  148   154         document.querySelector('.calendars').append(el);
  149   155 
  150   156         var option = document.createElement('option');

diff --git a/style.css b/style.css

@@ -49,3 +49,8 @@ body {
   49    49     0% { transform: rotate(0deg) }
   50    50     100% { transform: rotate(360deg) }
   51    51 }
   -1    52 
   -1    53 .no-link {
   -1    54     color: inherit;
   -1    55     text-decoration: none;
   -1    56 }