PageSourceSearch

https://www.ocr.org.uk/js/ocr-redesign-mobile-view-adjustment.js

js ocr.org.uk collected 2026-10-01 11:30:16 UTC 1,160 bytes, 58 lines download raw bytes

1$(document).ready(function(){
2	PageHeaderHeightAdjustment();
3	QuickLinkAccordion();
4	StickyFooterAdjustment();
5});
6$(window).on('resize', function(){
7     QuickLinkAccordion(); 
8});
9function QuickLinkAccordion()
10{
11    if (Modernizr.mq('(max-width: 47em)'))
12	{
13        if ($( ".quick--link--container" ).data("ui-accordion")=== undefined)
14		{
15			$( ".quick--link--container" ).accordion({
16			  collapsible: true, active: false
17			});
18	   }
19    }
20    else
21	{
22		if ($( ".quick--link--container" ).data("ui-accordion")!== undefined)
23		{
24			$( ".quick--link--container" ).accordion("destroy");
25		}
26    }
27}
28
29function PageHeaderHeightAdjustment()
30{
31	if (Modernizr.mq('(max-width: 47em)')) 
32	{
33		return false;
34	}
35	else
36	{
37		$('.equal-height').matchHeight();
38	}
39}
40
41function StickyFooterAdjustment()
42{
43    UpdateCookie();
44    $(window).resize(UpdateCookie); 
45}
46
47function UpdateCookie() 
48{
49   if($(".cc-cookies").is(':visible'))
50	{
51		$(".stickyfooter").css("bottom",parseInt($(".cc-cookies").outerHeight()));
52	}
53	$(".cc-cookie-accept").off().on("click",function()
54	{
55		$(".stickyfooter").css("bottom",0);
56	});
57}
58

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.