Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
const preset_1 = () => {
console.log('preset_1');
var postData = {"ip" : "192.168.1.61",};
$.ajax({
url: "/bose/php/preset.php",
type: "POST",
data: postData,
success: function (data_1) {
var data_1 = data_1;
}
});
var postData = {"ip" : "192.168.1.63",};
$.ajax({
url: "/bose/php/preset.php",
type: "POST",
data: postData,
success: function (data_2) {
var data_2 = data_2;
}
});
alert(data_1);
alert(data_2);
};
if (data_1 == "Standby" and data_2 == "Standby" )
{ functie 1 uitvoeren }
else if ( data_1 == "Standby" )
{ functie 2 uitvoeren }
else if ( data_2 == "Standby" )
{ functie 3 uitvoeren }
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.