Skip to content

Commit

Permalink
improve point options at final
Browse files Browse the repository at this point in the history
  • Loading branch information
rofl256 committed Oct 7, 2017
1 parent 5916a7b commit 48a6dd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/duell.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h1 style="margin-left:50px;">Frageneditor</h1>
<option value="3"> 4</option>
<option value="4"> 5</option>
</select><br>
Alternative Antwort (0 Punkte):<br> <input class="finalElement" id="alternateAnswer" maxlength="20" disabled="true" type="text" name=""><button class="finalElement" id="alternateAnswerBtn" disabled="true">Setzten</button><button class="finalElement" id="alternateAnswerPBtn" disabled="true">0</button>
Alternative Antwort (0 Punkte):<br> <input class="finalElement" id="alternateAnswer" maxlength="20" disabled="true" type="text" name=""><button class="finalElement" id="alternateAnswerBtn" disabled="true">setzen</button><br><input type="number" class="finalElement" id="altPointsFinal" disabled="true" placeholder="Alt. Punkte" value=""><button class="finalElement" id="alternateAnswerPBtn" disabled="true">setzen</button>
</div>
</td>
</tr>
Expand Down
3 changes: 2 additions & 1 deletion web/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ $(document).ready(function() {

$("#alternateAnswerPBtn").click(function(){
var is = $("#finalFragenSelect").val();
wsSend("setAnz", is+"###0");
var p = $("#altPointsFinal").val() > 0 ? $("#altPointsFinal").val() : 0;
wsSend("setAnz", is+"###"+p);
});

$("#finalmodusInfoBtn").click(function(){
Expand Down

0 comments on commit 48a6dd5

Please sign in to comment.