Skip to content

Instantly share code, notes, and snippets.

@badosa
Last active November 21, 2019 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save badosa/fd1552d2a0e5700c6953 to your computer and use it in GitHub Desktop.
Save badosa/fd1552d2a0e5700c6953 to your computer and use it in GitHub Desktop.
nonconst tbrowser() example

This is an example of the tbrowser() function with option nonconst equal to true. See it in its own webpage.

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/d/ed9665503abec4f542d1/style.css">
<script src="https://cdn.jsdelivr.net/combine/npm/jsonstat@0.13.13,npm/jsonstat-utils@2.5.5"></script>
</head>
<body>
<div id="tbrowser">Retrieving dataset...</div>
<script type="text/javascript">
JSONstat(
"https://json-stat.org/samples/galicia.json",
function(){
JSONstatUtils.tbrowser(
this,
document.getElementById("tbrowser"),
{
tblclass: "tbrowser",
preset: "smaller",
nonconst: true
}
);
}
);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment