Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
jdfreder committed Feb 22, 2015
1 parent ce393f5 commit 992a6b8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ping.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<head>
<script src="./ping.js"></script>
<script>
var do_ping = function() {
ping(document.getElementById('pingurl').value).then(function(delta) {
alert(delta);
}).catch(function(error) {
alert(String(error));
});
};
</script>
</head>
<body>
<input id='pingurl' type='text' value='http://google.com'></input>
<button onclick='do_ping()'>Ping</button>
</body>

0 comments on commit 992a6b8

Please sign in to comment.