]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/index.html
This is a better version of detect_logged_in() for webcit-ng that
[citadel.git] / webcit-ng / static / index.html
index 64f61512dbcbd8405fd401b4b772331861884830..4e1f71b3acd1c787dd54e100aef82021c53fbaf4 100644 (file)
@@ -1,31 +1,41 @@
 <!DOCTYPE html>
 
 <!-- 
-  -- Copyright (c) 1996-2018 by 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.
-  -->
+---- Copyright (c) 1996-2022 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 GPL (General Public License) version 3.
+-->
 
 <html>
 <title>Citadel</title>
 <meta charset="UTF-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
-<link rel="stylesheet" href="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">
 
+<!-- Modal dialog (when needed) -->
+<div id="ctdl_big_modal" class="w3-modal" style="display:none; z-index:5">
+LOADING
+</div>
+
 <!-- 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>
+       <span class="w3-left">
+               <span class="w3-bar-item" id="ctdl-logo">CITADEL</span>
+       </span>
+       <span class="w3-center">
+               <span id="ctdl_banner_title" class="w3-bar-item">XXX</span>
+       </span>
+       <span class="w3-right">
+               <button class="w3-bar-item w3-button" onclick="gotonext(0);">ungoto</button>
+               <button class="w3-bar-item w3-button" onclick="gotonext(1);">skip</button>
+               <button class="w3-bar-item w3-button" onclick="gotonext(2);">goto</button>
+               <span id="lilo" class="w3-bar-item">Login</span>
+       </span>
 </div>
 
 <!-- Sidebar/menu -->
@@ -35,7 +45,7 @@
                        <i class="fa fa-user-circle fa-3x"></i>
                </div>
                <div class="w3-col s8 w3-bar">
-                       <span id="current_user">Welcome, <strong>Mike</strong></span><br>
+                       <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 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 w3-blue"><i class="fa fa-users fa-fw"></i>  Mail</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-users fa-fw"></i>  Forums</a>
+               <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-eye fa-fw"></i>  Calendar</a>
+               <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bullseye fa-fw"></i>  Contacts</a>
+               <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bell fa-fw"></i>  Blogs</a>
+               <a href="#" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bank fa-fw"></i>  Wikis</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>
 <div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>
 
 <!-- MAIN PAGE CONTENT DIV -->
-<div id="main" class="w3-main" style="margin-left:300px;margin-top:43px;">
-
-die in a car fire
-
+<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/util.js"></script>
 <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 type="text/javascript" src="js/view_forum.js"></script>
 <script>
-alert('startup started');
+
 // Get the Sidebar
 var sidebar = document.getElementById("sidebar");
 
+
 // Get the DIV with overlay effect
 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 {
+       }
+       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";
 }
 
+
 ctdl_startup();
-alert('startup stoppeded');
 </script>
 
 </body>