-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (78 loc) · 2.32 KB
/
index.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<style type="text/css" media="screen">
#graphDiv{
border-left: 1px solid black;
max-height: 100%;
float: right;
}
svg{
height: 100%;
width: 100%;
}
input{
width: 275px;
height:50px;
}
#menu{
float: left;
}
tr, td{
padding: 10px;
}
</style>
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<!-- Add your site or application content here -->
<div id="graphDiv"></div>
<div id="menu">
<h1 id = "top">Prufer Code Tree Generator</h1>
<h3>Operations available:</h3>
<table>
<tr>
<td>
Add new node:
</td>
<td><button onclick="addNewNode()">Add</button></td>
</tr>
<tr>
<td>
Generate tree from Prufer code:
</td>
<td>
<button onClick="generateTreeFromPrufer()">Run</button>
</td>
</tr>
<tr>
<td>
Get Prufer code from a tree:
</td>
<td>
<button onclick="getPruferCode()">Run</button>
</td>
</tr>
</table>
</div>
<script src="js/vendor/modernizr-3.6.0.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.3.1.min.js"><\/script>')</script>
<script src="js/VivaGraphJS/dist/vivagraph.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
</body>
</html>