Les jolis boutons !

This commit is contained in:
2025-03-02 20:15:19 +01:00
parent 2c5f529e89
commit 15f747807b
2 changed files with 82 additions and 29 deletions
+17 -17
View File
@@ -12,28 +12,28 @@
<span id="question-text"></span>
<span id="question-counter">0/0</span>
<div id="answers">
<div id="answer-select">
<button class="squared-button" id="answer-select-duo">Duo</button>
<button class="squared-button" id="answer-select-carre">Carré</button>
<button class="squared-button" id="answer-select-cache">Cache</button>
<div class="buttonbox" id="answer-select">
<button class="squared-button bcol1" id="answer-select-duo">Duo</button>
<button class="squared-button bcol2" id="answer-select-carre">Carré</button>
<button class="squared-button bcol3" id="answer-select-cache">Cache</button>
</div>
<div id="answer-cache">
<input id="answer-cache-input" type="text"/>
<button class="squared-button" id="answer-cache-button">Envoyer la réponse</button>
<div class="buttonbox" id="answer-cache">
<textarea class="squared-input" id="answer-cache-input" type="text"></textarea>
<button class="squared-button bcol4" id="answer-cache-button">Envoyer la réponse</button>
</div>
<div id="answer-duo">
<button class="squared-button" id="answer-duo-button-1"></button>
<button class="squared-button" id="answer-duo-button-2"></button>
<div class="buttonbox" id="answer-duo">
<button class="squared-button bcol1" id="answer-duo-button-1"></button>
<button class="squared-button bcol2" id="answer-duo-button-2"></button>
</div>
<div id="answer-carre">
<button class="squared-button" id="answer-carre-button-1"></button>
<button class="squared-button" id="answer-carre-button-2"></button>
<button class="squared-button" id="answer-carre-button-3"></button>
<button class="squared-button" id="answer-carre-button-4"></button>
<div class="buttonbox" id="answer-carre">
<button class="squared-button bcol1" id="answer-carre-button-1"></button>
<button class="squared-button bcol2" id="answer-carre-button-2"></button>
<button class="squared-button bcol3" id="answer-carre-button-3"></button>
<button class="squared-button bcol4" id="answer-carre-button-4"></button>
</div>
</div>
<span id="error-textbox" style="color: red"></span>
<button class="squared-button" id="question-button">Poser la question</button>
<button id="question-button">Poser la question</button>
<script th:inline="javascript">
/*<![CDATA[*/
var qid = /*[[${formid}]]*/ -1;
@@ -155,7 +155,7 @@
$("#answer-select-duo").on('click',() => answer1(2))
$("#answer-select-carre").on('click',() => answer1(4))
$("#answer-select-cache").on('click',() => answer1(0))
$("#answer-cache-button").on('click',() => answer2($("#answer-cache-input").text()))
$("#answer-cache-button").on('click',() => answer2($("#answer-cache-input").val()))
$("#answer-duo-button-1").on('click',() => answer2(awrs[0]))
$("#answer-duo-button-2").on('click',() => answer2(awrs[1]))
$("#answer-carre-button-1").on('click',() => answer2(awrs[0]))