easy examples in different languagess

This commit is contained in:
Sam 2023-07-17 01:22:27 +02:00
parent e45ab18f5d
commit 9b0c8ffc86
224 changed files with 11562 additions and 133 deletions

View file

@ -119,7 +119,7 @@
LJ Aurora
<span class="shade">&nbsp;</span>
</h2>
<webaudio-switch id="on" value="0" tooltip="Switch-B" height="30" width="90" src="knobs/power.png">
<webaudio-switch id="auroraon" value="0" tooltip="Switch-B" height="30" width="90" src="knobs/power.png">
</webaudio-switch>
</div>
<div class="webaudiobut">
@ -507,7 +507,7 @@
_WS.showline1('<span style="color: red;">LJ DISCONNECTED</span> ');
//var divtext1 = document.getElementById('line1');
///divtext1.innerHTML='DISCONNECTED';
document.getElementById("on").value = 0;
document.getElementById("auroraon").value = 0;
document.getElementById("lstt/0").value = 0;
document.getElementById("lack/0").value = 0;
},
@ -773,7 +773,7 @@
//console.log(res)
// on off
if (e.target.id === "on" && e.type === "change") {
if (e.target.id === "auroraon" && e.type === "change") {
window.location.reload();
}

View file

@ -148,7 +148,7 @@
</h2>
</div>
<div style="margin-top:20px;">
<webaudio-switch id="on" value="1" tooltip="Switch-B" height="30" width="90" src="knobs/power.png">
<webaudio-switch id="auroraon" value="0" tooltip="Switch-B" height="30" width="90" src="knobs/power.png">
</webaudio-switch>
</div>
</div>
@ -333,6 +333,12 @@
}
break;
case "/auraon":
var divtext = document.getElementById('status');
divtext.innerHTML="";
divtext.innerHTML= "Aurora plugin ON";
document.getElementById("auraon").value = 1;
case "/simul":
if (type === 'simu') {
console.log("simul "+res[1]);

View file

@ -318,6 +318,12 @@
newlaser(res[1])
break;
case "/auraon":
var divtext = document.getElementById('status');
divtext.innerHTML="";
divtext.innerHTML= "Aurora plugin ON";
document.getElementById("auraon").value = 1;
default:
var element = document.getElementById(res[0].slice(1));
if(typeof(element) != 'undefined' && element != null){