Skip to content

Instantly share code, notes, and snippets.

@hedgehog1029
Created June 19, 2014 11:26
Show Gist options
  • Save hedgehog1029/eb055c7ef96a6173718e to your computer and use it in GitHub Desktop.
Save hedgehog1029/eb055c7ef96a6173718e to your computer and use it in GitHub Desktop.
SociaMe code
<html>
<head>
<script type="text/javascript" src ="https://cdn.firebase.com/js/client/1.0.15/firebase.js"></script>
<script type="text/javascript">
var planner = new Firebase("https://sociame.firebaseio.com/users/JohnSmith/planner");
planner.on('value', function(snapshot) {
document.getElementById("title").innerHTML(snapshot.value().name);
}
</script>
</head>
<body>
<p id="title">test</p>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment