PageSourceSearch

https://www.fehervartv.hu/jscripts/menucolorized/menucolorized.js

js fehervartv.hu collected 2026-10-02 12:10:26 UTC 662 bytes, 36 lines download raw bytes

1/*
2 *Top menu colorized
3 *hmiklos
4 *
5 *
6 * new menuColorized({
7 *     'menuClass'  : '.menu'
8 * });
9 *
10 **/
11
12(function(window) {
13
14    MenuColorized = function(options)
15    {
16        var defaults = {
17            'menuClass': '.menu'
18        }
19        this.opt = $.extend(defaults, options);
20        this.start(this);
21    }
22
23    MenuColorized.prototype.start = function(_this)
24    {
25        var $this = _this;
26        var a = 1;
27        $('ul li', _this.opt['menuClass']).not('ul ul li', _this.opt['menuClass']).each(function() {
28            $(this).addClass('menu-' + a);
29            a++;
30        });
31    }
32
33    window.MenuColorized = MenuColorized;
34
35}(window))
36

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.