Last active
March 5, 2017 20:34
-
-
Save mcarbonneaux/fa2696f2c6a9eb9e84d4b4762379604b to your computer and use it in GitHub Desktop.
JSON Resume Browser Render
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>CV</title> | |
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script> | |
$(document).ready(function($) { | |
var theme = "flat"; | |
var hash = window.location.hash; | |
if (hash != "") { | |
theme = hash.replace("#", ""); | |
} | |
$.getJSON("resume.json", function(data) { | |
$.ajax({ | |
type: "POST", | |
contentType: "application/json", | |
data: JSON.stringify({resume: data}, null, " "), | |
url: "https://themes.jsonresume.org/" + theme, | |
success: function(html) { | |
document.write(html); | |
} | |
}); | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This page permit to render in browser a json resume from
https://jsonresume.org/
.They render
resume.json
colocated with this html.