index.ejs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. <img src='images/sendd_logo.png'/>
  11. <h1>Sendd</h1>
  12. <p>Welcome to Sendd, a simple, direct file sender.</p>
  13. <h3>Receive a file</h3>
  14. <table border="1" width="100%" id="file_table">
  15. <thead>
  16. <tr>
  17. <td colspan="4">Files sent to you:</td>
  18. </tr>
  19. </thead>
  20. <tfoot>
  21. <tr>
  22. <p></p>
  23. <td colspan="4">My ID: <strong id="my_id"></strong></td>
  24. </tr>
  25. </tfoot>
  26. <tbody>
  27. <tr id="empty_row">
  28. <td colspan=4><i>No Files...</i></td>
  29. </tr>
  30. <tr>
  31. </tr>
  32. </tbody>
  33. </table>
  34. <h3>Send a file</h3>
  35. <input type="file" id="file_to_send"><br/><br/>
  36. <label>Destination ID (ask your reciever to send it to you):</label><br/>
  37. <input type="text" id="dest_id"></br></br>
  38. <button type="button" onclick="send();">Send</button>
  39. </body>
  40. </html>