-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjson.html
More file actions
22 lines (22 loc) · 842 Bytes
/
json.html
File metadata and controls
22 lines (22 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://thunkable.github.io/webviewer-extension/thunkableWebviewerExtension.js" type="text/javascript"></script>
<script src="wordKeys.js"></script>
<script src="apiFunctions.js"></script>
<script src="lib/json-viewer/json-viewer.js"></script>
<link rel="stylesheet" type="text/css" href="lib/json-viewer/json-viewer.css">
</head>
<body>
<button onclick="clickHandler()">Get Random Puzzle</button>
<div id="json"></div>
</body>
<script>
var jsonViewer = new JSONViewer();
document.querySelector("#json").appendChild(jsonViewer.getContainer());
var clickHandler = function() {
jsonViewer.showJSON(getRandomPuzzle());
}
jsonViewer.showJSON(getRandomPuzzle());
</script>
</html>