PageSourceSearch

https://bib.hs-duesseldorf.de/_layouts/15/FHD.Internet/js/QuickLinks.js

js hs-duesseldorf.de collected 2026-10-02 02:34:59 UTC 3,385 bytes, 127 lines download raw bytes

1/// <reference path="jquery-1.8.3.min.js" />
2
3
4var QlColor = '#e60028';
5
6$(document).ready(function () {
7
8    if ((FHD_HasBackground && FHD_IsBodyStyle) || !FHD_IsRootSite) {
9        
10            $('.QRLinks').css('color', '#444');
11            $('.QRLinks').hover(
12                function () { $(this).css('color', '#000'); },
13                function () { $('.QRLinks').css('color', '#444'); });
14        
15
16    }
17});
18
19//toggle display
20function QlToggle() {
21    if ($('#QlContainer').css('display') == 'none') {
22        QlShow();
23    }
24    else {
25        QlHide();
26    }
27}
28
29//show quick links
30function QlShow(c) {
31
32
33    $('#QlContainer').slideDown(100);
34    $('#QLCmdshow').hide();
35    $('#QLCmdhide').show();
36
37    $('#QLTable').addClass('fhd-quickLink-border-color');
38    if (FHD_IsBodyStyle) {
39        
40        $('#QlLabel').css('color', 'black');
41        $('.arraw-top').css('border-color', 'transparent transparent black transparent');
42
43
44    }
45    
46
47    $('#QLTable').css('background-color', ' white');
48
49    if ((c.screenX == 0) || (c.clientX == 0)) {
50        $($('#QlContainer a')[0]).focus();
51
52    }
53   
54}
55
56//hide quich links
57function QlHide() {
58    $('#QlContainer').slideUp(100);
59    $('#QLCmdshow').show();
60    $('#QLCmdhide').hide();
61    $('#QLTable').removeClass('fhd-quickLink-border-color');
62//    $('#QLTable').css('border-color', 'transparent');
63    $('#QLTable').css('background-color', ' transparent');
64    if (FHD_IsBodyStyle) {
65        $('#QlLabel').css('color', FHD_Principal);
66    }
67
68
69}
70
71
72// navigation tabs
73$(document).keyup(function (e) {
74
75    //tab code
76    if (e.keyCode == 9) {
77        var focused = document.activeElement;
78        if ($(focused).parents('#QlContainer').length == 0)//out of the box
79        {
80            QlHide();
81
82        }
83    }
84});
85
86
87
88$('html').click(function (e) {
89
90    if (e.target.id != 'QlContainer' && $(e.target).parents('#QlContainer').length == 0 &&
91        e.target.id != 'QlArrowLinks' && $(e.target).parents('#QlArrowLinks').length == 0) {
92        QlHide();
93    }
94});
95
96$(window).resize(function () {
97    var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
98    var isChrome = !!window.chrome && !isOpera;
99    var isFirefox = typeof InstallTrigger !== 'undefined';   // Firefox 1.0+
100    if(isFirefox)
101    {
102        if(window.devicePixelRatio == 0.5)
103            $("#languageDiv").css('padding-top', '3px');
104        else
105        {
106            if (window.devicePixelRatio > 0.7 && window.devicePixelRatio <0.9)
107                $("#languageDiv").css('padding-top', '1px');
108        else
109                $("#languageDiv").css('padding-top', '0px');
110
111        }              
112    }
113    if(isChrome)
114    {
115        if (window.devicePixelRatio > 0.5 && window.devicePixelRatio < 0.7)
116            $("#languageDiv").css('padding-top', '3px');
117        if(window.devicePixelRatio == 0.5)
118            $("#languageDiv").css('padding-top', '1px');
119        if (window.devicePixelRatio < 0.5 && window.devicePixelRatio >0.3)
120            $("#languageDiv").css('padding-top', '5px');
121        if (window.devicePixelRatio == 0.25)
122            $("#languageDiv").css('padding-top', '5px');
123        if (window.devicePixelRatio > 0.7)
124            $("#languageDiv").css('padding-top', '0px');
125    }
126
127});

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.