-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathquick_start.html
40 lines (37 loc) · 1.61 KB
/
quick_start.html
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
31
32
33
34
35
36
37
38
39
40
<html>
<head>
<title>Example: VanillaTreeViewer</title>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<style>
body { font-family: 'Helvetica' }
.heading { text-align: center; margin-top: 75px; }
.version { text-align: center; margin: 10px; }
.container { max-width: 800px; margin: 75px auto; }
</style>
<!-- Include VanillaTreeViewer JS and CSS -->
<script type="text/javascript" onload="VanillaTreeViewer.renderAll()" src="https://cdn.jsdelivr.net/gh/abhchand/[email protected]/dist/index.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/abhchand/[email protected]/dist/main.min.css">
</head>
<body>
<h3 class="heading">
<a href="https://abhchand.me/vanilla-tree-viewer/" target="_blank">VanillaTreeViewer</a> Example
</h3>
<p class="version">v2.1.1</p>
<div class='container'>
<!-- Define the list of files. The `.vtv` CSS class is required. -->
<ol class='vtv' data-language="javascript">
<!-- File 1 -->
<!-- File contents will be fetched from `data-url` -->
<li
data-path="lib/axios.js"
data-url="https://raw.githubusercontent.com/axios/axios/master/lib/axios.js">
</li>
<!-- File 2 -->
<!-- You can specify the file contents directly inside `<li>...</li>` -->
<!-- You can override syntax highlighting with `data-language` for this file -->
<li data-path="values.json" data-language="json">{ "foo": "bar" }</li>
</ol>
</div>
</body>
</html>