mirror of
https://github.com/scratchfoundation/scratchx.git
synced 2025-02-17 11:30:15 -05:00
Scratch Extension Site
Prior to this change, there were two versions of the code meant to load extensions from URL query parameters: - One version reliably waited for the editor to be ready, but looked for "ext=" and "proj=" query parameters. This was an old version of the JS-Flash interface that was never documented; the docs say to use "url=" for both projects and extensions. - The other version correctly looked for "url=" but did not reliably wait for the editor to be ready. This seems to be the most likely culprit for reports that extensions sometimes fail to load. This change unifies those two paths into one which looks for "url=" and waits for the editor to be ready. |
||
---|---|---|
css | ||
fonts | ||
images | ||
js | ||
libs | ||
locale | ||
sass | ||
scratch_extensions | ||
tmp | ||
.gitattributes | ||
.gitignore | ||
CNAME | ||
favicon.ico | ||
index.html | ||
README.md | ||
Scratch.swf |
ScratchX
Scratch Extension Site
CSS
The project uses SASS with Bourbon, Neat, and Bitters for CSS.
To install sass
,
gem install sass
Don't edit css/scratchx.css
, instead edit the files in sass
and develop with:
sass --watch sass:css
For a quick webserver at http://localhost:8000, run from this directory:
python -m SimpleHTTPServer
If 8000 is in use, change the port number to e.g., 8001 with
python -m SimpleHTTPServer 8001