-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
152 lines (132 loc) · 4.87 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
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="./bootstrap.css">
</head>
<body>
<!-- UI -->
<div class="p-2"></div>
<section class="container">
<h2 class="pt-3 pb-3 text-center">MiBolsillo Challenge</h2>
<div class="row">
<div id="leftColumn" class="col-12 col-lg-6">
<!-- Input component -->
<div class="p-2">
<h4>Input</h4>
<div id="inputsContainer" class="row mb-2">
<div class="col-12">
<!-- Input -->
<textarea id="input" type="text" class="form-control" rows="3" placeholder="eg. AB5, BC4, CD8, DC8, DE6, AD5, CE2, EB3, AE7"></textarea>
</div>
</div>
</div>
<!-- Button -->
<div class="text-center">
<button id="btnCalculate" type="button" class="btn btn-dark">Calculate</button>
</div>
<div class="p-3"></div>
<!-- Output component -->
<div class="p-2">
<h4>Output</h4>
<div id="outputsContainer" class="row mb-2">
<div class="col-6">
<!-- Output 01 -->
<span>Distance of route A-B-C</span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon3">Output #01</span>
</div>
<input id="output01" type="text" class="form-control" id="basic-url" disabled>
</div>
<!-- Output 02 -->
<span>Distance of route A-D</span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon3">Output #02</span>
</div>
<input id="output02" type="text" class="form-control" id="basic-url" disabled>
</div>
<!-- Output 03 -->
<span>Distance of route A-D-C</span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon3">Output #03</span>
</div>
<input id="output03" type="text" class="form-control" id="basic-url" disabled>
</div>
<!-- Output 04 -->
<span>Distance of route A-E-B-C-D</span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon3">Output #04</span>
</div>
<input id="output04" type="text" class="form-control" id="basic-url" disabled>
</div>
<!-- Output 05 -->
<span>Distance of route A-E-D</span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon3">Output #05</span>
</div>
<input id="output05" type="text" class="form-control" id="basic-url" disabled>
</div>
</div>
<div class="col-6">
<!-- Output 06 -->
<span>Trips from C to C with 3 stops</span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon3">Output #06</span>
</div>
<input id="output06" type="text" class="form-control" id="basic-url" disabled>
</div>
<!-- Output 07 -->
<span>Trips from A to C with 4 stops</span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon3">Output #07</span>
</div>
<input id="output07" type="text" class="form-control" id="basic-url" disabled>
</div>
<!-- Output 08 -->
<span>Shortest route from A to C</span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon3">Output #08</span>
</div>
<input id="output08" type="text" class="form-control" id="basic-url" disabled>
</div>
<!-- Output 09 -->
<span>Shortest route from B to B</span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon3">Output #09</span>
</div>
<input id="output09" type="text" class="form-control" id="basic-url" disabled>
</div>
<!-- Output 10 -->
<span>Routes C to C distance<30</span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon3">Output #10</span>
</div>
<input id="output10" type="text" class="form-control" id="basic-url" disabled>
</div>
</div>
</div>
</div>
<div class="p-3"></div>
</div>
<div id="rightColumn" class="col-12 col-lg-6 d-flex justify-content-center align-items-center">
<img class="img-fluid" src="./graph.jpeg"/>
</div>
</div>
</section>
<div class="p-2"></div>
<!-- JS -->
<script type="text/javascript" src="./code.js"></script>
</body>
</html>