disable reload on ergo page; allow camera capture

This commit is contained in:
philipp 2023-11-02 13:50:34 +01:00
parent f7b24b4d50
commit 50de29284f
2 changed files with 15 additions and 13 deletions

View File

@ -68,6 +68,7 @@ function selectBoatChange() {
} }
function reloadPage() { function reloadPage() {
if (!window.location.href.includes("ergo")){
let pageTitle = document.title; let pageTitle = document.title;
let attentionMessage = 'Riemen- und Dollenbruch'; let attentionMessage = 'Riemen- und Dollenbruch';
@ -82,6 +83,7 @@ function reloadPage() {
} }
}); });
} }
}
function setMaxAmountRowers(name: string, rowers: number) { function setMaxAmountRowers(name: string, rowers: number) {
if(choiceObjects[name]) { if(choiceObjects[name]) {

View File

@ -37,7 +37,7 @@
{% endfor %} {% endfor %}
</select> </select>
{{ macros::input(label="Zeit [(hh:)mm:ss]/Distanz [m]", name="result", required=true, type="text", class="input") }} {{ macros::input(label="Zeit [(hh:)mm:ss]/Distanz [m]", name="result", required=true, type="text", class="input") }}
<input type="file" name="proof" class="input"> <input type="file" name="proof" class="input" accept="image/*" capture="camera">
<input type="submit" value="Speichern" class="btn btn-primary w-full col-span-4 m-auto"/> <input type="submit" value="Speichern" class="btn btn-primary w-full col-span-4 m-auto"/>
</form> </form>
</div> </div>
@ -61,7 +61,7 @@
{% endfor %} {% endfor %}
</select> </select>
{{ macros::input(label="Zeit [(hh:)mm:ss]/Distanz [m]", name="result", required=true, type="text", class="input") }} {{ macros::input(label="Zeit [(hh:)mm:ss]/Distanz [m]", name="result", required=true, type="text", class="input") }}
<input type="file" name="proof" class="input"> <input type="file" name="proof" class="input" accept="image/*" capture="camera">
<input type="submit" value="Speichern" class="btn btn-primary w-full col-span-4 m-auto"/> <input type="submit" value="Speichern" class="btn btn-primary w-full col-span-4 m-auto"/>
</form> </form>
</div> </div>