From 8c62d6bb0e46a98a5e2a76f13e77a8369d660dc1 Mon Sep 17 00:00:00 2001
From: adrien <adrien@malingrey.fr>
Date: Thu, 30 Mar 2023 19:38:36 +0200
Subject: [PATCH] text insert radio to the right

---
 js/sudoku.js | 3 ++-
 sudoku.php   | 8 ++++----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/js/sudoku.js b/js/sudoku.js
index d592fe6..280a086 100755
--- a/js/sudoku.js
+++ b/js/sudoku.js
@@ -67,7 +67,8 @@ window.onload = function() {
         searchCandidatesOf(box)
     })
 
-    insertRadios = Array.from(insertRadioGroup.getElementsByTagName("input")).slice(1)
+    insertRadios = Array.from(insertRadioGroup.getElementsByTagName("input"))
+    insertRadios.pop()
 
     for (label of document.getElementsByTagName("label")) {
         label.control.label = label
diff --git a/sudoku.php b/sudoku.php
index 8d62550..e1f8773 100755
--- a/sudoku.php
+++ b/sudoku.php
@@ -78,15 +78,15 @@
         </form>
         <div class='d-flex mb-2'>
             <div id='insertRadioGroup' class='radioGroup btn-group flex-fill'>
-                <input type='radio'class='btn-check' id='insertRadio0' value='' name='insertRadioGroup' onclick='insert(this)' accesskey='0' checked />
-                <label for='insertRadio0' class='btn btn-primary' title='Clavier'>
-                    <i class="bi bi-cursor-text"></i>
-                </label>
                 <?php
         for($value=1; $value<=9; $value++) {
             echo "                <input type='radio'class='btn-check' id='insertRadio$value' value='$value' name='insertRadioGroup' onclick='insert(this)' accesskey='$value' disabled /><label for='insertRadio$value' class='btn btn-primary' title='Insérer un $value'>$value</label>\n";
         }
 ?>
+                <input type='radio'class='btn-check' id='insertRadio0' value='' name='insertRadioGroup' onclick='insert(this)' accesskey='0' checked />
+                <label for='insertRadio0' class='btn btn-primary' title='Clavier'>
+                    <i class="bi bi-cursor-text"></i>
+                </label>
             </div>
         </div>
         <div class='mb-3'>