Commits

wjzz committed 5ebcd5e Draft

Stubbed the main page.

Comments (0)

Files changed (2)

Erlang/www/start.html

+<!DOCTYPE html5>
+<html>
+  <head>
+    <charset uft8>
+    <script type="text/javascript" src="lib/jquery.js"></script>
+    <script type="text/javascript" src="lib/ajaxupload.3.6.js"></script>
+    <script type="text/javascript" src="start.js"></script>
+
+    <title>MiniTorrent start page</title>
+
+    <style type="text/css" media="screen">
+      #new_torrent {
+        //float: none;
+      }
+
+      #new_torrent_form {
+        //float: left;
+      }
+
+      #torrent_info {
+        //float: left;
+        margin-left: 200px;
+      }
+  
+    </style>
+  </head>
+  <body>
+    <h1>MiniTorrent start page</h1>
+
+    <h2>Start a new download</h2>
+
+    <div id="new_torrent">
+  
+      <div id="new_torrent_form">
+        <p>Select torrent file:
+          <input id="new_torrent_file" type="file"/>
+        </p>
+        
+        <p>Select download destination:
+          <input id="new_torrent_dest_input" type="text" value="" />
+          <button id="new_torrent_dest_find_button">Find file</button>
+        </p>
+
+        <p>
+          <button id="new_torrent_start">Start download</button>
+        </p>
+      </div> 
+
+      <div id="torrent_info">
+        TORRENT INFO
+      </div>
+    
+    </div>
+
+    <hr />
+
+    <div>
+
+      <h2>Resume a previous download</h2>
+
+    </div>
+
+    <!-- TODO -->
+
+  </body>
+</html>
+
+
+// setup some basic callbacks
+function document_setup(){
+
+}
+
+
+$(document).ready(function(){
+
+    document_setup();
+
+});