Giter Club home page Giter Club logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
This looks like a promising addition.  The catch is how does a user clear the 
workspace?  Currently you just hit reload.  But with this code the blocks would 
follow you.  This would be unfortunate if you hit the 'airstrike' button on the 
playground a few times.  :)

I think that in addition to this feature, we need a clear-all UI element.  What 
would that look like?  Each of the three demos look pretty different.

Original comment by [email protected] on 15 Jun 2012 at 5:32

from blockly.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Maybe the best UI for the demos would be to pop open a window.confirm on page 
load asking "Restore saved blocks?"  Ok would restore, cancel would delete the 
local storage.  That way we wouldn't need a clear-all UI element.

As for jquery, I'd prefer to eventually use Closure instead since it works much 
better with the Closure compiler, type checker, Google's build system, etc.  
But in this case you can just call Blockly.bindEvent_(window, 'unload', null, 
backup_blocks)

Original comment by [email protected] on 15 Jun 2012 at 5:49

from blockly.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
How about add a 'clean' button after 'run' button? 

Every time user will get their last blocks without worry.
Once user want to clear the blocks, they can do it explicitly on screen.

Original comment by gasolin on 15 Jun 2012 at 7:51

from blockly.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
commited in r242

Original comment by gasolin on 15 Jun 2012 at 1:06

  • Changed state: Fixed

from blockly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.