17a1a4ea5c62c8a5b56d15d76617ea6486532031
[citadel.git] / webcit-ng / static / js / view_calendar.js
1 // This module handles the view for "calendar" rooms.
2 //
3 // Copyright (c) 2016-2023 by the citadel.org team
4 //
5 // This program is open source software.  Use, duplication, or
6 // disclosure are subject to the GNU General Public License v3.
7
8
9 // RENDERER FOR THIS VIEW
10 function view_render_calendar() {
11         document.getElementById("ctdl-main").innerHTML = `STUB RENDERER FOR CALENDAR ROOM`;
12
13         fetch(
14                 "/ctdl/r/" + escapeHTMLURI(current_room) + "/calendar::"
15         )
16         .then((response) => {
17                 if (response.ok) {
18                         return(response.json());
19                 }
20         })
21         .then((j) => {
22                 console.log("Something");
23         })
24         .catch((error) => {
25                 console.log("Error: " + error);
26         });
27 }