diff options
author | piernov <piernov@piernov.org> | 2016-05-08 20:45:40 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-05-08 20:45:40 +0200 |
commit | 9f28616dfd1cc425c5013937bab729217b7be2e6 (patch) | |
tree | c08a53708a6f59374d56b872c4047cbf80c81e27 /doc/phpdoc/js/menu.js | |
parent | 07f9658d2fecc5f88cc27fba8502246a30d8fdc0 (diff) | |
download | candybox-9f28616dfd1cc425c5013937bab729217b7be2e6.tar.gz candybox-9f28616dfd1cc425c5013937bab729217b7be2e6.tar.bz2 candybox-9f28616dfd1cc425c5013937bab729217b7be2e6.tar.xz candybox-9f28616dfd1cc425c5013937bab729217b7be2e6.zip |
Add build_doc.sh script + generated phpdoc
Diffstat (limited to 'doc/phpdoc/js/menu.js')
-rw-r--r-- | doc/phpdoc/js/menu.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/phpdoc/js/menu.js b/doc/phpdoc/js/menu.js new file mode 100644 index 0000000..e94e531 --- /dev/null +++ b/doc/phpdoc/js/menu.js @@ -0,0 +1,31 @@ +var timeout = 500; +var closetimer = 0; +var ddmenuitem = 0; + +function menu_open() { + menu_canceltimer(); + menu_close(); + ddmenuitem = $(this).find('ul').css('visibility', 'visible'); +} + +function menu_close() { + if (ddmenuitem) ddmenuitem.css('visibility', 'hidden'); +} + +function menu_timer() { + closetimer = window.setTimeout(menu_close, timeout); +} + +function menu_canceltimer() { + if (closetimer) { + window.clearTimeout(closetimer); + closetimer = null; + } +} + +$(document).ready(function() { + $('#file-nav > li').bind('mouseover', menu_open); + $('#file-nav > li').bind('mouseout', menu_timer); +}); + +document.onclick = menu_close;
\ No newline at end of file |