From 877f2a96bb522b5bff76a1d4a21d293e6aa60466 Mon Sep 17 00:00:00 2001 From: laf Date: Mon, 23 Mar 2015 21:49:37 +0000 Subject: [PATCH] Added missing mktree files --- doc/General/Credits.md | 3 + html/css/mktree.css | 23 ++++++ html/images/bullet.gif | Bin 0 -> 62 bytes html/images/minus.gif | Bin 0 -> 87 bytes html/images/plus.gif | Bin 0 -> 89 bytes html/index.php | 2 + html/js/mktree.js | 168 +++++++++++++++++++++++++++++++++++++++++ 7 files changed, 196 insertions(+) create mode 100644 html/css/mktree.css create mode 100644 html/images/bullet.gif create mode 100644 html/images/minus.gif create mode 100644 html/images/plus.gif create mode 100644 html/js/mktree.js 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 0000000000000000000000000000000000000000..6305baea0d4abcf93396243e8f8964c5c392ed0a GIT binary patch literal 62 zcmZ?wbhEHb6lM@+XkcUjf_LxUDgI;uG8q|kKzxu41CwY^|H{*E`4`XGqSv6wW_6pt L?U9EQD}yxv$P^G% literal 0 HcmV?d00001 diff --git a/html/images/minus.gif b/html/images/minus.gif new file mode 100644 index 0000000000000000000000000000000000000000..154e45a5ee2baa0bd114ee01417a3c595e13a7b4 GIT binary patch literal 87 zcmZ?wbhEHb6lM@+n8?iV|NsAnh6V-(hIjAYDgI<(WME)s&;fFRvce1uOd50gSDt>$ rpUk}_OuXTqLc+dE;T4@eYD+S|Pkc6Mr|u7}Yr0Q=o%`<0$Y2cs-bNsJ literal 0 HcmV?d00001 diff --git a/html/images/plus.gif b/html/images/plus.gif new file mode 100644 index 0000000000000000000000000000000000000000..93d2ade3d4e3ee96950d68dfd0f5b5ce496ed07f GIT binary patch literal 89 zcmZ?wbhEHb6lM@+n8?iV|NsAnh6V-(hIjAYDgI<(WME)s&;fFRvce1uOj>jLSDt>$ tpUk}_OuXTq!UNr$dn{e^8y4MN-g@gq%39AN{j|tS=f3~5*I;0<1^_HKAv6F0 literal 0 HcmV?d00001 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'])) { +