mild change to navbar
[citadel.git] / webcit-ng / static / index.html
index 97311c7897d74d4d73174b8c4235eb1a4bf39cf7..80d9ff4fdd46615923681a8668c729e36384d642 100644 (file)
@@ -1,71 +1,76 @@
 <!DOCTYPE html>
+
+<!-- 
+---- Copyright (c) 1996-2019 by Art Cancro and the citadel.org team.
+---- This program is open source software.  You can redistribute it and/or
+---- modify it under the terms of the GNU General Public License, version 3.
+-->
+
 <html>
-<title>W3.CSS Template</title>
+<title>Citadel</title>
 <meta charset="UTF-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
-<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
-<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
-<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
-<style>
-html,body,h1,h2,h3,h4,h5 {font-family: "Raleway", sans-serif}
-</style>
+<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.6/css/all.css">
+<link rel="stylesheet" href="css/w3.css">
+<link rel="stylesheet" href="css/webcit.css">
+
 <body class="w3-light-grey">
 
 <!-- Top container -->
 <div id="navbar" class="w3-bar w3-top w3-black w3-large" style="z-index:4">
-  <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>
-  <span id="ctdl_banner_title" class="w3-bar-item w3-right">XXX</span>
-  <span id="lilo" class="w3-bar-item w3-right">Login</span>
+       <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>
+       <span class="w3-right">
+               <button class="w3-bar-item w3-button" onclick="gotonext();">tempgoto</button>
+               <span id="ctdl_banner_title" class="w3-bar-item">XXX</span>
+               <span id="lilo" class="w3-bar-item">Login</span>
+       </span>
 </div>
 
 <!-- Sidebar/menu -->
 <nav class="w3-sidebar w3-collapse w3-white w3-animate-left" style="z-index:3;width:300px;" id="sidebar"><br>
-  <div class="w3-container w3-row">
-    <div class="w3-col s4">
-      <img src="/w3images/avatar2.png" class="w3-circle w3-margin-right" style="width:46px">
-    </div>
-    <div class="w3-col s8 w3-bar">
-      <span id="current_user">Welcome, <strong>Mike</strong></span><br>
-      <a href="#" class="w3-bar-item w3-button"><i class="fa fa-envelope"></i></a>
-      <a href="#" class="w3-bar-item w3-button"><i class="fa fa-user"></i></a>
-      <a href="#" class="w3-bar-item w3-button"><i class="fa fa-cog"></i></a>
-    </div>
-  </div>
-  <hr>
-  <div class="w3-container">
-    <h5>Duh, STUFF</h5>
-  </div>
-  <div class="w3-bar-block">
-    <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>
-    <a href="#" class="w3-bar-item w3-button w3-padding w3-blue"><i class="fa fa-users fa-fw"></i>  Rooms</a>
-    <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-eye fa-fw"></i>  Users</a>
-    <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-users fa-fw"></i>  Bombs</a>
-    <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bullseye fa-fw"></i>  Missiles</a>
-    <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-diamond fa-fw"></i>  Tards</a>
-    <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bell fa-fw"></i>  News</a>
-    <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bank fa-fw"></i>  General</a>
-    <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-history fa-fw"></i>  History</a>
-    <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-cog fa-fw"></i>  Settings</a><br><br>
-  </div>
+       <div class="w3-container w3-row">
+               <div class="w3-col s4">
+                       <i class="fa fa-user-circle fa-3x"></i>
+               </div>
+               <div class="w3-col s8 w3-bar">
+                       <span id="current_user">Not logged in.</span><br>
+                       <a href="#" class="w3-bar-item w3-button"><i class="fa fa-envelope"></i></a>
+                       <a href="#" class="w3-bar-item w3-button"><i class="fa fa-user"></i></a>
+                       <a href="#" class="w3-bar-item w3-button"><i class="fa fa-cog"></i></a>
+               </div>
+       </div>
+       <hr>
+       <div class="w3-container">
+               <h5>Duh, STUFF</h5>
+       </div>
+       <div class="w3-bar-block">
+               <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>
+               <a href="#" class="w3-bar-item w3-button w3-padding w3-blue"><i class="fa fa-users fa-fw"></i>  Rooms</a>
+               <div id="roomlist">rooms go here</div>
+               <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-eye fa-fw"></i>  Users</a>
+               <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-users fa-fw"></i>  Bombs</a>
+               <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bullseye fa-fw"></i>  Missiles</a>
+               <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-diamond fa-fw"></i>  Tards</a>
+               <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bell fa-fw"></i>  News</a>
+               <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bank fa-fw"></i>  General</a>
+               <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-history fa-fw"></i>  History</a>
+               <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-cog fa-fw"></i>  Settings</a><br><br>
+       </div>
 </nav>
 
-
 <!-- Overlay effect when opening sidebar on small screens -->
 <div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>
 
-<!-- !PAGE CONTENT! -->
-<div id="main" class="w3-main" style="margin-left:300px;margin-top:43px;">
-
-die in a car fire
-
-  <!-- End page content -->
+<!-- MAIN PAGE CONTENT DIV -->
+<div id="ctdl-main" class="w3-main" style="margin-left:300px;margin-top:43px;">
+Loading...
+<!-- End page content -->
 </div>
 
 <script type="text/javascript" src="js/login.js"></script>
 <script type="text/javascript" src="js/main.js"></script>
 <script type="text/javascript" src="js/views.js"></script>
 <script>
-alert('startup started');
 // Get the Sidebar
 var sidebar = document.getElementById("sidebar");
 
@@ -74,23 +79,22 @@ var overlayBg = document.getElementById("myOverlay");
 
 // Toggle between showing and hiding the sidebar, and add overlay effect
 function w3_open() {
-    if (sidebar.style.display === 'block') {
-        sidebar.style.display = 'none';
-        overlayBg.style.display = "none";
-    } else {
-        sidebar.style.display = 'block';
-        overlayBg.style.display = "block";
-    }
+       if (sidebar.style.display === 'block') {
+               sidebar.style.display = 'none';
+               overlayBg.style.display = "none";
+       } else {
+               sidebar.style.display = 'block';
+               overlayBg.style.display = "block";
+       }
 }
 
 // Close the sidebar with the close button
 function w3_close() {
-    sidebar.style.display = "none";
-    overlayBg.style.display = "none";
+       sidebar.style.display = "none";
+       overlayBg.style.display = "none";
 }
 
 ctdl_startup();
-alert('startup stoppeded');
 </script>
 
 </body>