80d9ff4fdd46615923681a8668c729e36384d642
[citadel.git] / webcit-ng / static / index.html
1 <!DOCTYPE html>
2
3 <!-- 
4 ---- Copyright (c) 1996-2019 by Art Cancro and the citadel.org team.
5 ---- This program is open source software.  You can redistribute it and/or
6 ---- modify it under the terms of the GNU General Public License, version 3.
7 -->
8
9 <html>
10 <title>Citadel</title>
11 <meta charset="UTF-8">
12 <meta name="viewport" content="width=device-width, initial-scale=1">
13 <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.6/css/all.css">
14 <link rel="stylesheet" href="css/w3.css">
15 <link rel="stylesheet" href="css/webcit.css">
16
17 <body class="w3-light-grey">
18
19 <!-- Top container -->
20 <div id="navbar" class="w3-bar w3-top w3-black w3-large" style="z-index:4">
21         <button class="w3-bar-item w3-button w3-hide-large w3-hover-none w3-hover-text-light-grey" onclick="w3_open();"><i class="fa fa-bars"></i>  Menu</button>
22         <span class="w3-right">
23                 <button class="w3-bar-item w3-button" onclick="gotonext();">tempgoto</button>
24                 <span id="ctdl_banner_title" class="w3-bar-item">XXX</span>
25                 <span id="lilo" class="w3-bar-item">Login</span>
26         </span>
27 </div>
28
29 <!-- Sidebar/menu -->
30 <nav class="w3-sidebar w3-collapse w3-white w3-animate-left" style="z-index:3;width:300px;" id="sidebar"><br>
31         <div class="w3-container w3-row">
32                 <div class="w3-col s4">
33                         <i class="fa fa-user-circle fa-3x"></i>
34                 </div>
35                 <div class="w3-col s8 w3-bar">
36                         <span id="current_user">Not logged in.</span><br>
37                         <a href="#" class="w3-bar-item w3-button"><i class="fa fa-envelope"></i></a>
38                         <a href="#" class="w3-bar-item w3-button"><i class="fa fa-user"></i></a>
39                         <a href="#" class="w3-bar-item w3-button"><i class="fa fa-cog"></i></a>
40                 </div>
41         </div>
42         <hr>
43         <div class="w3-container">
44                 <h5>Duh, STUFF</h5>
45         </div>
46         <div class="w3-bar-block">
47                 <a href="#" class="w3-bar-item w3-button w3-padding-16 w3-hide-large w3-dark-grey w3-hover-black" onclick="w3_close()" title="close menu"><i class="fa fa-remove fa-fw"></i>  Close Menu</a>
48                 <a href="#" class="w3-bar-item w3-button w3-padding w3-blue"><i class="fa fa-users fa-fw"></i>  Rooms</a>
49                 <div id="roomlist">rooms go here</div>
50                 <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-eye fa-fw"></i>  Users</a>
51                 <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-users fa-fw"></i>  Bombs</a>
52                 <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bullseye fa-fw"></i>  Missiles</a>
53                 <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-diamond fa-fw"></i>  Tards</a>
54                 <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bell fa-fw"></i>  News</a>
55                 <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bank fa-fw"></i>  General</a>
56                 <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-history fa-fw"></i>  History</a>
57                 <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-cog fa-fw"></i>  Settings</a><br><br>
58         </div>
59 </nav>
60
61 <!-- Overlay effect when opening sidebar on small screens -->
62 <div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>
63
64 <!-- MAIN PAGE CONTENT DIV -->
65 <div id="ctdl-main" class="w3-main" style="margin-left:300px;margin-top:43px;">
66 Loading...
67 <!-- End page content -->
68 </div>
69
70 <script type="text/javascript" src="js/login.js"></script>
71 <script type="text/javascript" src="js/main.js"></script>
72 <script type="text/javascript" src="js/views.js"></script>
73 <script>
74 // Get the Sidebar
75 var sidebar = document.getElementById("sidebar");
76
77 // Get the DIV with overlay effect
78 var overlayBg = document.getElementById("myOverlay");
79
80 // Toggle between showing and hiding the sidebar, and add overlay effect
81 function w3_open() {
82         if (sidebar.style.display === 'block') {
83                 sidebar.style.display = 'none';
84                 overlayBg.style.display = "none";
85         } else {
86                 sidebar.style.display = 'block';
87                 overlayBg.style.display = "block";
88         }
89 }
90
91 // Close the sidebar with the close button
92 function w3_close() {
93         sidebar.style.display = "none";
94         overlayBg.style.display = "none";
95 }
96
97 ctdl_startup();
98 </script>
99
100 </body>
101 </html>