Permalink
Browse files

first import

  • Loading branch information...
0 parents commit e98c43cbe16717da994046afded0abcb2a23bbaa @marianoguerra committed Dec 10, 2009
Showing with 1,023 additions and 0 deletions.
  1. +1 −0 README
  2. +54 −0 css/master.css
  3. +32 −0 index.html
  4. +19 −0 jquery.js
  5. +19 −0 js/jquery.js
  6. +478 −0 js/json2.js
  7. +57 −0 js/ui.js
  8. +49 −0 js/ws.js
  9. +81 −0 server.py
  10. +117 −0 webless.html
  11. +116 −0 webless.py
1 README
@@ -0,0 +1 @@
+you need tubes in this directory for webless to work (http://github.com/marianoguerra/tubes)
@@ -0,0 +1,54 @@
+html, body, div, span{
+ margin: 0;
+ padding: 0;
+}
+
+body{
+ color: #333;
+ font-family: arial;
+}
+
+fieldset{
+ width: 80%;
+ margin-left: 10%;
+ margin-top: 2em;
+ border: 1px solid #555;
+}
+
+button{
+ border: 1px solid #555;
+ background-color: #fff;
+}
+
+p{
+ display: table;
+ width: 100%;
+}
+
+label{
+ width: 40%;
+ float: left;
+ margin-bottom: 1em;
+}
+
+input{
+ width: 40%;
+ float: right;
+ border: 1px solid #555;
+}
+
+textarea{
+ width: 100%;
+ border: 1px solid #555;
+}
+
+#buttons{
+ float: right;
+ margin: 0.5em;
+}
+
+#send-result, #test-result{
+ width: 80%;
+ margin-left: 10%;
+ margin-top: 2em;
+}
@@ -0,0 +1,32 @@
+<html>
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+
+ <title>Webless</title>
+ <link rel="stylesheet" href="/css/master.css" type="text/css" media="screen" charset="utf-8"/>
+
+ <script type="text/javascript" src="/js/json2.js"></script>
+ <script type="text/javascript" src="/js/jquery.js"></script>
+ <script type="text/javascript" src="/js/ws.js"></script>
+ <script type="text/javascript" src="/js/ui.js"></script>
+ </head>
+
+ <body>
+ <fieldset id="script">
+ <legend>webless</legend>
+ <p><label for="url">url</label><input type="text" name="url" value="" id="url"/></p>
+ <p>code (can use json2.js and jquery.js)</p>
+ <textarea rows="15" cols="40" id="code"></textarea>
+ <div id="buttons">
+ <button onclick="ui.sendCode();">Send</button>
+ <button onclick="ui.testCode();">Test</button>
+ </div>
+ </fieldset>
+
+ <div id="test-result">
+ </div>
+
+ <div id="send-result">
+ </div>
+ </body>
+</html>

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit e98c43c

Please sign in to comment.