Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 23rd, 2012  |  syntax: JavaScript  |  size: 0.79 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <html>
  2. <head>
  3.         <title>robo-speek converter</title>
  4.         <script type="text/javascript">        
  5.                 function convertString() {     
  6.                         if (userInput == "") {                 
  7.                                 console.log("asdf");
  8.                         }
  9.                 }
  10.                
  11.                 function doIt() {                      
  12.                         if (userInput == 1) {
  13.                                 document.getElementById("outputArea").innerHTML = "Please enter a string to be converted in the text area and hit submit.";
  14.                                 document.getElementById("submitButton").onclick = convertString;
  15.                         }
  16.                 }
  17.         </script>
  18. </head>
  19. <body>
  20.         <h1>Robo-speek converter</h1>
  21.         <input type="text" id="inputArea" />
  22.         <input type="submit" id="submitButton" onclick="doIt()" />
  23.         <p id="outputArea">Please enter 1 and hit submit to enter in a string, 2 to convert an already entered string, 3 to output the converted string, or exit to quit the program.</p>
  24. </body>
  25. </html>