Skip to content

Commit 5ffd6dc

Browse files
authored
Merge branch 'main' into feat/elo-system
2 parents 28867ef + 3747916 commit 5ffd6dc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ <h1>Histórico de Partidas</h1>
131131
src="https://code.jquery.com/jquery-3.7.1.min.js"
132132
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
133133
crossorigin="anonymous"></script>
134-
<script type="module" src="./index.js?v=8"></script>
134+
<script type="module" src="./index.js?v=9"></script>
135135
<script>
136136
if('serviceWorker' in navigator) {
137137
navigator.serviceWorker.register('./serviceWorker.js', { scope: '/peladaManager/' });

index.js

+3
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ $("#start-match-day").click(function() {
303303
$("#update-match-day").click(function() {
304304
maxPoints = parseInt($("#max-points").val());
305305
playersPerTeam = $("#players-per-team").val();
306+
307+
if ($("#auto-switch-teams").is(":checked")) autoSwitchTeamsPoints = parseInt($("#auto-switch-teams-points").val());
308+
else autoSwitchTeamsPoints = 0;
306309

307310
if (playersPerTeam * 2 > players.length) {
308311
alert("Sem jogadores suficientes para atualizar a partida.");

0 commit comments

Comments
 (0)