diff --git a/doc/General/Credits.md b/doc/General/Credits.md index a6e1991a1..ed1b32ffb 100644 --- a/doc/General/Credits.md +++ b/doc/General/Credits.md @@ -14,6 +14,9 @@ LibreNMS ships with the following software components: http://momentjs.com MIT License +- MKTree + http://www.javascripttoolbox.com/lib/mktree/ + MIT and GPL License Other components (needs details filled in): - JpGraph (html/includes/jpgraph): QPL 1.0 license diff --git a/html/css/mktree.css b/html/css/mktree.css new file mode 100644 index 000000000..540706e83 --- /dev/null +++ b/html/css/mktree.css @@ -0,0 +1,23 @@ +/* Put this inside a @media qualifier so Netscape 4 ignores it */ +@media screen, print { + /* Turn off list bullets */ + ul.mktree li { list-style: none; } + /* Control how "spaced out" the tree is */ + ul.mktree, ul.mktree ul , ul.mktree li { margin-left:10px; padding:0px; } + /* Provide space for our own "bullet" inside the LI */ + ul.mktree li .bullet { padding-left: 15px; } + /* Show "bullets" in the links, depending on the class of the LI that the link's in */ + ul.mktree li.liOpen .bullet { cursor: pointer; background: url(/images/minus.gif) center left no-repeat; } + ul.mktree li.liClosed .bullet { cursor: pointer; background: url(/images/plus.gif) center left no-repeat; } + ul.mktree li.liBullet .bullet { cursor: default; background: url(/images/bullet.gif) center left no-repeat; } + /* Sublists are visible or not based on class of parent LI */ + ul.mktree li.liOpen ul { display: block; } + ul.mktree li.liClosed ul { display: none; } + + /* Format menu items differently depending on what level of the tree they are in */ + /* Uncomment this if you want your fonts to decrease in size the deeper they are in the tree */ +/* + ul.mktree li ul li { font-size: 90% } +*/ + +} diff --git a/html/images/bullet.gif b/html/images/bullet.gif new file mode 100644 index 000000000..6305baea0 Binary files /dev/null and b/html/images/bullet.gif differ diff --git a/html/images/minus.gif b/html/images/minus.gif new file mode 100644 index 000000000..154e45a5e Binary files /dev/null and b/html/images/minus.gif differ diff --git a/html/images/plus.gif b/html/images/plus.gif new file mode 100644 index 000000000..93d2ade3d Binary files /dev/null and b/html/images/plus.gif differ diff --git a/html/index.php b/html/index.php index 476771408..895263fd0 100755 --- a/html/index.php +++ b/html/index.php @@ -165,6 +165,7 @@ if (empty($config['favicon'])) { + @@ -177,6 +178,7 @@ if (empty($config['favicon'])) { +