SheepTester / hello-world

Innocent first test.
https://sheeptester.github.io/hello-world/
Other
7 stars 6 forks source link

vm.html betterification #5

Closed SheepTester closed 5 years ago

SheepTester commented 5 years ago

Use getXY https://github.com/LLK/scratch-gui/blob/develop/src/lib/touch-utils.js

SheepTester commented 5 years ago

User input should be fine, actually

SheepTester commented 5 years ago

how GUI gets questions: https://github.com/LLK/scratch-gui/blob/develop/src/containers/stage.jsx#L79

how GUI sends answers: https://github.com/LLK/scratch-gui/blob/develop/src/containers/stage.jsx#L110

how runtime gets answers: https://github.com/LLK/scratch-vm/blob/develop/src/blocks/scratch3_sensing.js#L43

how runtime sends questions: https://github.com/LLK/scratch-vm/blob/develop/src/blocks/scratch3_sensing.js#L125-L130

SheepTester commented 5 years ago
fetch('https://sheeptester.github.io/SHEPS.svg').then(r => r.blob()).then(blob => new Promise(res => {
const a = new FileReader();
    a.onload = function(e) {res(e.target.result);}
    a.readAsDataURL(blob);
})).then(console.log)

to make data URIs

SheepTester commented 5 years ago

online minifier https://skalman.github.io/UglifyJS-online/