]> code.citadel.org Git - citadel.git/blob - webcit-ng/static/index.html
Make all CSS comment blocks start in the same column. Probably not sustainable.
[citadel.git] / webcit-ng / static / index.html
1 <!DOCTYPE html>
2
3 <!-- 
4         Copyright (c) 1996-2022 by Art Cancro and the citadel.org team.
5         This program is open source software.  Use, duplication, or
6         disclosure are subject to the GNU General Public License v3.
7 -->
8
9 <html>
10 <title>Citadel</title>
11 <meta charset="UTF-8">
12 <link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.0.0/css/all.css">
13 <link rel="stylesheet" href="css/webcit.css">
14
15 <body>
16
17 <!-- When we need a modal dialog, we can attach it to this element -->
18 <div class="ctdl-modal" id="ctdl_big_modal"></div>
19
20 <div class="ctdl-main-grid-container">
21
22         <!-- The style for these appears in webcit.css and was inspired by https://www.w3schools.com/css/css_sidebar_horizontal.asp -->
23         <div class="ctdl-grid-banner-item" id="banner">
24                 <!-- These items float to the LEFT side of the banner -->
25                 <ul class="ctdl-banner-buttons" style="float:left">
26                         <!-- <li id="ctdl-sidebar-open" onClick="sidebar_open();"><i class="fa fa-bars"></i>Menu</li> -->
27                         <li id="ctdl-logo">CITADEL</li>
28                         <li id="ctdl_banner_title">---</li>
29                 </ul>
30                 <!-- These items float to the RIGHT side of the banner -->
31                 <ul class="ctdl-banner-buttons" style="float:right">
32                         <li><button id="ctdl-newmsg-button" style="display:none" onClick="entmsg_dispatcher();">enter</button></li>
33                         <li><button id="ctdl-ungoto-button" style="display:none" onClick="gotonext(0);">ungoto</button></li>
34                         <li><button id="ctdl-skip-button" style="display:none" onClick="gotonext(1);">skip</button></li>
35                         <li><button id="ctdl-goto-button" style="display:none" onClick="gotonext(2);">goto</button></li>
36                         <li><button id="lilo">Login</button><br>
37                         <span id="current_user">Not logged in.</span>
38                         <li><i class="fa fa-user-circle fa-3x"></i></li>
39                 </ul>
40         </div>
41
42         <div class="ctdl-grid-sidebar-item" id="sidebar">
43                 <ul id="ctdl-sidebar" class="ctdl-sidebar-class">
44                         <!-- <li><a href="#"><i class="fa fa-envelope" onClick="gotoroom('_MAIL_');"></i></a> -->
45                         <!-- <li><a href="#"><i class="fa fa-user" onClick="user_profile(current_user);"></i></a> -->
46                         <!-- <li><a href="#"<i class="fa fa-cog"></i></a> -->
47                         <!-- <li><hr> -->
48                         <!-- <li><button onClick="sidebar_close()" title="close menu"><i class="fa fa-remove fa-fw"></i>  Close Menu</button> -->
49                         <li><button id="ctdl-sidebar-button-mail" onClick="gotoroom('_MAIL_');"><i class="fa fa-envelope fa-fw"></i>  Mail</button>
50                         <li id="ctdl_mail_folder_list" style="display:none"></li>
51                         <li><button id="ctdl-sidebar-button-forums" onClick="render_room_list();"><i class="fas fa-comments fa-fw"></i>  Forums</button>
52                         <li><button id="ctdl-sidebar-button-calendar"> <i class="fa fa-calendar-alt fa-fw"></i>  Calendar</button>
53                         <li><button id="ctdl-sidebar-button-contacts"><i class="fa fa-address-book fa-fw"></i>  Contacts</button>
54                         <li><button id="ctdl-sidebar-button-blogs"><i class="fa fa-blog fa-fw"></i>  Blogs</button>
55                         <li><button id="ctdl-sidebar-button-wikis"><i class="fa fa-book fa-fw"></i>  Wikis</button>
56                         <li><button id="ctdl-sidebar-button-settings"><i class="fa fa-cog fa-fw"></i>  Settings</button>
57                 </ul>
58         </div>
59
60         <div class="ctdl-grid-main-item" id="ctdl-main">
61                 Loading...
62         </div>
63
64 </div><!--class="ctdl-main-grid-container"-->
65
66 <script type="text/javascript" src="js/defs.js"></script>
67 <script type="text/javascript" src="js/util.js"></script>
68 <script type="text/javascript" src="js/login.js"></script>
69 <script type="text/javascript" src="js/main.js"></script>
70 <script type="text/javascript" src="js/views.js"></script>
71 <script type="text/javascript" src="js/view_forum.js"></script>
72 <script type="text/javascript" src="js/view_mail.js"></script>
73 <script type="text/javascript" src="js/roomlist.js"></script>
74 <script type="text/javascript" src="js/user_profile.js"></script>
75 <script>
76
77 // Get the Sidebar
78 var sidebar = document.getElementById("sidebar");
79
80
81 // Get the DIV with overlay effect
82 var overlayBg = document.getElementById("myOverlay");
83
84
85 // Toggle between showing and hiding the sidebar, and add overlay effect
86 function sidebar_open() {
87         if (sidebar.style.display === 'block') {
88                 sidebar.style.display = 'none';
89                 overlayBg.style.display = "none";
90         }
91         else {
92                 sidebar.style.display = 'block';
93                 overlayBg.style.display = "block";
94         }
95 }
96
97
98 // Close the sidebar with the close button
99 function sidebar_close() {
100         sidebar.style.display = "none";
101         overlayBg.style.display = "none";
102 }
103
104
105 ctdl_startup();
106 </script>
107
108 </body>
109 </html>