Guest User

Untitled

a guest
Feb 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>W.O.P.R</title>
  6. <script type="text/javascript">
  7.  
  8. function textbox()
  9. {
  10. document.getElementById('logon').select();
  11. }
  12.  
  13. var reply = "";
  14.  
  15. function wopr()
  16.  
  17. {
  18.  
  19. username=(document.getElementById('logon').value)
  20.  
  21. if (username=="Joshua")
  22. {
  23. //document.forms["form2"].elements["answer"].value = ("Greetings, Professor Falken");
  24. reply = reply + " Greetings, Professor Falken";
  25. self.location="wargames_greetings.wav";
  26. }
  27.  
  28.  
  29. else
  30. {
  31. //document.getElementById('test').value = ("Identification not recognized by system--Connection terminated--");
  32.  
  33. reply = reply + " Identification not recognized by system<br />--Connection terminated--<br />";
  34.  
  35.  
  36. }
  37.  
  38. var answerDiv = document.getElementById("answer");
  39. answerDiv.innerHTML = reply;
  40. }
  41.  
  42.  
  43.  
  44. </script>
  45. <style type="text/css">
  46.  
  47. @-webkit-keyframes typing {
  48. from { width: 100% }
  49. to { width:0 }
  50. }
  51.  
  52. @-webkit-keyframes blink-caret {
  53. from, to { border-color: transparent }
  54. 50% { border-color: black }
  55. }
  56.  
  57. @-moz-keyframes typing {
  58. from { width: 100% }
  59. to { width:0 }
  60. }
  61.  
  62. @-moz-keyframes blink-caret {
  63. from, to { border-color: transparent }
  64. 50% { border-color: black }
  65. }
  66.  
  67. body {
  68. margin: 0px;
  69. padding: 0px;
  70. background-color: #000;
  71. }
  72. #wrapper {
  73. font-family: "Courier New", Courier, monospace;
  74. background-color: #000;
  75. clear: both;
  76. height: 500px;
  77. width: 500px;
  78. margin-right: auto;
  79. margin-left: auto;
  80. font-size: 18px;
  81. color: #6F6;
  82. }
  83. .formlogon {
  84. float: left;
  85. margin-top: 10px;
  86. width: 500px;
  87. }
  88.  
  89. p {
  90. position: relative;
  91. font-family: "Courier New", Courier, monospace;
  92. float: left;
  93. font-size:18px;
  94. color: #6f6;
  95. margin: 0px;
  96. padding: 0px;
  97. }
  98.  
  99. p span {
  100. position:absolute;
  101. top:0;
  102. right:0;
  103. width:0;
  104. background: black; /* same as background */
  105. border-left: .1em solid black;
  106.  
  107. -moz-box-sizing: border-box;
  108. box-sizing: border-box;
  109.  
  110. -webkit-animation: typing 0.5s steps(6, end), /* # of steps = # of characters */
  111. blink-caret 1s step-end infinite;
  112. -moz-animation: typing 0.5s steps(6, end), /* # of steps = # of characters */
  113. blink-caret 1s step-end infinite;
  114. }
  115. </style>
  116. </head>
  117.  
  118. <body onLoad="textbox()">
  119.  
  120. <div id="wrapper">
  121. <form class="formlogon" id="form1" name="form1" method="post" action="" onsumbit="wopr()" >
  122.  
  123. <p>Logon:<span>&nbsp;</span></p>
  124. <input style="background-color:#000; border-color:#000; border-width:0px; font-family:'Courier New', Courier, monospace; font-size:18px; color:#6f6;" type="text" name="logon" id="logon" onBlur="wopr()"/>
  125.  
  126. </form>
  127.  
  128.  
  129. <div id="answer"></div>
  130.  
  131.  
  132. <form class="formlogon" id="form3" name="form3" method="post" action="">
  133. <input style="background-color:#000; border-color:#000; border-width:0px; font-family:'Courier New', Courier, monospace; font-size:18px; color:#6f6" type="text" name="answer" id="answer" />
  134.  
  135. </form>
  136.  
  137.  
  138. </div>
  139. </body>
  140. </html>
Add Comment
Please, Sign In to add comment