Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
114 lines (110 sloc) 6.19 KB
<!DOCTYPE html>
<script>if(location.hash[1] == "s") location.href="/s/"+location.hash.substring(2);</script>
html {margin: 0;padding: 0;width: 100%;height: 100%;}
body {margin: 0;padding: 0;width: 100%;height: 100%;overflow: hidden;}
#editor { margin: 0; padding: 0; width: 65%; height: 100%; overflow: hidden;}
#entro { margin: 0; padding:0 width:32%; height: 100%; overflow: auto; position: absolute; top: 0px; left: 66% }
<script src=""></script>
(function () {
function check () {
var can = document.createElement('canvas');
if (typeof can.getContext != "function") return false;
var ctx = can.getContext("2d");
return !!(ctx.fillText || ctx.mozDrawText)
if(!check()) {
alert("your browsers is not supported")
$(function () {
$("#editor").css("width", "0px");
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-504603-3']);
_gaq.push(['_setDomainName', '']);
<link id="bespin_base" href="/"/>
<link href="/BespinEmbedded.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="/BespinEmbedded.js"></script>
var commandLine=null;
var _sideBarShown = true;
function sideBar (show) {
if(_sideBarShown = (show === null ? !_sideBarShown : show)) {
$("#editor").css("width", "65%");
$("#entro").css("width", "35%");
$("#editor").css("width", "100%");
$("#entro").css("width", "0px");
window.onBespinLoad = function () {
commandLine = $("#editor")[0].bespin.commandLine.execute;
$("a").live('click', function () {
var c = $(this).attr('cmd');
if(c) {
commandLine(c); // when null this will crash and the link will work
return false;
return true;
<div id="editor" class="bespin" data-bespinoptions='{ "settings": { "tabstop": 2, "maxConsoleHeight": 150 }, "syntax": "js", "stealFocus": true }'>{CODE}</div>
<div id="entro">
<h2>Welcome to JsApp.US <a href="" class="twitter-share-button" data-url="" data-text="JSApp.US: quick way to try #nodejs and host web based node application" data-count="none" data-related="matthewfl">Tweet</a></h2>
<p>JsApp.US is a hosting platform for <a href="">node.js</a> applications. It is setup to be a platform to coddle to quick, weekend hack like projects.</p>
<p>To get started you can run the test command from the bottom command line or press Control-b.</p>
<table border="0">
<tr><td><a href="" cmd="test">test</a></td><td>Ctrl-b</td><td>Run a quick test of the current file</td></tr>
<tr><td><a href="" cmd="login">login</a></td><td>Ctrl-l</td><td>Login</td></tr>
<tr><td><a href="" cmd="newuser">newuser</a></td><td></td><td>create a new user</td></tr>
<tr><td><a href="" cmd="new">new</a></td><td>Ctrl-n</td><td>create a blank file</td></tr>
<tr><td><a href="" cmd="docs">docs</a></td><td>Ctrl-h</td><td>Open the document wiki</td></tr>
<tr><td><a href="" cmd="sidebar">sidebar</a></td><td></td><td>Toggle the showing of the sidebar</td></tr>
Login is required for:
<table border="0">
<tr><td><a href="" cmd="share">share</a></td><td></td><td>Share a file using a short url</td></tr>
<tr><td><a href="" cmd="save">save</a></td><td>Ctrl-s</td><td>Save a file to the virtual file system</td></tr>
<tr><td><a href="" cmd="open">open</a></td><td>Ctrl-o</td><td>Open a file by name</td></tr>
<tr><td><a href="" cmd="ls">list/ls</a></td><td></td><td>List files on virtual file system</td></tr>
<tr><td><a href="" cmd="rm">delete/rm</a></td><td></td><td>Delete a file from the virtual file system</td></tr>
<tr><td><a href="" cmd="mv">rename/mv</a></td><td></td><td>Rename a file on the virtual file system</td></tr>
<tr><td><a href="" cmd="profile">profile</a></td><td></td><td>Edit a user profile</td></tr>
<tr><td><a href="" cmd="files">files</a></td><td></td><td>Manage files on the virtual file system</td></tr>
<tr><td><a href="" cmd="deploy">deploy</a></td><td></td><td>Deploy a project to a subdomain for public viewing</td></tr>
<tr><td><a href="" cmd="logout">logout</a></td><td>Ctrl-l</td><td></td></tr>
<a href="#" onclick="sideBar(false);">Hide this sidebar</a>
<a href="" target="_blank">Database API</a>
<br><a href="" target="_blank">Issue tracking</a>
<br><a href="" target="_blank">Mailing list</a>
<br><a href="" target="_blank">Blog</a>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
Jump to Line
Something went wrong with that request. Please try again.