Guest User

Untitled

a guest
Nov 12th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.76 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Resumaker</title>
  5. <link rel="stylesheet" type="text/css" href="main.css">
  6. <script type="text/javascript" src = "main_test.js"></script>
  7. </head>
  8. <body>
  9.  
  10. <header>
  11. <nav>
  12. <h1> RESUMAKER </h1>
  13. <ul>
  14. <li style="float:right"><a class = "active"
  15. href="build.html" target="_blank"><span> Build a Resume </span></a></li>
  16. <li><a href="createaccount.html" target="_blank"><span>
  17. Create Account </span></a></li>
  18. <li><a href="signin.html" target="_blank"><span> Sign in
  19. </span></a></li>
  20. <li><a href="resources.html" target="_blank"><span>
  21. Resources </span></a></li>
  22. <li><a href="contacts.html" target="_blank"><span> Talk to
  23. us </span></a></li>
  24. </ul>
  25. </nav>
  26. </header>
  27.  
  28. <h1 class = "third"><strong> Build your resume here! </strong></h1>
  29.  
  30. <h2 class = "fourth"> YOUR PERSONAL INFO </h2>
  31.  
  32. <form autocomplete="on" method="post" class = "fourth">
  33. <input onclick="saveFormAsTextFile()" type="button" value = "Make your
  34. resume" />
  35. <input type="reset"><br><br>
  36. <label for = "first_name"> <br><b>First name:</b> </label>
  37. <input type="text" name="first_name" id = "first_name"
  38. placeholder="John" autofocus /><br>
  39. <label for = "last_name"> <b>Last name:</b> </label>
  40. <input type="text" name="last_name" id = "last_name" placeholder="Doe"
  41. /><br>
  42. <label for = "user_email"> <b>Email:</b> </label>
  43. <input type="email" name="user_email" id = "user_email"
  44. placeholder="johndoe@gotham.com" autocomplete="off" /><br>
  45. <label for = "phone_number"> <b>Phone Number:</b> </label>
  46. <input name="phone_number" type="number" id = "phone_number"
  47. placeholder="(987)-654-3210" /><br>
  48. <label for = "location"> <b>Location:</b> </label>
  49. <input type="text" name="location" id = "location" placeholder="Gotham
  50. City" autofocus /><br>
  51. <label for = "linkedin"> <b>LinkedIn:</b> </label>
  52. <input type="url" name="linkedin" id = "linkedin" autofocus /><br>
  53. <label for="filename"> <b>Filename</b></label>
  54. <input type = "text" id="filename" value="" size="40"
  55. placeholder="title.md">
  56. <br/><br/>
  57. </form>
  58.  
  59. <br><h2 class = "fourth"> YOUR EDUCATIONAL BACKGROUND </h2>
  60.  
  61. <form autocomplete="on" method="post" class = "fourth">
  62. <label for = "heading1"> <b>Section Heading: </b></label>
  63. <input type="text" name="heading1" id="heading1" placeholder="Education"
  64. ><br>
  65. <label for = "school_name"> <b>School Name:</b></label>
  66. <input type="text" name="school_name" id="school_name"
  67. placeholder="Gotham University"><br>
  68. <label for = "school_location"> <b>School Location:</b></label>
  69. <input type="text" name="school_location" id="school_location"
  70. placeholder="Gotham City"><br>
  71. <label for = "degree"> <b>Degree:</b></label>
  72. <input type="text" name="degree" id="degree" placeholder="B.S."><br>
  73. <label for = "major"> <b>Major:</b></label>
  74. <input type="text" name="major" autocomplete="off" id="major"
  75. placeholder="Chemical Engineering"><br>
  76. <label for = "gpa"> <b>GPA:</b></label>
  77. <input type="number" name="gpa" id="gpa" placeholder="Out of 4.0"><br>
  78. <label for = "start_date"> <b>Start Date:</b></label>
  79. <input type="month" name="start_date" id="start_date" value="2018-07-22"
  80. /><br>
  81. <label for = "end_date"> <b>End Date:</b></label>
  82. <input type="month" name="end_date" id="end_date" value="2018-07-22" />
  83.  
  84. <form autocomplete="on" method="post" class = "fourth">
  85. <label for = "heading2"> <b>Section Heading: </b></label>
  86. <input type="text" name="heading2" id = "heading_2" placeholder="Work
  87. Experience" ><br>
  88. <label for = "company_name"><b>Company Name:</b></label>
  89. <input type="text" name="company_name" id = "company_name"
  90. placeholder="Detective Comics"><br>
  91. <label for = "job_location"><b>Job Location:</b></label>
  92. <input type="text" name="job_location" id = "job_location"
  93. placeholder="Gotham City"><br>
  94. <label for = "job_title"><b>Job Title:</b></label>
  95. <input type="text" name="job_title" id = "job_title" placeholder="B.S.">
  96. <br>
  97. <label for = "job_responsibilities"><b>Job Responsibilities:</b></label>
  98. <input name="job_responsibilities" id = "job_responsibilities"
  99. type="text"><br><br>
  100. <label for = "start_date"><b>Start Date:</b></label>
  101. <input type="month" name="start_date" id = "start_date" value="2018-07-
  102. 22" /><br>
  103. <label for = "end_date"><b>End Date:</b></label>
  104. <input type="month" name="end_date" id ="end_date" value="2018-07-22" />
  105. <br><br><br>
  106. </form>
  107.  
  108. </body>
  109. </html>
  110.  
  111. function saveFormAsTextFile()
  112.  
  113. {
  114. var textToSave =
  115. 'rnn'+
  116. 'First Name: ' + document.getElementById('first_name').value + ' rn'
  117. +
  118. 'Last Name: ' + document.getElementById('last_name').value + ' rn' +
  119. 'Email: ' + document.getElementById('user_email').value + ' rn' +
  120. 'Phone Number: ' + document.getElementById('phone_number').value + '
  121. rn' +
  122. 'Location: ' + document.getElementById('location').value + ' rn' +
  123. 'LinkedIn: ' + document.getElementById('linkedin').value + ' rn'
  124. 'School Name: ' + document.getElementById('school_name').value + '
  125. rn';
  126.  
  127. var textToSaveAsBlob = new Blob([textToSave], {type:"text/plain"});
  128. var textToSaveAsURL = window.URL.createObjectURL(textToSaveAsBlob);
  129. var fileNameToSaveAs = document.getElementById("filename").value;
  130.  
  131. var downloadLink = document.createElement("a");
  132. downloadLink.download = fileNameToSaveAs;
  133. downloadLink.innerHTML = "Download File";
  134. downloadLink.href = textToSaveAsURL;
  135. downloadLink.onclick = destroyClickedElement;
  136. downloadLink.style.display = "none";
  137. document.body.appendChild(downloadLink);
  138.  
  139. downloadLink.click();
  140.  
  141. }
  142.  
  143. function destroyClickedElement(event)
  144. {
  145. document.body.removeChild(event.target);
  146. }
Add Comment
Please, Sign In to add comment