JSPM

applabjs

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q61108F
  • License MIT

A JavaScript Library allow to use functions in code.org App Lab in browser enviroment

Package Exports

  • applabjs
  • applabjs/applab.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (applabjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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/applabjs@1.0.2/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();