Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update static/index.html

  • Loading branch information...
commit 1389e86b916d57b1490a6f2d0aae9d5659beb854 1 parent d35b82b
rafaelcastrocouto authored

Showing 1 changed file with 77 additions and 49 deletions. Show diff stats Hide diff stats

  1. +77 49 static/index.html
126 static/index.html
@@ -3,12 +3,15 @@
3 3 <title>JSApp.US</title>
4 4 <script>if(location.hash[1] == "s") location.href="/s/"+location.hash.substring(2);</script>
5 5 <style>
6   -html {margin: 0;padding: 0;width: 100%;height: 100%;}
7   -body {margin: 0;padding: 0;width: 100%;height: 100%;overflow: hidden;}
8   -#editor { margin: 0; padding: 0; width: 65%; height: 100%; overflow: hidden;}
9   -#entro { margin: 0; padding:0 width:32%; height: 100%; overflow: auto; position: absolute; top: 0px; left: 66% }
  6 +html { margin: 0; padding: 0; width: 100%; height: 100%}
  7 +body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden}
  8 +#editor { margin: 0; padding: 0; width: 68%; height: 100%; overflow: hidden}
  9 +#entro { margin: 0; padding:0; width:32%; height: 100%; overflow: auto; position: absolute; top: 0px; left: 67%}
  10 +.center{ text-align: center}
10 11 </style>
11   -<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  12 +<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
  13 +<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
  14 +<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
12 15 <script>
13 16 (function () {
14 17 function check () {
@@ -41,11 +44,11 @@
41 44 var _sideBarShown = true;
42 45 function sideBar (show) {
43 46 if(_sideBarShown = (show === null ? !_sideBarShown : show)) {
44   - $("#editor").css("width", "65%");
45   - $("#entro").css("width", "35%");
  47 + $("#editor").css("width", "68%");
  48 + $("#entro").show();
46 49 }else{
47 50 $("#editor").css("width", "100%");
48   - $("#entro").css("width", "0px");
  51 + $("#entro").hide();
49 52 }
50 53 $("#editor")[0].bespin.dimensionsChanged();
51 54 }
@@ -65,46 +68,71 @@
65 68 </head>
66 69 <body>
67 70 <div id="editor" class="bespin" data-bespinoptions='{ "settings": { "tabstop": 2, "maxConsoleHeight": 150 }, "syntax": "js", "stealFocus": true }'>{CODE}</div>
68   -<div id="entro">
69   -<h2>Welcome to JsApp.US </h2><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://jsapp.us" data-text="JSApp.US: quick way to try #nodejs and host web based node application" data-count="horizontal" data-related="matthewfl">Tweet</a> <iframe src="http://www.facebook.com/plugins/like.php?app_id=195846027142636&amp;href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FJsApp%2F155238484554394&amp;send=false&amp;layout=button_count&amp;width=80&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:21px;" allowTransparency="true"></iframe> <g:plusone href="http://jsapp.us"></g:plusone></h2>
70   -<p>JsApp.US is a hosting platform for <a href="http://nodejs.org">node.js</a> applications. It is setup to be a platform to coddle to quick, weekend hack like projects.</p>
71   -<p>To get started you can run the test command from the bottom command line or press Control-b.</p>
72   -<br>
73   -Commands:
74   -<table border="0">
75   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#test" cmd="test">test</a></td><td>Ctrl-b</td><td>Run a quick test of the current file</td></tr>
76   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#login_logout" cmd="login">login</a></td><td>Ctrl-l</td><td>Login</td></tr>
77   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#newuser" cmd="newuser">newuser</a></td><td></td><td>create a new user</td></tr>
78   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#new" cmd="new">new</a></td><td>Ctrl-n</td><td>create a blank file</td></tr>
79   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki" cmd="docs">docs</a></td><td>Ctrl-h</td><td>Open the document wiki</td></tr>
80   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#sidebar" cmd="sidebar">sidebar</a></td><td></td><td>Toggle the showing of the sidebar</td></tr>
81   -</table>
82   -<br>
83   -Login is required for:
84   -<table border="0">
85   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#share" cmd="share">share</a></td><td></td><td>Share a file using a short url</td></tr>
86   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#save" cmd="save">save</a></td><td>Ctrl-s</td><td>Save a file to the virtual file system</td></tr>
87   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#open" cmd="open">open</a></td><td>Ctrl-o</td><td>Open a file by name</td></tr>
88   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#list" cmd="ls">list/ls</a></td><td></td><td>List files on virtual file system</td></tr>
89   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#delete" cmd="rm">delete/rm</a></td><td></td><td>Delete a file from the virtual file system</td></tr>
90   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#rename" cmd="mv">rename/mv</a></td><td></td><td>Rename a file on the virtual file system</td></tr>
91   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#profile" cmd="profile">profile</a></td><td></td><td>Edit a user profile</td></tr>
92   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#files" cmd="files">files</a></td><td></td><td>Manage files on the virtual file system</td></tr>
93   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#deploy" cmd="deploy">deploy</a></td><td></td><td>Deploy a project to a subdomain for public viewing</td></tr>
94   - <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#login_logout" cmd="logout">logout</a></td><td>Ctrl-l</td><td></td></tr>
95   -</table>
96   -<br>
97   -<a href="#" onclick="sideBar(false);">Hide this sidebar</a>
98   -<br>
99   -<a href="https://github.com/matthewfl/node-host/wiki/Api" target="_blank">Database API</a>
100   -<br><a href="https://github.com/matthewfl/node-host/issues" target="_blank">Issue tracking</a>
101   -<br><a href="https://groups.google.com/group/jsapp-us" target="_blank">Mailing list</a>
102   -<br><a href="http://matthewfl.com/category/jsapp-us" target="_blank">Blog</a>
103   -</div>
104   -<script>
105   - $.getScript('http://platform.twitter.com/widgets.js');
106   - $.getScript('https://ssl.google-analytics.com/ga.js');
107   - $.getScript('https://apis.google.com/js/plusone.js');
108   -</script>
  71 +<div id="entro" data-role="page">
  72 + <div data-role="header">
  73 + <a data-role="button" data-icon="star" href="#" onclick="window.external.AddFavorite(location.href, document.title);">Bookmark</a>
  74 + <h3>JsApp.US</h3>
  75 + <a data-role="button" data-icon="delete" href="#" onclick="sideBar(false);">Hide</a>
  76 + <div class="center">
  77 + <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://jsapp.us" data-text="JSApp.US: quick way to try #nodejs and host web based node application" data-count="horizontal" data-related="matthewfl">Tweet</a>
  78 + <iframe src="http://www.facebook.com/plugins/like.php?app_id=195846027142636&amp;href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FJsApp%2F155238484554394&amp;send=false&amp;layout=button_count&amp;width=80&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:21px;" allowTransparency="true"></iframe>
  79 + <g:plusone href="http://jsapp.us"></g:plusone>
  80 + </div>
  81 + </div>
  82 + <div data-role="content" role="main">
  83 + <p>JsApp.US is a hosting platform for <a href="http://nodejs.org">node.js</a> applications. It is setup to be a platform to coddle to quick, weekend hack like projects.</p>
  84 + <p>To get started you can run the test command from the bottom command line or press <kbd>Control-b</kbd>.</p>
  85 + <ul data-role="listview" data-inset="true">
  86 + <li data-role="list-divider" role="heading">
  87 + <h2>Commands:</h2></li>
  88 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#test" cmd="test">test <kbd>Ctrl-b</kbd>
  89 + <p><br>Test current file</p></a></li>
  90 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#login_logout" cmd="login">login <kbd>Ctrl-l</kbd>
  91 + <p><br>Login</p></a></li>
  92 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#newuser" cmd="newuser">newuser
  93 + <p><br>Create a new user</p></a></li>
  94 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#new" cmd="new">new <kbd>Ctrl-n</kbd>
  95 + <p><br>Create a blank file</p></a></li>
  96 + <li><a href="https://github.com/matthewfl/node-host/wiki" cmd="docs">docs <kbd>Ctrl-h</kbd>
  97 + <p><br>Open the documentation wiki</p></a></li>
  98 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#sidebar" cmd="sidebar">sidebar
  99 + <p><br>Toggle the showing of the sidebar</p></a></li>
  100 + </ul>
  101 + <div data-role="collapsible" data-collapsed="false">
  102 + <h3>Login is required for:</h3>
  103 + <ul data-role="listview" data-inset="true">
  104 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#share" cmd="share">share
  105 + <p><br>Share a file using a short url</p></a></li>
  106 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#save" cmd="save">save <kbd>Ctrl-s</kbd>
  107 + <p><br>Save a file to the virtual file system</p></a></li>
  108 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#open" cmd="open">open <kbd>Ctrl-o</kbd>
  109 + <p><br>Open a file by name</p></a></li>
  110 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#list" cmd="ls">list/ls
  111 + <p><br>List files on virtual file system</p></a></li>
  112 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#delete" cmd="rm">delete/rm
  113 + <p><br>Delete a file from the virtual file system</p></a></li>
  114 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#rename" cmd="mv">rename/mv
  115 + <p><br>Rename a file on the virtual file system</p></a></li>
  116 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#profile" cmd="profile">profile
  117 + <p><br>Edit a user profile</p></a></li>
  118 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#files" cmd="files">files
  119 + <p><br>Manage files on the virtual file system</p></a></li>
  120 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#deploy" cmd="deploy">deploy
  121 + <p><br>Deploy a project to a subdomain for public viewing</p></a></li>
  122 + <li><a href="https://github.com/matthewfl/node-host/wiki/Commands#login_logout" cmd="logout">logout <kbd>Ctrl-l</kbd></a></li>
  123 + </ul>
  124 + </div>
  125 + </div>
  126 + <div data-role="footer" class="center">
  127 + <a href="https://github.com/matthewfl/node-host/wiki/Api" target="_blank">DB API</a>
  128 + <a href="https://github.com/matthewfl/node-host/issues" target="_blank">Issue tracking</a>
  129 + <a href="https://groups.google.com/group/jsapp-us" target="_blank">Mailing list</a>
  130 + <a href="http://matthewfl.com/category/jsapp-us" target="_blank">Blog</a></div>
  131 + </div>
  132 + <script>
  133 + $.getScript('http://platform.twitter.com/widgets.js');
  134 + $.getScript('https://ssl.google-analytics.com/ga.js');
  135 + $.getScript('https://apis.google.com/js/plusone.js');
  136 + </script>
109 137 </body>
110 138 </html>

0 comments on commit 1389e86

Please sign in to comment.
Something went wrong with that request. Please try again.