/usr/share/icinga/htdocs/js/menu.js is in icinga-cgi-bin 1.13.4-2build1.
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 31 32 33 | // 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" )
.click( function() {
if($(this).hasClass("collapsed")) {
img.attr('src', 'images/menu_less.gif');
$(this).removeClass("collapsed");
} else {
img.attr('src', 'images/menu_more.gif');
$(this).addClass("collapsed");
}
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 );
});
});
|