fix: show trees in order they were defined
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
12899489f4
commit
f3da4bae3e
2 changed files with 31 additions and 31 deletions
|
@ -114,6 +114,17 @@
|
|||
<div class="row">
|
||||
<h4 class="col-auto">Choose left tree:</h4>
|
||||
<div class="btn-group col-auto" role="group">
|
||||
<input
|
||||
type="radio"
|
||||
class="btn-check"
|
||||
name="leftTreeSelection"
|
||||
id="lAvlTreeBtn"
|
||||
checked
|
||||
autocomplete="off"
|
||||
onclick="switchTree(AVLTree, 'left')"
|
||||
/>
|
||||
<label class="btn btn-outline-primary" for="lAvlTreeBtn">AVL</label>
|
||||
|
||||
<input
|
||||
type="radio"
|
||||
class="btn-check"
|
||||
|
@ -126,17 +137,6 @@
|
|||
>WAVL</label
|
||||
>
|
||||
|
||||
<input
|
||||
type="radio"
|
||||
class="btn-check"
|
||||
name="leftTreeSelection"
|
||||
id="lAvlTreeBtn"
|
||||
checked
|
||||
autocomplete="off"
|
||||
onclick="switchTree(AVLTree, 'left')"
|
||||
/>
|
||||
<label class="btn btn-outline-primary" for="lAvlTreeBtn">AVL</label>
|
||||
|
||||
<input
|
||||
type="radio"
|
||||
class="btn-check"
|
||||
|
@ -156,6 +156,16 @@
|
|||
<div class="row">
|
||||
<h4 class="col-auto">Choose right tree:</h4>
|
||||
<div class="btn-group col-auto" role="group">
|
||||
<input
|
||||
type="radio"
|
||||
class="btn-check"
|
||||
name="rightTreeSelection"
|
||||
id="rAvlTreeBtn"
|
||||
autocomplete="off"
|
||||
onclick="switchTree(AVLTree, 'right')"
|
||||
/>
|
||||
<label class="btn btn-outline-primary" for="rAvlTreeBtn">AVL</label>
|
||||
|
||||
<input
|
||||
type="radio"
|
||||
class="btn-check"
|
||||
|
@ -169,16 +179,6 @@
|
|||
>WAVL</label
|
||||
>
|
||||
|
||||
<input
|
||||
type="radio"
|
||||
class="btn-check"
|
||||
name="rightTreeSelection"
|
||||
id="rAvlTreeBtn"
|
||||
autocomplete="off"
|
||||
onclick="switchTree(AVLTree, 'right')"
|
||||
/>
|
||||
<label class="btn btn-outline-primary" for="rAvlTreeBtn">AVL</label>
|
||||
|
||||
<input
|
||||
type="radio"
|
||||
class="btn-check"
|
||||
|
|
20
index.html
20
index.html
|
@ -79,6 +79,16 @@
|
|||
|
||||
<h4 class="col-auto">Choose a tree:</h4>
|
||||
<div class="btn-group col-auto" role="group">
|
||||
<input
|
||||
type="radio"
|
||||
class="btn-check"
|
||||
name="treeSelection"
|
||||
id="avlTreeBtn"
|
||||
autocomplete="off"
|
||||
onclick="switchTree(AVLTree)"
|
||||
/>
|
||||
<label class="btn btn-outline-primary" for="avlTreeBtn">AVL</label>
|
||||
|
||||
<input
|
||||
type="radio"
|
||||
class="btn-check"
|
||||
|
@ -90,16 +100,6 @@
|
|||
/>
|
||||
<label class="btn btn-outline-primary" for="wavlTreeBtn">WAVL</label>
|
||||
|
||||
<input
|
||||
type="radio"
|
||||
class="btn-check"
|
||||
name="treeSelection"
|
||||
id="avlTreeBtn"
|
||||
autocomplete="off"
|
||||
onclick="switchTree(AVLTree)"
|
||||
/>
|
||||
<label class="btn btn-outline-primary" for="avlTreeBtn">AVL</label>
|
||||
|
||||
<input
|
||||
type="radio"
|
||||
class="btn-check"
|
||||
|
|
Loading…
Reference in a new issue