index.ejs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Sendd</title>
  5. <link rel='stylesheet' href='/stylesheets/style.css' />
  6. <script src="http://cdn.peerjs.com/0.3/peer.js"></script>
  7. <script type="text/javascript" src="/javascripts/index.js"></script>
  8. </head>
  9. <body>
  10. <h1>Sendd</h1>
  11. <p>Welcome to Sendd, a simple, direct file sender.</p>
  12. <h3>Receive a file</h3>
  13. <table border="1" width="100%" id="file_table">
  14. <thead>
  15. <tr>
  16. <td colspan="4">Files sent to you:</td>
  17. </tr>
  18. </thead>
  19. <tfoot>
  20. <tr>
  21. <p></p>
  22. <td colspan="4">My ID: <strong id="my_id"></strong></td>
  23. </tr>
  24. </tfoot>
  25. <tbody>
  26. <tr id="empty_row">
  27. <td colspan=4><i>No Files...</i></td>
  28. </tr>
  29. <tr>
  30. </tr>
  31. </tbody>
  32. </table>
  33. <h3>Send a file</h3>
  34. <input type="file" id="file_to_send"><br/><br/>
  35. <label>Destination ID (ask your reciever to send it to you):</label><br/>
  36. <input type="text" id="dest_id"></br></br>
  37. <button type="button" onclick="send();">Send</button>
  38. </body>
  39. </html>