Skip to content

Commit

Permalink
fixed snackbar for old ipaf (running ios 9)
Browse files Browse the repository at this point in the history
  • Loading branch information
clemenstyp committed Apr 3, 2024
1 parent 616a4fa commit 039be49
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions templates/choices.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,18 @@ <h4 class="ui dividing header">Change Image</h4>
var idleTimer = new IdleTimerOpenURL();
idleTimer.setupTimer(20, '{{ url_for('initial') }}');

const fileInput = document.getElementById('file_input');
fileInput.onchange = () => {
document.getElementById('file_submit').removeAttribute("disabled");
}
var fileInput = document.getElementById('file_input');
fileInput.onchange = function() {
document.getElementById('file_submit').removeAttribute("disabled");
};

function buyItem(userid, itemid, itemName, itemPrice, buyURL){

buyItemNow(userid, itemid, itemName, itemPrice, buyURL);
}

function askTobuyItem(userid, itemid, itemName, itemPrice, buyURL){
const ask = confirm("Do you really want to buy \"" + itemName + "\" for " + itemPrice + "€?");
var ask = confirm("Do you really want to buy \"" + itemName + "\" for " + itemPrice + "€?");
if(ask){
buyItemNow(userid, itemid, itemName, itemPrice, buyURL);
}
Expand Down Expand Up @@ -214,11 +214,11 @@ <h4 class="ui dividing header">Change Image</h4>
balance = balance - itemPrice;
document.getElementById('balance').innerHTML = balance.toFixed(2);

const date = new Date();
var date = new Date();

const hours = date.getHours();
var hours = date.getHours();
// getMinutes returns the minutes in local time zone from 0 to 59
let minutes = date.getMinutes();
var minutes = date.getMinutes();

// hours should always be two digits long
//if (hours < 10) {
Expand Down

0 comments on commit 039be49

Please sign in to comment.