Skip to content

Instantly share code, notes, and snippets.

@leonardosantos
Created August 11, 2014 04:06
Show Gist options
  • Save leonardosantos/005e9706e0948254bfe5 to your computer and use it in GitHub Desktop.
Save leonardosantos/005e9706e0948254bfe5 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Markdown for restazero</title>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
var pathname = location.pathname;
if (pathname == '/' || pathname == '')
pathname = '/md/README.md'
$.get('//restazero.herokuapp.com'+pathname, function(content){
document.write("<xmp theme='united' style='display:none;'>"+content+"</xmp>");
}).fail(function(){
document.write("<xmp theme='united' style='display:none;'># Error</xmp>");
}).always(function(){
document.write("<scr"+"ipt src='//strapdownjs.com/v/0.2/strapdown.js'></scr"+"ipt>");
});
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment