Comments (4)
That's the right idea, but Popcorn is a little weird about events at 0:00, unfortunately. I think it might be cleanest to have a function to set the initial state and call it both from the script's init() and from a reset function.
Let me quickly make that change.
from processing-hour-of-code.
Got it, I also just noticed that I was making changes running jekyll locally but testing off of hello.processing.org (oops) so it may actually work. But your solution is better anyway. Am currently playing around with script.js seeing how it works and breaking things out so you may notice some changes happening there.
from processing-hour-of-code.
My experience was that events at 0:00 worked in Chrome and Safari, but not Firefox, oddly enough.
I just pushed a new editor.js and script.js with reset() for setting and resetting the initial state. It's only on the third lesson at the moment and will need more work to make sure it's restoring to the proper code, etc., but should work in principle.
from processing-hour-of-code.
Added reset() for all of the scripts. They'll need to be customized, but I think that takes care of this bug.
from processing-hour-of-code.
Related Issues (20)
- Share button highlighting? HOT 2
- Remove next lesson button from the last section. HOT 4
- Code buttons cover code in editor that can't scroll past HOT 1
- page that accumulates a bunch of things made with the tutorial HOT 15
- code comments
- Typo on About page HOT 1
- Exit confirmation during all exercise sections HOT 2
- make it more clear that size() is needed when you move out of tutorial? HOT 1
- Vimeo Player Issues HOT 6
- Revisiting Video Navigation HOT 8
- video tutorial shapes not showing code examples/screen HOT 2
- No Sound On Initial Play HOT 1
- tracking for 2016 Hour of Code HOT 4
- www.parsecdn.com no longer exists HOT 7
- Spam / Security HOT 2
- Misalignment of the title bar HOT 2
- enforce https? HOT 1
- Forum link HOT 1
- Videos unavailable HOT 3
- "Back 10 sec." button closes and breaks editor windows in tutorial HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from processing-hour-of-code.