PageSourceSearch

https://www.irelandnorthwest.ie/templates/thematicblue/js/minmax.js

js irelandnorthwest.ie collected 2026-09-24 23:44:23 UTC 1,390 bytes, 62 lines download raw bytes

1var obj = new Object(), id = '';
2
3if (readCookie("first") == null)
4{
5	$("div.box-content-center").each(function() {
6		if ($(this).parent().attr("id") != "block_")
7		{
8			$(this).before('<div class="minmax"></div>');
9			id = $(this).attr("id");
10			if ($(this).css("display") == 'block')
11			{
12				createCookie("box_" + id, "block");
13			}
14			else
15			{
16				createCookie("box_" + id, "none");
17			}
18		}
19	});
20	createCookie("first", "foo");
21}
22else
23{
24	$("div.box-content-center").each(function() {
25		if ($(this).parent().attr("id") != "block_")
26		{
27			id = $(this).attr("id");
28			if (readCookie("box_" + id) == "block")
29			{
30				$(this).before('<div class="minmax" style="background-position: 0px -15px;"></div>');
31			}
32			else
33			{
34				$(this).before('<div class="minmax" style="background-position: 0px 0px;"></div>');
35			}
36			$(this).css("display", readCookie("box_" + id));
37			$(this).next().css("display", readCookie("box_" + id));
38		}
39	});
40}
41
42$("div.minmax").each(function() {
43	$(this).click(function() {
44		obj = $(this).next();
45		id = obj.attr("id");
46		if (obj.css("display") == "block")
47		{
48			$(this).css("backgroundPosition", "0px 0px");
49			obj.slideUp("slow");
50			obj.next().hide();
51			createCookie("box_" + id, "none");
52		}
53		else
54		{
55			$(this).css("backgroundPosition", "0px -15px");
56			obj.slideDown("slow");
57			obj.next().show();
58			createCookie("box_" + id, "block");
59		}
60	});
61});
62

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.