Forum Discussion

OwenHolt's avatar
OwenHolt
Super Hero
8 years ago

JavaScript "Egg Timer" Using SL3 Dials

I took my JavaScript based timer created for SL2 and applied it to a Dial in SL3.  I like the way it turned out.  There are 2 timers in this file, they are essentially the same graphics and code, the difference is in the number of stops on the SL Dial. 
Timer 1 = 30 minutes
Timer 2 = 30 seconds

How to use the timer:
Because they are JavaScript based, you will need to publish the file to see the functionality.
One published, turn the dial to the desired time and hit the green button. Because the 2 timers share code, be sure to hit the stop button before you advance or go back between the 2 slides.

  • That's really cool, Owen! At first I thought it wasn't working because I didn't hear anything (for some reason I expected to hear ticking), but then I saw the numbers moving. Great job!

  • @ Allison: I thought about adding sound, but honestly I've just been really busy. 

    @Matthew: I hope your lunch turned out well!  I've found that if you put the eggs in a pot with cold water, bring it to a boil, then remove them from the heat and keep them in the water covered for 18 minutes followed by a cold ice bath, your eggs will turn out perfect every time.

  • Love the download AND the egg tips, Owen! Thanks for sharing the both with us.

  • LuPost's avatar
    LuPost
    Community Member

    This is great, Owen! It would work well as a "return to class" timer for a classroom training session (in addition to cooking eggs :-)!

  • JinaAli's avatar
    JinaAli
    Community Member

    That's great. What code can I add to play a sound (from an URL) when it completes?