This commit is contained in:
Claude Brisson
2023-12-25 16:41:18 +01:00
parent f6d4e8772b
commit a13f7510ce
8 changed files with 12 additions and 8 deletions

View File

@@ -19,6 +19,11 @@
});
// ]]#
</script>
<style>
body.initial {
display: none;
}
</style>
</head>
<body class="vert flex initial">
#* Debugging code to list all web context properties

View File

@@ -253,7 +253,6 @@ onLoad(() => {
// disable hash scrolling
if (window.location.hash) {
console.log("lkhjqlksjdhflkqsjhfd")
setTimeout(function() {
window.scrollTo(0, 0);
}, 1);

View File

@@ -1,4 +1,4 @@
<div id="information" #if($tour)class="tab-content"#end>
<div id="information-tab" #if($tour)class="tab-content"#end>
<form id="tournament-infos" class="ui form #if(!$tour)edit#end">
<div class="roundbox">
<div class="two stackable fields">

View File

@@ -13,7 +13,7 @@
#set($games = $roundPairing.games)
#set($unpairables = $roundPairing.unpairables)
#end
<div class="tab-content" id="pairing">
<div class="tab-content" id="pairing-tab">
<div id="pairing-content">
<div id="pairing-round" class="active-round-box">
Pairings for round

View File

@@ -1,4 +1,4 @@
<div class="tab-content" id="registration">
<div class="tab-content" id="registration-tab">
<div id="reg-view">
<div id="players-list" class="roundbox">
#set($parts = $api.get("tour/${params.id}/part"))

View File

@@ -1,4 +1,4 @@
<div class="tab-content" id="results">
<div class="tab-content" id="results-tab">
<div id="results-round" class="active-round-box">
Results for round
<button class="ui floating choose-round prev-round button">&laquo;</button>

View File

@@ -6,7 +6,7 @@
#end
</select>
#end
<div class="tab-content" id="standings">
<div class="tab-content" id="standings-tab">
<div id="standings-round" class="active-round-box">
Standings after round
<button class="ui floating choose-round prev-round button">&laquo;</button>

View File

@@ -92,7 +92,7 @@
let date = Datepicker.parseDate(value, 'yyyy-mm-dd', datepickerLocale);
return Datepicker.formatDate(date, format)
}
function fromHMS(value) {$('.step').map(item => item.data('step')).forEach(i => console.log(i))
function fromHMS(value) {
if (value && /\d+:\d+:\d+/.test(value)) {
let parts = value.split(':');
let seconds = parts[0] * 3600 + parts[1] * 60 + parts[2] * 1;
@@ -105,7 +105,7 @@
function chooseStep(step) {
$('.tab-content').removeClass('active');
$('.step').removeClass('active');
$(`.step[data-step="${step}"], #${step}`).addClass('active');
$(`.step[data-step="${step}"], #${step}-tab`).addClass('active');
window.location.hash = `#${step}`;
}