kytschBASIC

Put down that phone!
Please view me on real computer.

JAVASCRIPT

This will allow you to write raw javascript with jquery support.

Example

ASYNCFUNCTION "updateText", "text='Arcade support'"

	await sleep(3000);

	$("#arcade-text").html(text);

END ASYNCFUNCTION

LINE BREAK

JAVASCRIPT

	updateText(event, "Arcade support enabled");

END JAVASCRIPT

LINE BREAK

SCREEN "arcade"

	PRINT "Arcade support",,"arcade-text"

END SCREEN

Output

<script type="text/javascript">async function updateText(event,  text='Arcade support') {
await sleep(3000);
$("#arcade-text").html(text);
}</script><br/>
<script type="text/javascript">
$(document).ready(function() {
updateText(event, "Arcade support enabled");

});
</script><br/>
<div id="arcade" class="kb-screen">
<span id='arcade-text'>Arcade support</span>
</div>

Demo



Arcade support

See also