Skip to content

Instantly share code, notes, and snippets.

@JPalounek
Created July 29, 2012 18:32
Show Gist options
  • Save JPalounek/3200889 to your computer and use it in GitHub Desktop.
Save JPalounek/3200889 to your computer and use it in GitHub Desktop.
Instaedit demo file
<html>
<head>
<meta charset="utf-8" />
<title>Instaedit demo</title>
<script>
window.onload = function () {
document.getElementById('instaedit-edit').onclick = function () {
(function () {
var th = document.getElementsByTagName('head')[0];
var s = document.createElement('script');
s.setAttribute('type', 'text/javascript');
s.setAttribute('src', '../src/instaedit.js');
th.appendChild(s);
})();
}
}
</script>
<meta name="instaedit-repo" content="https://raw.github.com/binaryage/blog/gh-pages">
<meta name="instaedit-parser" content="https://raw.github.com/binaryage/instaedit/master/demo/js/parser-example.js">
</head>
<body>
<h1> Instaedit demo </h1>
<section id="content1" data-origin="/_posts/2012-04-26-totalspaces-brings-back-grid-spaces.md">
Click edit to edit site with source located in - https://raw.github.com/JPalounek/Guntest/master/tests.log
<br><br>
</section>
<div id="content2" data-origin="/_posts/2012-04-07-hello-san-francisco.md">
Click edit to edit site with source located in - https://raw.github.com/binaryage/blog/gh-pages/_posts/2012-04-07-hello-san-francisco.md
<br><br>
</div>
<button id="instaedit-edit">Edit</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment