PageSourceSearch

https://www.steelydan.com/assets/4b6adcc5/js/widget.js

js steelydan.com collected 2026-09-24 18:50:57 UTC 1,246 bytes, 50 lines download raw bytes

1// Init widgets
2window.yii.widgets = window.yii.widgets || {};
3
4// Init NavItems widget (should be initialized only once)
5window.yii.widgets.NavItems = window.yii.widgets.NavItems || (function ($) {
6    'use strict';
7
8    var widget = {};
9
10    widget.initWidget = function (widgetId) {
11
12        var WIDGET_SELECTOR = '#' + widgetId,
13            $widget         = $(WIDGET_SELECTOR);
14
15        // console.log('Init widget for: ', $widget);
16
17        _subscribeListeners($widget);
18    };
19
20    // -----------------------------------------------------------------------------------------------------------------
21    // Private module functions
22
23    function _subscribeListeners($widget) {
24
25        // When dropdown open/close
26        $widget.on('shown.bs.dropdown', '*', function (event, data) {
27
28            var $itemOpened = $(event.currentTarget);
29
30            $itemOpened
31                .find('[tabindex="-1"]')
32                .attr('tabindex', 0);
33        });
34
35
36        $widget.on('hidden.bs.dropdown', '*', function (event, data) {
37
38            var $itemClosed = $(event.currentTarget);
39
40            $itemClosed
41                .find('[tabindex="0"]')
42                .attr('tabindex', -1);
43        });
44    }
45
46
47    return widget;
48
49}(jQuery));
50

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.