]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/web/opac/skin/default/js/tips.js
adding "tips" functionality -- miker_s first direct addition to the opac! yay!
[Evergreen.git] / Open-ILS / web / opac / skin / default / js / tips.js
1 attachEvt('common', 'run', insertTip);
2
3 var user_tips = [
4         'Click on a folder icon in the sidebar to access related quick searches',
5         "If you don't find what you want try expanding your search using the range selector at the right of the search bar"
6 ];
7
8 function insertTip () {
9         var tip_div = document.getElementById('tips');
10         if (tip_div)
11                 tip_div.appendChild( text( user_tips[ Math.floor(Math.random() * user_tips.length) ] ) );
12 }
13