-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheditor.html
More file actions
30 lines (26 loc) · 787 Bytes
/
Copy patheditor.html
File metadata and controls
30 lines (26 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<html>
<head>
<!-- Import the CSS -->
<link rel="stylesheet" type="text/css" href="./swagger.css">
<!-- Define the manifest (null if you want it loaded later) -->
<script type="text/javascript">
let manifest = null;
let EDITABLE = true;
</script>
<!-- Import the swagger module -->
<script type="module">
import * as swagger from './swagger.js';
window.onload = function() {
// Load a manifest, and once it's loaded - call a function().
swagger.load_manifest('./examples/manifest.json', function() {
swagger.load_urls(manifest['urls'], document.getElementById('table'));
swagger.add_empty_slot(document.getElementById('table'));
});
}
</script>
</head>
<body>
<div class="table" id="table">
</div>
</body>
</html>