PageSourceSearch

https://www.slc.ac.uk/scripts/searchResults.js?d=160fe44767da64348eda9ce0ea42ffa7139d7103

js slc.ac.uk collected 2026-10-05 07:09:31 UTC 1,134 bytes, 42 lines download raw bytes

1// IIFE - Immediately Invoked Function Expression
2(function ($, window, document) {
3
4    // The $ is now locally scoped
5    function init() {
6
7        $(window).click(function () {
8            $('.options .menu').fadeOut();
9        });
10
11        $(document).on("click", '.options .toggle', function (event) {
12            $('.options .menu').hide();
13            $(this).siblings('.menu').fadeIn();
14            event.stopPropagation();
15            event.preventDefault();
16        });
17
18        $(document).on('keyup', '.options .toggle', function (e) {
19            if (e.keyCode === 13) {
20                $(this).siblings('.menu').fadeIn();
21            }
22            if (e.keyCode === 27) {
23                $('.options .menu').fadeOut();
24            }
25        });
26
27    }
28
29    // Listen for the jQuery ready event on the document
30    $(function () {
31        // The DOM is ready!
32        init();
33
34        $("[js-resetfilters]").on("click", function () {
35            $(this).parents("form").find("input[type=checkbox]").prop("checked", false);
36        });
37
38    });
39
40    // The rest of code goes here!
41
42}(window.jQuery, window, document));

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.