PageSourceSearch

https://frontiersemi.com/Designs/admin/js/common-scripts.js

js frontiersemi.com collected 2026-10-10 00:31:12 UTC 3,446 bytes, 116 lines download raw bytes

1/*---LEFT BAR ACCORDION----*/
2$(function() {
3    $('#nav-accordion').dcAccordion({
4        eventType: 'click',
5        autoClose: true,
6        saveState: true,
7        disableLink: true,
8        speed: 'slow',
9        showCount: false,
10        autoExpand: true,
11//        cookie: 'dcjq-accordion-1',
12        classExpand: 'dcjq-current-parent'
13    });
14});
15
16var Script = function () {
17
18//    sidebar dropdown menu auto scrolling
19
20    jQuery('#sidebar .sub-menu > a').click(function () {
21        var o = ($(this).offset());
22        diff = 250 - o.top;
23        if(diff>0)
24            $("#sidebar").scrollTo("-="+Math.abs(diff),500);
25        else
26            $("#sidebar").scrollTo("+="+Math.abs(diff),500);
27    });
28
29//    sidebar toggle
30
31    $(function() {
32        function responsiveView() {
33            var wSize = $(window).width();
34            if (wSize <= 768) {
35                $('#container').addClass('sidebar-close');
36                $('#sidebar > ul').hide();
37            }
38
39            if (wSize > 768) {
40                $('#container').removeClass('sidebar-close');
41                $('#sidebar > ul').show();
42            }
43        }
44        $(window).on('load', responsiveView);
45        $(window).on('resize', responsiveView);
46    });
47
48    $('.icon-reorder').click(function () {
49        if ($('#sidebar > ul').is(":visible") === true) {
50            $('#main-content').css({
51                'margin-left': '0px'
52            });
53            $('#sidebar').css({
54                'margin-left': '-160px'
55            });
56            $('#sidebar > ul').hide();
57            $("#container").addClass("sidebar-closed");
58        } else {
59            $('#main-content').css({
60                'margin-left': '160px'
61            });
62            $('#sidebar > ul').show();
63            $('#sidebar').css({
64                'margin-left': '0'
65            });
66            $("#container").removeClass("sidebar-closed");
67        }
68    });
69
70// custom scrollbar
71    $("#sidebar").niceScroll({styler:"fb",cursorcolor:"#e8403f", cursorwidth: '3', cursorborderradius: '10px', background: '#404040', spacebarenabled:false, cursorborder: ''});
72
73    $("html").niceScroll({styler:"fb",cursorcolor:"#e8403f", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled:false,  cursorborder: '', zindex: '1000'});
74
75// widget tools
76
77    jQuery('.panel .tools .icon-chevron-down').click(function () {
78        var el = jQuery(this).parents(".panel").children(".panel-body");
79        if (jQuery(this).hasClass("icon-chevron-down")) {
80            jQuery(this).removeClass("icon-chevron-down").addClass("icon-chevron-up");
81            el.slideUp(200);
82        } else {
83            jQuery(this).removeClass("icon-chevron-up").addClass("icon-chevron-down");
84            el.slideDown(200);
85        }
86    });
87
88    jQuery('.panel .tools .icon-remove').click(function () {
89        jQuery(this).parents(".panel").parent().remove();
90    });
91
92
93//    tool tips
94
95    $('.tooltips').tooltip();
96
97//    popovers
98
99    $('.popovers').popover();
100
101
102
103// custom bar chart
104
105    if ($(".custom-bar-chart")) {
106        $(".bar").each(function () {
107            var i = $(this).find(".value").html();
108            $(this).find(".value").html("");
109            $(this).find(".value").animate({
110                height: i
111            }, 2000)
112        })
113    }
114
115
116}();

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.