-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
32 lines (27 loc) · 1 KB
/
test.html
File metadata and controls
32 lines (27 loc) · 1 KB
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" ;="" charset="utf-8">
<title>SmartTree - TEST</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta content="width=device-width, initial-scale=1" name="viewport" />
<script type="text/javascript" src="./stclass.js"></script>
<script type="text/javascript">
let tree = new Tree();
let central = tree.root.addChild('CENTRAL TOPIC');
let firstTopic = central.addChild('First Topic');
let firstSubTopic = firstTopic.addChild('First Sub Topic');
firstTopic.addChild('Second Sub Topic');
firstTopic.addChild('Three Sub Topic');
let subSubTopic = firstSubTopic.addChild('Sub Sub Topic');
let helloTopic = central.addChild('hello');
helloTopic.addChild('Ivan');
helloTopic.addChild('Petr');
helloTopic.addChild('Sidr');
let str = tree.asString();
alert(str);
</script>
</head>
<body>
</body>
</html>