Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dotspencer/e1a230db146aee56de7e34144f70ec69 to your computer and use it in GitHub Desktop.
Save dotspencer/e1a230db146aee56de7e34144f70ec69 to your computer and use it in GitHub Desktop.
<span id="status"></span>
<script>
var url = "/api/research.json";
var num = "{num}";
num = num.toUpperCase();
jQuery.getJSON(url, getStatus);
function getStatus(data){
jQuery("#status").text(data[num].status);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment