Skip to content

Instantly share code, notes, and snippets.

@mcarbonneaux
Last active March 5, 2017 20:34
Show Gist options
  • Save mcarbonneaux/fa2696f2c6a9eb9e84d4b4762379604b to your computer and use it in GitHub Desktop.
Save mcarbonneaux/fa2696f2c6a9eb9e84d4b4762379604b to your computer and use it in GitHub Desktop.
JSON Resume Browser Render
<!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>
@mcarbonneaux
Copy link
Author

mcarbonneaux commented Mar 5, 2017

This page permit to render in browser a json resume from https://jsonresume.org/.

They render resume.json colocated with this html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment