fix: show trees in order they were defined

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2022-05-17 17:14:09 +02:00
parent 12899489f4
commit f3da4bae3e
Signed by: mfocko
GPG key ID: 7C47D46246790496
2 changed files with 31 additions and 31 deletions

View file

@ -114,6 +114,17 @@
<div class="row"> <div class="row">
<h4 class="col-auto">Choose left tree:</h4> <h4 class="col-auto">Choose left tree:</h4>
<div class="btn-group col-auto" role="group"> <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 <input
type="radio" type="radio"
class="btn-check" class="btn-check"
@ -126,17 +137,6 @@
>WAVL</label >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 <input
type="radio" type="radio"
class="btn-check" class="btn-check"
@ -156,6 +156,16 @@
<div class="row"> <div class="row">
<h4 class="col-auto">Choose right tree:</h4> <h4 class="col-auto">Choose right tree:</h4>
<div class="btn-group col-auto" role="group"> <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 <input
type="radio" type="radio"
class="btn-check" class="btn-check"
@ -169,16 +179,6 @@
>WAVL</label >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 <input
type="radio" type="radio"
class="btn-check" class="btn-check"

View file

@ -79,6 +79,16 @@
<h4 class="col-auto">Choose a tree:</h4> <h4 class="col-auto">Choose a tree:</h4>
<div class="btn-group col-auto" role="group"> <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 <input
type="radio" type="radio"
class="btn-check" class="btn-check"
@ -90,16 +100,6 @@
/> />
<label class="btn btn-outline-primary" for="wavlTreeBtn">WAVL</label> <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 <input
type="radio" type="radio"
class="btn-check" class="btn-check"