Advertisement
Guest User

Untitled

a guest
Feb 17th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.89 KB | None | 0 0
  1. <html>
  2. <style>
  3. body {
  4. background-color: white;
  5. }
  6.  
  7. .menuBar {
  8. background-color: #fcd8a1;
  9. border-color: #fcd8a1;
  10. position: fixed;
  11. top: 0px;
  12. left: 0px;
  13. width: 100%;
  14. }
  15.  
  16. .menuBar a {
  17. float: right;
  18. color: black;
  19. text-align: center;
  20. padding: 16px 16px;
  21. text-decoration: none;
  22. font-size: 32;
  23. font-family: Tahoma;
  24. }
  25.  
  26. .menuBar a:hover, .dropBtn:hover {
  27. background-color: #ffcd11;
  28. color: white;
  29. }
  30.  
  31. .menuBar b {
  32. float: left;
  33. color: black;
  34. text-align: center;
  35. padding: 16px 16px;
  36. text-decoration: none;
  37. font-size: 32;
  38. font-family: Tahoma;
  39. }
  40.  
  41. .dropBtn {
  42. background-color: #fcd8a1;
  43. border:none;
  44. color: black;
  45. text-align: center;
  46. font-family: Tahoma;
  47. font-size: 32px;
  48. padding: 16px;
  49. }
  50.  
  51.  
  52. .dropBtn:hover, .dropBtn:focus {
  53. background-color: #ffcd11;
  54. }
  55.  
  56. .dropdown {
  57. position: relative;
  58. display: inline-block;
  59. float: right;
  60. }
  61.  
  62. .dropdownContent {
  63. display: none;
  64. position: absolute;
  65. background-color: #fcd8a1;
  66. min-width: 100px;
  67. overflow: auto;
  68. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  69. background-color: #ffcd11;
  70. z-index: 1;
  71. }
  72.  
  73. .dropdownContent a {
  74. color: black;
  75. text-decoration: none;
  76. background-color: #fcd8a1;
  77. display: block;
  78. }
  79.  
  80. .dropdown a:hover {
  81. background-color: #ffcd11;
  82. }
  83.  
  84. .box {
  85. height: 250px;
  86. width: 33%;
  87. background-color: #FFFFFF;
  88. border:1px solid black;
  89. font-family: Tahoma;
  90. position: absolute;
  91. left: 33%;
  92. top: 20%;
  93. border-radius: 12px;
  94. }
  95.  
  96. .gap {
  97. height: 20px;
  98. }
  99.  
  100. .gap2 {
  101. height: 10px;
  102. }
  103.  
  104. .createBtn {
  105. position: absolute;
  106. right: -0px;
  107. bottom: -30px;
  108. padding-bottom: 0px;
  109. height = 20px;
  110. width = 80px;
  111. font-family: Tahoma;
  112. background: rgba(0,0,0,0);
  113. color: black;
  114. padding: 5px 15px;
  115. text-align: center;
  116. font-size: 10pt;
  117. cursor: pointer;
  118. background-color: #FFFFFF;
  119. border:1px solid black;
  120. border-radius: 12px;
  121. }
  122.  
  123. .button2:hover {
  124. color: white;
  125. }
  126.  
  127. #signIn label {
  128. margin-left: 3%;
  129. display: inline-block;
  130. width: 150px;
  131. }
  132.  
  133. #firstName, #lastName, #jobTitle, #department, #phoneNumber, #confirm {
  134. width: 58%;
  135. margin-left: 5px;
  136. box-sizing: border-box;
  137. border: none;
  138. border-bottom: 2px solid #fcd8a1;
  139. font-family: Tahoma;
  140. }
  141.  
  142. .show {display: block;}
  143.  
  144. .timestamp {
  145. text-align: right;
  146. font-size: 32;
  147. position: fixed;
  148. right: 5px;
  149. top: 5px;
  150. font-family: Tahoma;
  151. }
  152.  
  153. .fontSizeButton {
  154.  
  155. background-color: #fcd8a1;
  156. border:none;
  157. color: black;
  158. text-align: center;
  159. font-family: Tahoma;
  160. font-size: 32px;
  161. padding: 16px;
  162.  
  163. }
  164. .fontSizeButton:hover {
  165. background-color: #ffcd11;
  166. }
  167.  
  168. </style>
  169.  
  170. <script>
  171. function startTime() {
  172. var today = new Date();
  173. var h = today.getHours();
  174. var m = today.getMinutes();
  175. h = checkTime(h);
  176. m = checkTime(m);
  177. document.getElementById('timestamp').innerHTML =
  178. "Operator Name - " + h + ":" + m ;
  179. var t = setTimeout(startTime, 500);
  180. }
  181. function checkTime(i) {
  182. if (i < 10) {i = "0" + i};
  183. return i;
  184. }
  185.  
  186. var increasetrue = true;
  187.  
  188.  
  189. function increaseFontSize() {
  190.  
  191. if (increasetrue == true) {
  192. document.getElementById("fontSizeButton").innerHTML = "aA&#818";
  193. document.getElementById("boxDiv").style.height = "300px";
  194.  
  195.  
  196. document.getElementById("firstNameLabel").style.fontSize = "18pt";
  197. document.getElementById("lastNameLabel").style.fontSize = "18pt";
  198. document.getElementById("jobTitleLabel").style.fontSize = "18pt";
  199. document.getElementById("departmentLabel").style.fontSize = "18pt";
  200. document.getElementById("phoneNumberLabel").style.fontSize = "18pt";
  201.  
  202. document.getElementById("firstName").style.fontSize = "18pt";
  203. document.getElementById("lastName").style.fontSize = "18pt";
  204. document.getElementById("jobTitle").style.fontSize = "18pt";
  205. document.getElementById("department").style.fontSize = "18pt";
  206. document.getElementById("phoneNumber").style.fontSize = "18pt";
  207.  
  208. document.getElementById("submitButton").style.fontSize = "16pt";
  209. document.getElementById("submitButton").style.bottom = "-40px";
  210.  
  211. increasetrue = false;
  212. }
  213.  
  214. else if (increasetrue == false){
  215. document.getElementById("fontSizeButton").innerHTML = "a&#818A";
  216. document.getElementById("boxDiv").style.height = "250px";
  217.  
  218.  
  219. document.getElementById("firstNameLabel").style.fontSize = "12pt";
  220. document.getElementById("lastNameLabel").style.fontSize = "12pt";
  221. document.getElementById("jobTitleLabel").style.fontSize = "12pt";
  222. document.getElementById("departmentLabel").style.fontSize = "12pt";
  223. document.getElementById("phoneNumberLabel").style.fontSize = "12pt";
  224.  
  225. document.getElementById("firstName").style.fontSize = "12pt";
  226. document.getElementById("lastName").style.fontSize = "12pt";
  227. document.getElementById("jobTitle").style.fontSize = "12pt";
  228. document.getElementById("department").style.fontSize = "12pt";
  229. document.getElementById("phoneNumber").style.fontSize = "12pt";
  230.  
  231. document.getElementById("submitButton").style.fontSize = "10pt";
  232. document.getElementById("submitButton").style.bottom = "-30px";
  233.  
  234. increasetrue = true ;
  235.  
  236.  
  237. }
  238. }
  239.  
  240. </script>
  241.  
  242. <head>
  243. <title>Create Account</title>
  244. </head>
  245.  
  246. <body onload="startTime()">
  247.  
  248. <div id="menuBar" class="menuBar">
  249. <b style="float: left;">Make-It-All</b>
  250. <div class="dropdown">
  251. <b style="font-weight:normal" id="timestamp"></b>
  252. </div>
  253. <div class="dropdown">
  254. <button onclick="problemDropdown()" class="dropBtn">Menu</button>
  255. <div id="problemDropdown" class="dropdownContent">
  256. <a href="/addproblem">New Problem</a>
  257. <a href="/loadproblem">Load Problem</a>
  258. <a href="/createaccount">Create Account</a>
  259. <a href="/login">Logout</a>
  260. </div>
  261. </div>
  262. <div>
  263. <button id="fontSizeButton" type="submit" class="fontSizeButton" onclick="increaseFontSize()" >a&#818A</button>
  264. </div>
  265.  
  266. </div>
  267.  
  268. <div id="boxDiv" class="box">
  269. <form id="signIn">
  270. <div class="gap"></div>
  271. <label id="firstNameLabel" for="firstName">First Name:</label>
  272. <input type="text" id="firstName" name="firstName">
  273. <div class="gap"></div>
  274. <label id="lastNameLabel" for="lastName">Last Name:</label>
  275. <input type="text" id="lastName" name="lastName">
  276. <div class="gap"></div>
  277. <label id="jobTitleLabel" for="jobTitle">Job Title:</label>
  278. <input type="text" id="jobTitle" name="jobTitle">
  279. <div class="gap"></div>
  280. <label id="departmentLabel" for="department">Department:</label>
  281. <input type="text" id="department" name="department">
  282. <div class="gap"></div>
  283. <label id="phoneNumberLabel" for="phoneNumber">Phone Number:</label>
  284. <input type="text" id="phoneNumber" name="phoneNumber">
  285. </form>
  286. <a href="/menu"><button id="submitButton" class="createBtn">Create</button></a>
  287. </div>
  288.  
  289. <script>
  290. /* When the user clicks on the button,
  291. toggle between hiding and showing the dropdown content */
  292. function problemDropdown() {
  293. document.getElementById("problemDropdown").classList.toggle("show");
  294. }
  295.  
  296. function userDropdown() {
  297. document.getElementById("userDropdown").classList.toggle("show");
  298. }
  299.  
  300. // Close the dropdown if the user clicks outside of it
  301. window.onclick = function(event) {
  302. if (!event.target.matches('.dropBtn')) {
  303. var dropdowns = document.getElementsByClassName("dropdownContent");
  304. var i;
  305. for (i = 0; i < dropdowns.length; i++) {
  306. var openDropdown = dropdowns[i];
  307. if (openDropdown.classList.contains('show')) {
  308. openDropdown.classList.remove('show');
  309. }
  310. }
  311. }
  312. }
  313. </script>
  314. </body>
  315. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement