Skip to content

Instantly share code, notes, and snippets.

@keshavsaharia
Created May 3, 2015 22:02
Show Gist options
  • Save keshavsaharia/27593a06e382553d63d9 to your computer and use it in GitHub Desktop.
Save keshavsaharia/27593a06e382553d63d9 to your computer and use it in GitHub Desktop.
<!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>
@banoop
Copy link

banoop commented May 3, 2015

elias is da best

@banoop
Copy link

banoop commented May 3, 2015

hi guys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment