Add more error checking in auth
[blerg.git] / www / index.html
index 9c78587..c667c71 100644 (file)
@@ -5,90 +5,21 @@
 <html>
 <head>
 <title>Blërg!</title>
+<!-- enyo production -->
+<script type="text/javascript" src="build/enyo-blerg.js"></script>
+<link rel="stylesheet" href="build/enyo-blerg.css">
 <link rel="stylesheet" href="css/blerg.css">
-<!-- enyo dev -->
-<script type="text/javascript" src="jssrc/enyo/enyo.js"></script>
-<script type="text/javascript" src="jssrc/package.js"></script>
-
 <meta http-equiv="content-type" content="text/html; charset=utf-8">
 <meta name="viewport" content="width=device-width, user-scalable=no, maximum-scale=1.0"/>
 </head>
 <body>
 <script type="text/javascript">
-//new blerg.Blerg({}).renderInto(document.body);
-new blerg.Blerg({}).write();
+BlergMedia.media_init();
+new blerg.Blerg().write();
 </script>
-
-<!--
-<div id="header">
-  <div id="siteid">
-    <img src="images/blerglogo.png" class="logo" width="125" height="122">
-    <h1><a href="#">Blërg!</a></h1>
-    <h2><span name="section">Welcome</span></h2>
-    <div id="usercontrols" style="display:none">
-      <a href="#" name="user.reflink" onclick="return qlink()">[chatter]</a>
-      <a href="#" name="user.subscribelink" onclick="subscribe(); return false" style="display: none">[stalk]</a>
-      <a href="#" name="user.unsubscribelink" onclick="unsubscribe(); return false" style="display: none">[stop stalking]</a>
-    </div>
-  </div>
-  <div id="controls">
-    <form style="font-size: small" id="login" onsubmit="loginStatus.login($('login.username').value, $('login.password').value); return false">
-      username: <input type="text" id="login.username" size="10">
-      password: <input type="password" id="login.password" size="10">
-      <input type="submit" value="login">
-      <p style="font-size: large"><a href="#" onclick="$('welcome').hide(); $('items').hide(); $('post').hide(); $('signup').show(); return false">I want to blërg!</a></p>
-    </form>
-    <div id="logout" style="display: none">
-      Hello, <a href="#" id="userlink" onclick="return qlink()"></a>. <a href="#" onclick="$('welcome').hide(); $('items').hide(); $('post').hide(); $('navigation').hide(); $('passwd').show(); return false">change password</a> <a href="#" onclick="loginStatus.logout(); return false">logout</a><br>
-      <a href="#" onclick="postPopup(); return false">Write new entry</a><br>
-      <a href="#" id="reflink" onclick="return qlink()">Chatter about me</a><br>
-      <a href="#/feed" onclick="return qlink()">Stalk your victims <span id="newFeedMessages"></span></a>
-    </div>
-    <div id="rss" style="display:none"><a id="rsslink" href=""><img src="images/rss.png" width="16" height="16"> RSS</a></div>
-  </div>
-  <div style="clear:both"></div>
-  <div id="post" style="display:none">
-    <h2>What's on your mind?</h2>
-    <form onsubmit="loginStatus.post($('post.content').value); return false">
-      <textarea rows="3" id="post.content" onkeydown="resizePostContent()"></textarea>
-      <div id="post.buttons">
-        <input type="submit" value="close" onclick="$('post').hide(); return false">
-        <input type="submit" value="post">
-      </div>
-    </form>
-  </div>
-</div>
-
-
-<div id="main">
-  <div id="items" style="display:none">
-  </div>
-
-  <div id="navigation">
-    <a id="newer_link" href="#" onclick="return qlink()" style="display:none">&lt;&lt; newer</a>
-    <a id="older_link" href="#" onclick="return qlink()" style="display:none">older &gt;&gt;</a>
-  </div>
-
-  <div id="signup" style="display:none">
-    <h2>Sign Up</h2>
-    <table>
-      <tr><td>Username:</td><td><input type="text" id="signup.username" width="40"></td></tr>
-      <tr><td>Password:</td><td><input type="password" id="signup.password" width="40"></td></tr>
-    </table>
-    <button onclick="signup()">Signup</button> <button onclick="signup_cancel()">Cancel</button>
-  </div>
-
-  <div id="passwd" style="display:none">
-    <h2>Change Your Password</h2>
-    <table>
-      <tr><td>Old Password:</td><td><input type="password" id="passwd.old_password" width="40"></td></tr>
-      <tr><td>New Password:</td><td><input type="password" id="passwd.new_password" width="40"></td></tr>
-    </table>
-    <button onclick="passwd()">Change</button> <button onclick="passwd_cancel()">Cancel</button>
-  </div>
-
-</div>
--->
-
+<footer>
+<a href="/doc/contact.html">Contact Blërg!</a>
+<a href="/doc/privacy_data.html">Privacy and Data Policies</a>
+</footer>
 </body>
 </html>