applabjs
v1.0.3
Published
A JavaScript Library allow to use functions in code.org App Lab in browser enviroment
Maintainers
Readme
AppLabJS
A JavaScript Library allow to use functions in code.org App Lab in browser environment
Installation
Add this script tag to your HTML code
<script src="https://cdn.jsdelivr.net/gh/richardliucode/[email protected]/applab.min.js"></script>Usage
- You can see the document of code.org App Lab to find out the below function, it use the similar api. `
onEvent(id, type, callback);
button(id, text);
textInput(id, text);
textLabel(id, text);
getText(id);
setText(id);
getNumber(id);
setNumber(id, number);
image(id, url);
getImageURL(id, url);
showElement(id);
hideElement(id);
deleteElement(id);
getXPosition();
getYPosition();
open();