Skip to content

Instantly share code, notes, and snippets.

@DanielG
Created January 9, 2011 11:28
Show Gist options
  • Save DanielG/771614 to your computer and use it in GitHub Desktop.
Save DanielG/771614 to your computer and use it in GitHub Desktop.
<html>
<!-- <script type="text/javascript" src="SubscribingPasswordMe.js"></script> -->
<script type="text/javascript" src="../../scripts/require.js"></script>
<script>
require(['../../unhosted'], function(unhosted){
console.log(unhosted);
// Load blog post
//unhosted.importSub(SubscribingPasswordMe, "hardCodedSub");
//document.getElementById("blogpost").innerHTML= unhosted.get("hardCodedSub", "myFirstUnhostedBlogPost");
});
</script>
<body>
<h2>This code is only for demonstration and not safe to run in production.</h2>
<h2>Only run it in a local development environment, never on a public IP or production server.</h2>
<div id="blogpost">Loading unhosted json...</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment