tp note
This commit is contained in:
@ -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() {
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user