Skip to content

Instantly share code, notes, and snippets.

@badosa
Last active November 21, 2019 05:29
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