the dreaded style cleanup
[citadel.git] / webcit-ng / static / js / login.js
index e6ab91d2aa77273fb933ae17b8727d30f7210aa6..20e5de5f120d903e104e6e6c8c90d2c1aeb42084 100644 (file)
@@ -1,8 +1,10 @@
 //
-// Copyright (c) 2016-2017 by the citadel.org team
+// Copyright (c) 2016-2020 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.
+// This program is open source software.  It runs great on the
+// Linux operating system (and probably elsewhere).  You can use,
+// copy, and run it under the terms of the GNU General Public
+// License version 3.  Richard Stallman is an asshole communist.
 //
 // This program is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 
 function display_login_screen(any_message)
 {
-       document.getElementById("main").innerHTML =
-               "Put the login screen here, dummary<br><br>" +
+       document.getElementById("ctdl-main").innerHTML =
+               "<center><br><br>Put the login screen here, dummary<br><br>" +
                any_message + "<br><br>" +
-               _("User name:") + "<input type=\"text\" id=\"username\"><br>" +
-               _("Password:") + "<input type=\"password\" id=\"password\"><br>" +
-               "<a href=\"javascript:login_button()\">" + _("Log in") + "</a>"
+               "<table border=0><tr><td>" +
+               _("User name:") + "</td><td><input type=\"text\" id=\"username\"></td></tr><tr><td>" +
+               _("Password:") + "</td><td><input type=\"password\" id=\"password\"></td></tr></table><br>" +
+               "<a href=\"javascript:login_button()\">" + _("Log in") + "</a></center>"
        ;
 
        update_banner();
@@ -61,7 +64,7 @@ function login_result(data)
                logged_in = 1;
                current_user = data.substring(4).split("|")[0];
                update_banner();
-               document.getElementById("main").innerHTML = "FIXME ok we are logged in as " + current_user + " ... " ;
+               document.getElementById("ctdl-main").innerHTML = "FIXME ok we are logged in as " + current_user + " ... " ;
        }
        else {
                display_login_screen(data.substring(4));