This commit is contained in:
2023-02-03 11:35:07 +01:00
parent 5aa076e769
commit 9c17e1508d
40 changed files with 3539 additions and 5 deletions

View File

@ -47,12 +47,17 @@ function onDeviceReady() {
});
document.addEventListener("offline", decoNet, false);
document.getElementById("getNotif").addEventListener("click", (e) => {
sendnotif();
});
}
function sucessCallbackImage(imageData) {
//alert("Zipp is best princess !");
var image = document.getElementById('imgToReplace') ;
image.style.display = "block";
image.src = "data:image/jpeg;base64," + imageData;
}
@ -100,3 +105,14 @@ function decoNet() {
btn.classList.add("btn-danger");
}
function sendnotif() {
navigator.notification.alert(
"Applejack is best pony !",
alertDismissed, // callback
);
}
function alertDismissed() {
}