aboutsummaryrefslogtreecommitdiff
path: root/menu.js
diff options
context:
space:
mode:
Diffstat (limited to 'menu.js')
-rw-r--r--menu.js36
1 files changed, 36 insertions, 0 deletions
diff --git a/menu.js b/menu.js
new file mode 100644
index 00000000..3026dab5
--- /dev/null
+++ b/menu.js
@@ -0,0 +1,36 @@
1/**
2 * @licstart The following is the entire license notice for the
3 * JavaScript code in this page.
4 *
5 * Copyright (C) 2014 GNUnet e.V.
6 *
7 * The JavaScript code in this page is free software: you can
8 * redistribute it and/or modify it under the terms of the GNU
9 * General Public License (GNU GPL) as published by the Free Software
10 * Foundation, either version 3 of the License, or (at your option)
11 * any later version. The code is distributed WITHOUT ANY WARRANTY;
12 * without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
14 *
15 * As additional permission under GNU GPL version 3 section 7, you
16 * may distribute non-source (e.g., minimized or compacted) forms of
17 * that code without the copy of the GNU GPL normally required by
18 * section 4, provided you include this license notice and a URL
19 * through which recipients can access the Corresponding Source.
20 *
21 * @licend The above is the entire license notice
22 * for the JavaScript code in this page.
23 */
24
25// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
26
27function activate_menu()
28{
29 b = document.getElementsByClassName("m_" + document.URL.replace(/^.*(\\|\/|\:)/, '').split('.')[0])
30 for (i = 0; i < b.length; i++) {
31 s = b[i].getAttribute('class');
32 b[i].setAttribute('class', s + ' active');
33 }
34}
35
36// @license-end