Hi all,

Just wanted to share this little “feature” with you.

This script adds a bit of christmas into SAP Screen Personas.


Christmas script:
$.getScript("https://rawgit.com/scottschiller/Snowstorm/master/snowstorm.js").done(function() {
  /* yay, all good, do something */
 snowStorm.flakesMaxActive = 96;    // show more snow on screen at once
 snowStorm.useTwinkleEffect = true;
 snowStorm.toggleSnow();
 });
var MyAudio = new Audio('http://www.singing-bell.com/wp-content/uploads/2013/09/Jingle-Bells-Singing-Bell.mp3');
MyAudio.play();
setTimeout(function(){
    MyAudio.pause();
 snowStorm.toggleSnow();
}, 60000);

Add it to a button and then you’re off.

This video shows it a bit more.

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

  1. Steve Rumsby

    Very nice! I removed the timeout so it runs all the time, and removed the audio, and I now have a permanently snowy WebGUI. Perfect…

    I remember many years ago having one of these that worked on my Windows background, and the snow used to pile up at the bottom of the screen. That was much more entertaining, especially after it had been running for a while 🙂 I wonder if you fancy enhancing yours to do the same…?

    Steve.

    (0) 
    1. Jakob Marius Kjær Post author

      Hmm i had a look into trying to get the snowflakes to stay and build. But wasn’t succesful. If someone decides to add this solution, then please share it with the community.

      (0) 
  2. Jakob Marius Kjær Post author

    Hi Steve,

    Thanks for the feedback.

    Yeah i added the timeout in case someone got tired of it 😉

    Interesting “feature” about the piling up. The javascript isn’t mine, but i will try and look into this.

    (0) 

Leave a Reply