Releases: ccosse/colormyworld
v0.5
To run stand-alone you need to comment the top section of loader.js where it refers to "datastore object".
This release saves and reloads state, as per Sugar/Sugarizer.
Also fixed a timing problem by having "fill_all_features()" function call itself recursively until features are ready. This is a long-term solution and does not seem to hang under any circumstance so far.
v0.4
Save and reload state: two new buttons at bottom of modepalette, "Save State" and "Reload State". Both save and reload functions are located towards top of colormyworld.js. The original structures contained (and still do) non-serializable objects, so they could not be serialized. Instead, we create a serializable object and use existing functionality to set the region, language, background and mode, then loop over all the features and apply two attributes, 1) whether the feature remains a candidate (if tour or interactive has already used it then candidate=false 2) apply saved style attributes (stroke color and width, fill color) to all features. After loading the saved structure is cleared.
At this point "Save State" only saves in memory, and "Reload State" loads the in-memory object. The state is JSON.stringified.
v0.3
V0.2
v0.1
v0.1-pre
First release includes 8 languages and 4 geographic areas. Default is tour mode, last button toggles tour/interactive play mode.
From Left to Right buttons are:
Activity palette (Sugarizer)
Region cycle (Africa, World, Europe, Caribbean)
Language cycle (en,fr,de,gr,cn,sw,th,it)
Run/Play
Tour/Interactive