Posted By

lanagio on 02/06/15


Tagged

javascript web CSS3 Development html5


Versions (?)

Last Edited at 02/06/15 10:41pm

Viewed 10 times

EnjoyHint 3.0 To Add Free Hints and Tips To Site Or App


/ Published in: JavaScript

URL: http://xbsoftware.com/blog/enjoyhint-3-0-adding-hints-tips-simple-never/

The new updated introduced auto scrolling to highlighted elements, possibility to hide 'next' and 'skip' buttons, add html markup in description, and more.

  1. Initialization and configuration:
  2.  
  3. //initialize instance
  4. var enjoyhint_instance = new EnjoyHint({});
  5.  
  6. //simple config.
  7. //Only one step - highlighting(with description) "New" button
  8. //hide EnjoyHint after a click on the button.
  9. var enjoyhint_script_steps = [
  10. {
  11. 'click .new_btn' : 'Click the "New" button to start creating your project'
  12. }
  13. ];
  14.  
  15. //set script config
  16. enjoyhint_instance.set(enjoyhint_script_steps);
  17.  
  18. //run Enjoyhint script
  19. enjoyhint_instance.run();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.