Commits

Chun-Ping Chang committed f886bd3

link modify

Comments (0)

Files changed (4)

assets/js/custom/signin.min.js

-$(document).ready(function(){$("#btnLogin").click(function(){var a=(new jsSHA($("#txtUserID").val())).getHash("SHA-1","HEX"),b=(new jsSHA($("#txtUserPW").val())).getHash("SHA-512","HEX");$.ajax({type:"POST",url:"/auth",dataType:"json",cache:!1,data:{userhash:a,passwd:b},error:function(){alert("Login failed")},success:function(a){"OK"===a[0]?window.location="/manage":alert("Login failed")}})});$("input:text").bind("keypress",function(a){13==a.keyCode&&$("#btnLogin").click()});$("input:password").bind("keypress",
+$(document).ready(function(){$("#btnLogin").click(function(){var a=(new jsSHA($("#txtUserID").val())).getHash("SHA-1","HEX"),b=(new jsSHA($("#txtUserPW").val())).getHash("SHA-512","HEX");$.ajax({type:"POST",url:"/auth",dataType:"json",cache:!1,data:{userhash:a,passwd:b},error:function(){alert("Login failed")},success:function(a){"OK"===a[0]?window.location="/":alert("Login failed")}})});$("input:text").bind("keypress",function(a){13==a.keyCode&&$("#btnLogin").click()});$("input:password").bind("keypress",
 function(a){13==a.keyCode&&$("#btnLogin").click()})});
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+  <head>
+    <title>Manage - GaiaSup</title>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="keywords" content="GaiaSup,LBS,Geo,Spatial,Location Base Service,Spatial Publish Subscribe,SPS,ImonCloud" />
+    <meta name="description" content="Spatial PubSub Service for your Geo / Spatial / Location Base Service in the cloud by Imonology">
+    <meta name="author" content="Imonology LLC">
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+
+    <!-- styles -->
+    <link href="/assets/css/custom.css" rel="stylesheet">
+    <link href="/assets/css/bs_united.css" rel="stylesheet">
+    <style type="text/css">
+      body {
+        padding-top: 60px;
+        padding-bottom: 40px;
+      }
+    </style>
+    <link href="/assets/css/bootstrap-responsive.css" rel="stylesheet">
+
+    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
+    <!--[if lt IE 9]>
+      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+    <![endif]-->
+
+    <!-- fav and touch icons -->
+    <!--<link rel="shortcut icon" href="./assets/ico/favicon.ico">-->
+    <!--<link rel="apple-touch-icon-precomposed" sizes="144x144" href="./assets/ico/apple-touch-icon-144-precomposed.png">-->
+    <!--<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./assets/ico/apple-touch-icon-114-precomposed.png">-->
+    <!--<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./assets/ico/apple-touch-icon-72-precomposed.png">-->
+    <!--<link rel="apple-touch-icon-precomposed" href="./assets/ico/apple-touch-icon-57-precomposed.png">-->
+  </head>
+
+  <body>
+
+    <div class="navbar navbar-fixed-top">
+      <div class="navbar-inner">
+        <div class="container">
+          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+          </a>
+          <a class="brand" href="http://gaiasup.com">GaiaSup</a>
+          <div class="nav-collapse">
+            <ul class="nav">
+              <li class="active"><a href="/">Manage</a></li>
+            </ul>
+
+            <!-- The drop down menu -->
+            <ul class="nav pull-right">
+              <li><a href="/logout">Log Out</a></li>
+            </ul>
+          </div>
+          <!--/.nav-collapse -->
+        </div>
+      </div>
+    </div>
+
+    <div class="container">
+
+      <div class="row">
+        <div id="mgtContent" class="span8 offset2">
+          <div> <h3>Hello <span class="spnUserID">USER</span>! Here’s a list of your API Keys:</h3> </div>
+
+          <div class="div_table">
+          </div>
+
+          <hr>
+
+          <div>
+            <a class="btn btn-primary btn-small add" href="#">
+              <i class="icon-plus icon-white"></i>
+              Add
+            </a>
+          </div>
+
+        </div>
+      </div>
+
+      <hr>
+
+      <footer>
+      <center>
+        <p>&copy; 2012, <a href="http://imonology.com/" target="_blank">Imonology, LLC</a>. All rights reserved.</p>
+      </center>
+      </footer>
+
+    </div>
+    <!-- /container -->
+
+
+    <!-- Modals -->
+    <div class="modal hide fade" id="contact">
+      <div class="modal-header">
+        <a class="close" data-dismiss="modal">×</a>
+        <h3>Contact us</h3>
+      </div>
+      <div class="modal-body">
+        <p>You can send feedback or report bug to <a href="mailto:contact@GaiaSup.com">contact@GaiaSup.com</a></p>
+      </div>
+      <div class="modal-footer">
+        <a data-dismiss="modal" href="#" class="btn btn-primary" id="ContactUsClose">Close</a>
+      </div>
+    </div>
+
+    <!-- Le javascript
+    ================================================== -->
+    <!-- Placed at the end of the document so the pages load faster -->
+    <script src="/assets/js/jquery.js"></script>
+    <script src="/assets/js/bootstrap-transition.js"></script>
+    <script src="/assets/js/bootstrap-alert.js"></script>
+    <script src="/assets/js/bootstrap-modal.js"></script>
+    <script src="/assets/js/bootstrap-dropdown.js"></script>
+    <script src="/assets/js/bootstrap-scrollspy.js"></script>
+    <script src="/assets/js/bootstrap-tab.js"></script>
+    <script src="/assets/js/bootstrap-tooltip.js"></script>
+    <script src="/assets/js/bootstrap-popover.js"></script>
+    <script src="/assets/js/bootstrap-button.js"></script>
+    <script src="/assets/js/bootstrap-collapse.js"></script>
+    <script src="/assets/js/bootstrap-carousel.js"></script>
+    <script src="/assets/js/bootstrap-typeahead.js"></script>
+    <script src="/assets/js/sha.js"></script>
+    <script src="/assets/js/jquery.validate.js"></script>
+
+    <script src="/assets/js/custom/manage.min.js"></script>
+
+     <!--twitter bootstrap modals-->
+    <div class="modal hide fade" id="modalAddMod">
+      <div class="modal-header">
+        <a class="close" data-dismiss="modal">×</a>
+        <h3><span id="modalAct">Add/Modify</span> Project</h3>
+      </div>
+      <div class="modal-body">
+        <h4>Please input your project info</h4><br />
+        <div id="modalContent">
+         <form id="frmAddModify">
+          <div>
+            <label>
+              Project Name
+            </label>
+            <input id="txtProjName" class="inModals span4" name="txtProjName" type="text" value="" required="" autofocus="" autocorrect="off" autocapitalize="off">
+          </div>
+
+          <div>
+            <label>
+              Website Link *
+            </label>
+            <input id="txtWebLink" class="inModals span4" name="txtWebUrl" type="text">
+          </div>
+
+          <div>
+            <label>
+              Description
+            </label>
+            <input id="txtDesc" class="inModals span4" name="txtDesc" type="text">
+          </div>
+         </form>
+         <p>* indicates optional</p>
+        </div>
+      </div>
+      <div class="modal-footer">
+        <a href="#" class="btn btn-primary" id="btnSave">Save</a>
+        <a href="#" class="btn" id="btnCancel">Cancel</a>
+      </div>
+    </div>
+
+    <div class="modal hide fade" id="modalDelAlert">
+      <div class="modal-header">
+        <a class="close" data-dismiss="modal">×</a>
+        <h3>Delete Project</h3>
+      </div>
+      <div class="modal-body">
+        <p>Do you REALLY want to delete <span id='spnProjName'></span>?</p>
+      </div>
+      <div class="modal-footer">
+        <a href="#" class="btn btn-primary" id="delYes">Yes</a>
+        <a href="#" class="btn" id="delNo">No</a>
+      </div>
+    </div>
+
+    <div class="modal hide fade" id="modalRegenAlert">
+      <div class="modal-header">
+        <a class="close" data-dismiss="modal">×</a>
+        <h3>ReGenerate API key</h3>
+      </div>
+      <div class="modal-body">
+        <p>Re-generate API key will clean all layers and nodes that created under this API key</p>
+        <p>CONTINUE?</p>
+      </div>
+      <div class="modal-footer">
+        <a href="#" class="btn btn-primary" id="regenYes">Yes</a>
+        <a href="#" class="btn" id="regenNo">No</a>
+      </div>
+    </div>
+     <!--twitter bootstrap modals-->
+
+  </body>
+</html>
             <span class="icon-bar"></span>
             <span class="icon-bar"></span>
           </a>
-          <a class="brand" href="/">GaiaSup</a>
+          <a class="brand" href="http://gaiasup.com">GaiaSup</a>
           <div class="nav-collapse">
             <ul class="nav">
-              <li><a href="/">Home</a></li>
-              <li><a href="/manage">Manage</a></li>
+              <li><a href="/">Manage</a></li>
             </ul>
 
             <!-- The drop down menu -->
             <ul class="nav pull-right">
               <li class="active"><a href="/login">Log In / Sign Up</a></li>
-              <!--<li class="divider-vertical"></li>-->
-              <!--<li class="drop down">-->
-              <!--<a class="dropdown-toggle" href="#" data-toggle="dropdown">Log In <strong class="caret"></strong></a>-->
-              <!--<div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;">-->
-                <!--<form id="frmLogin">-->
-                  <!--<input id="txtUserID" style="margin-bottom: 15px;" type="text" name="txtUserID" size="30" />-->
-                  <!--<input id="txtUserPW" style="margin-bottom: 15px;" type="password" name="txtUserPW" size="30" />-->
-
-                  <!--<input class="btn btn-primary" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="button" id="btnLogin" name="btnLogin" value="Log In" />-->
-                <!--</form>-->
-              <!--</div>-->
-              <!--</li>-->
             </ul>
           </div>
           <!--/.nav-collapse -->
               <h2>LOG IN</h2>
               <p>You need a GaiaSup account to start using our service</p>
               <hr/>
-              <p>Don't have an account? <a href="/signup">Create one</a>.</p>
+              <p>Don't have an account? <a href="http://gaiasup.com">Create one</a>.</p>
             </div>
 
             <div class="span4">

manage.html

-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-  <head>
-    <title>Manage - GaiaSup</title>
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="keywords" content="GaiaSup,LBS,Geo,Spatial,Location Base Service,Spatial Publish Subscribe,SPS,ImonCloud" />
-    <meta name="description" content="Spatial PubSub Service for your Geo / Spatial / Location Base Service in the cloud by Imonology">
-    <meta name="author" content="Imonology LLC">
-    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
-
-    <!-- styles -->
-    <link href="/assets/css/custom.css" rel="stylesheet">
-    <link href="/assets/css/bs_united.css" rel="stylesheet">
-    <style type="text/css">
-      body {
-        padding-top: 60px;
-        padding-bottom: 40px;
-      }
-    </style>
-    <link href="/assets/css/bootstrap-responsive.css" rel="stylesheet">
-
-    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
-    <!--[if lt IE 9]>
-      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
-    <![endif]-->
-
-    <!-- fav and touch icons -->
-    <!--<link rel="shortcut icon" href="./assets/ico/favicon.ico">-->
-    <!--<link rel="apple-touch-icon-precomposed" sizes="144x144" href="./assets/ico/apple-touch-icon-144-precomposed.png">-->
-    <!--<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./assets/ico/apple-touch-icon-114-precomposed.png">-->
-    <!--<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./assets/ico/apple-touch-icon-72-precomposed.png">-->
-    <!--<link rel="apple-touch-icon-precomposed" href="./assets/ico/apple-touch-icon-57-precomposed.png">-->
-  </head>
-
-  <body>
-
-    <div class="navbar navbar-fixed-top">
-      <div class="navbar-inner">
-        <div class="container">
-          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
-            <span class="icon-bar"></span>
-            <span class="icon-bar"></span>
-            <span class="icon-bar"></span>
-          </a>
-          <a class="brand" href="/">GaiaSup</a>
-          <div class="nav-collapse">
-            <ul class="nav">
-              <li><a href="/">Home</a></li>
-              <li class="active"><a href="/manage">Manage</a></li>
-            </ul>
-
-            <!-- The drop down menu -->
-            <ul class="nav pull-right">
-              <li><a href="/logout">Log Out</a></li>
-            </ul>
-          </div>
-          <!--/.nav-collapse -->
-        </div>
-      </div>
-    </div>
-
-    <div class="container">
-
-      <div class="row">
-        <div id="mgtContent" class="span8 offset2">
-          <div> <h3>Hello <span class="spnUserID">USER</span>! Here’s a list of your API Keys:</h3> </div>
-
-          <div class="div_table">
-          </div>
-
-          <hr>
-
-          <div>
-            <a class="btn btn-primary btn-small add" href="#">
-              <i class="icon-plus icon-white"></i>
-              Add
-            </a>
-          </div>
-
-        </div>
-      </div>
-
-      <hr>
-
-      <footer>
-      <center>
-        <p>&copy; 2012, <a href="http://imonology.com/" target="_blank">Imonology, LLC</a>. All rights reserved.</p>
-      </center>
-      </footer>
-
-    </div>
-    <!-- /container -->
-
-
-    <!-- Modals -->
-    <div class="modal hide fade" id="contact">
-      <div class="modal-header">
-        <a class="close" data-dismiss="modal">×</a>
-        <h3>Contact us</h3>
-      </div>
-      <div class="modal-body">
-        <p>You can send feedback or report bug to <a href="mailto:contact@GaiaSup.com">contact@GaiaSup.com</a></p>
-      </div>
-      <div class="modal-footer">
-        <a data-dismiss="modal" href="#" class="btn btn-primary" id="ContactUsClose">Close</a>
-      </div>
-    </div>
-
-    <!-- Le javascript
-    ================================================== -->
-    <!-- Placed at the end of the document so the pages load faster -->
-    <script src="/assets/js/jquery.js"></script>
-    <script src="/assets/js/bootstrap-transition.js"></script>
-    <script src="/assets/js/bootstrap-alert.js"></script>
-    <script src="/assets/js/bootstrap-modal.js"></script>
-    <script src="/assets/js/bootstrap-dropdown.js"></script>
-    <script src="/assets/js/bootstrap-scrollspy.js"></script>
-    <script src="/assets/js/bootstrap-tab.js"></script>
-    <script src="/assets/js/bootstrap-tooltip.js"></script>
-    <script src="/assets/js/bootstrap-popover.js"></script>
-    <script src="/assets/js/bootstrap-button.js"></script>
-    <script src="/assets/js/bootstrap-collapse.js"></script>
-    <script src="/assets/js/bootstrap-carousel.js"></script>
-    <script src="/assets/js/bootstrap-typeahead.js"></script>
-    <script src="/assets/js/sha.js"></script>
-    <script src="/assets/js/jquery.validate.js"></script>
-
-    <script src="/assets/js/custom/manage.min.js"></script>
-
-     <!--twitter bootstrap modals-->
-    <div class="modal hide fade" id="modalAddMod">
-      <div class="modal-header">
-        <a class="close" data-dismiss="modal">×</a>
-        <h3><span id="modalAct">Add/Modify</span> Project</h3>
-      </div>
-      <div class="modal-body">
-        <h4>Please input your project info</h4><br />
-        <div id="modalContent">
-         <form id="frmAddModify">
-          <div>
-            <label>
-              Project Name
-            </label>
-            <input id="txtProjName" class="inModals span4" name="txtProjName" type="text" value="" required="" autofocus="" autocorrect="off" autocapitalize="off">
-          </div>
-
-          <div>
-            <label>
-              Website Link *
-            </label>
-            <input id="txtWebLink" class="inModals span4" name="txtWebUrl" type="text">
-          </div>
-
-          <div>
-            <label>
-              Description
-            </label>
-            <input id="txtDesc" class="inModals span4" name="txtDesc" type="text">
-          </div>
-         </form>
-         <p>* indicates optional</p>
-        </div>
-      </div>
-      <div class="modal-footer">
-        <a href="#" class="btn btn-primary" id="btnSave">Save</a>
-        <a href="#" class="btn" id="btnCancel">Cancel</a>
-      </div>
-    </div>
-
-    <div class="modal hide fade" id="modalDelAlert">
-      <div class="modal-header">
-        <a class="close" data-dismiss="modal">×</a>
-        <h3>Delete Project</h3>
-      </div>
-      <div class="modal-body">
-        <p>Do you REALLY want to delete <span id='spnProjName'></span>?</p>
-      </div>
-      <div class="modal-footer">
-        <a href="#" class="btn btn-primary" id="delYes">Yes</a>
-        <a href="#" class="btn" id="delNo">No</a>
-      </div>
-    </div>
-
-    <div class="modal hide fade" id="modalRegenAlert">
-      <div class="modal-header">
-        <a class="close" data-dismiss="modal">×</a>
-        <h3>ReGenerate API key</h3>
-      </div>
-      <div class="modal-body">
-        <p>Re-generate API key will clean all layers and nodes that created under this API key</p>
-        <p>CONTINUE?</p>
-      </div>
-      <div class="modal-footer">
-        <a href="#" class="btn btn-primary" id="regenYes">Yes</a>
-        <a href="#" class="btn" id="regenNo">No</a>
-      </div>
-    </div>
-     <!--twitter bootstrap modals-->
-
-  </body>
-</html>