PageSourceSearch

https://www.ocr.org.uk/js/ucles.jquery.accordion.js

js ocr.org.uk collected 2026-09-24 09:21:51 UTC 884 bytes, 30 lines download raw bytes

1$(document).ready(function () {
2    "use strict";
3    $('.accordion').accordion({
4        icons: {
5            "header": "ui-icon-plus",
6            "activeHeader": "ui-icon-minus"
7        },
8        collapsible: true,
9        autoHeight: false,
10        heightStyle: "content",
11        navigation: true,
12        active: false
13    });
14
15    if (location.hash) {
16        var targetSelector = 'a[href=' + location.hash + ']';
17        if ($('.accordion').find(targetSelector).length > 0) {
18            $(targetSelector).click();
19            jQuery(window).scrollTop($(targetSelector).offset().top);
20        }
21    } else {
22        $('.accordion').accordion("option", "active", false);
23    }
24
25    $(".accordianTab").click(function () {
26        if (!(this.hash === "#" || this.hash === "")) {
27            window.location.hash = this.hash;
28        }
29    });
30});

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.