-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
137 lines (114 loc) · 4.5 KB
/
index.html
File metadata and controls
137 lines (114 loc) · 4.5 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link rel="icon" href="./img/graph.png" type="image/png">
<title> Coloring Graph</title>
<!-- Bootstrap core CSS -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"
integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<!-- Include SweetAlert library -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- Custom styles for this template -->
<link href="style/justified-nav.css" rel="stylesheet" />
<link rel="stylesheet" href="./style/style.css">
</head>
<body>
<div class="container">
<div class="row nav">
<nav>
<a href="./index.html">GRAPH</a>
<a href="./sudoku.html">SUDOKU</a>
<a href="./about.html">DEMO</a>
<div id="indicator"></div>
</nav>
</div>
<div class="row mb-3">
<h1 class="title">Graph Coloring</h1>
</div>
<div id="info-icon" class="info-icon">ⓘ</div>
<!-- Main Map Canvas -->
<div class="row mb-2" >
<div class="col-lg-12">
<form>
<div class="form-row align-items-center">
<div class="col-auto">
<input type="reset" id="clearmap" class="btn">
<button type="button" id="startColoring" class="btn blue">Solve</button>
</div>
<div class="col-auto">
<label for="speedSelector" class="label-title" >Speed: </label>
<input type="range" name="" id="speedSelector" min="0" max="10">
</div>
<div class="col-auto ml-auto">
<label for="algorithmSelector" class="label-title">Select Algorithm:</label>
<select id="algorithmSelector" class="custom-select">
<option value="greedy">Greedy Coloring</option>
<option value="dsatur">DSATUR Coloring</option>
<option value="welshPowell">Welsh-Powell Algorithm</option>
<option value="smallestLast">Smallest First Algorithm</option>
<option value="largestFirst">Largest First Algorithm</option>
</select>
</div>
</div>
</form>
</div>
</div>
<div class="row ">
<div class="col-lg-12">
<div id="svg-map" class="card" style="height: 65vh;">
</div>
<form class="mt-3">
<div class="form-row align-items-center">
<div class="col-auto">
<button type="button" class="btn export" id="data-export">
Export Data
</button>
</div>
<div class="col-auto">
<div class="file-input-container">
<input type="file"
id="data-import"
class="custom-file-input"
/>
<label for="fileInput">Import Data</label>
</div>
</div>
<div class="col">
<p class="text-right label-title" id="status">Done!</p>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- /container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"
></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"
></script>
<script type="text/javascript" src="js/d3.v3.min.js"></script>
<script src="js/main.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>