index.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <!--
  3. This file is part of Resumer
  4. Copyright (C) 2016 Sylvia van Os
  5. Resumer is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU Affero General Public License as
  7. published by the Free Software Foundation, either version 3 of the
  8. License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU Affero General Public License for more details.
  13. You should have received a copy of the GNU Affero General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. -->
  16. <html lang="en">
  17. <head>
  18. <title>R&eacute;sum&eacute;r</title>
  19. <link rel="stylesheet" type="text/css" href="templates/common.css">
  20. <link rel="stylesheet" type="text/css" href="templates/index.css">
  21. </head>
  22. <body>
  23. <form id="content" action="generate.php" method="post">
  24. <div class="space">
  25. <p>What's your name?</p>
  26. <input type="text" name="name" />
  27. </div>
  28. <div id="entries">
  29. <p>What services are you on?</p>
  30. </div>
  31. <button id="addEntry" type="button">Add service</button>
  32. <input type="submit" value="Generate" />
  33. </form>
  34. <p><small><em>Powered by <a href="source.html">R&eacute;sum&eacute;r</a></em></small></p>
  35. <script type="text/javascript">
  36. var services = 0;
  37. var addService = function() {
  38. var entries = document.getElementById("entries");
  39. var entry = document.createElement("div");
  40. entry.className = "space";
  41. entry.innerHTML = '<input type="text" name="services[' + services + '][username]">' +
  42. '<select name="services[' + services + '][name]">' +
  43. ' <option value="GitHub">GitHub</option>' +
  44. '</select>';
  45. entries.appendChild(entry);
  46. services++;
  47. };
  48. document.getElementById("addEntry").onclick = addService;
  49. addService();
  50. </script>
  51. </body>
  52. </html>