Created
May 3, 2015 22:02
-
-
Save keshavsaharia/27593a06e382553d63d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
/* Style the things in the page */ | |
body { | |
} | |
button { | |
} | |
p { | |
} | |
</style> | |
</head> | |
<body> | |
<!-- The page --> | |
<button id="click"> | |
Click me | |
</button> | |
<p id="keshav">Keshav</p> | |
<p id="joe">Joe</p> | |
<!-- The JavaScript --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script src="https://cdn.firebase.com/js/client/2.2.4/firebase.js"></script> | |
<script type="text/javascript"> | |
var doc = $(document); | |
var firebase = new Firebase("https://fastfinger.firebaseio.com"); | |
var start; | |
// When everything is loaded on the page, do the setup function. | |
doc.ready(setup); | |
// Sets up the application. | |
function setup() { | |
} | |
// Changes the global variable "start". | |
function resetTimer() { | |
start = new Date().getTime(); | |
} | |
// Stops the timer. | |
function stopTimer() { | |
var end = new Date().getTime(); | |
} | |
// Code that is run whenever a line of data changes. | |
function timeChanged(line) { | |
var name = line.key(); | |
var ms = line.val(); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi guys