Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added the beginnings of a js port

  • Loading branch information...
commit cc293c67ef0cec00f357e782768f8adcb4911046 1 parent fda6b40
@mattknox authored
Showing with 30 additions and 0 deletions.
  1. +30 −0 index.html
View
30 index.html
@@ -0,0 +1,30 @@
+<html>
+ <head>
+ <title>
+ front page for goaloc.js
+ </title>
+ <script src="http://code.jquery.com/jquery-1.4.4.js"></script>
+ </script>
+ </head>
+ <body id="repl0">
+ <p>
+ <h3>js goaloc</h3>
+ <div id="log">
+ </div>
+ <form>
+ <input id="repl">
+ </input>
+ </form>
+ </p>
+ <script>
+ $('#repl').keypress(function(event) {
+ if(event.which == "13") {
+ alert(this.value);
+ }
+ });
+ $('#repl').click(function() {
+ $('#repl').keypress();
+ });
+ </script>
+ </body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.