/usr/share/icinga/htdocs/js/menu.js is in icinga-cgi 1.10.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | // written by ricardo
// rewritten/enhanced by gnarf @ #jquery freenode.com
$(document).ready(function() {
$("#menu").find("h2").each(function(i) {
var img = $( '<img src="images/menu_less.gif" />' ),
elem = $( this ),
// this assumes that the UL is directly after the H2
list = elem.next();
elem.prepend( img )
.css( "cursor", "pointer" )
.toggle( function() {
img.attr('src', 'images/menu_more.gif');
list.slideToggle("slow");
}, function() {
img.attr('src', 'images/menu_less.gif');
list.slideToggle("slow");
});
});
// Links
$("div#menu ul li a").hover(function( e ) {
var speed = 200,
padding = 10,
mode = e.type === "mouseenter" ? "+=" : "-=";
$(this).parent("li").animate({
paddingLeft: mode+padding+'px'
}, speed );
});
});
|