PageSourceSearch

https://paper.org.uk/app_themes/cpil/js/cpi.js

js paper.org.uk collected 2026-10-02 04:26:40 UTC 3,234 bytes, 99 lines download raw bytes

1(function($) {
2
3    $(document).ready(function() {
4
5        if ($('.InteriorPage.FullWidth').length) {
6            $('#ctl01_masterWrapper').removeClass('has-secondary-col col-on-right');
7            $('.col-secondary.cs-right').addClass('hide');
8        }
9
10        $('.contentTaggedListImageThumbnail').each(function(index, value) {
11
12            if ($(this).attr('src') == '/assets/images/ImageLibrary/NoImageAvailable.gif')
13
14            {
15                $(this).remove();
16            }
17        });
18
19
20function tableIQA() {
21if($('.coCard .rgMasterTable').length) {
22    $('.multiColumnList.coCard table > tbody > tr > td:first-child').each(function() {
23
24            var image = $(this).children('img');
25            image.remove();
26            var hasSrc = $(image).attr('src');
27            if (typeof hasSrc !== typeof undefined && hasSrc != false) {} else {
28                image = $('<img src="/Images/icons/officeIconGR.png" alt="Organization Icon">');
29            };
30
31            $(this).next('td').find('.companyLogo').append(image);
32        })
33
34        $(".multiColumnList.coCard .slide").unwrap().unwrap().unwrap().first().prev().remove();
35        $(".multiColumnList.coCard .slide").first().prev().remove();
36        $(".multiColumnList.coCard .slide").unwrap();
37        $('.multiColumnList.coCard .RadGrid.RadGrid_MetroTouch').children().remove(':not("div.slide")');
38
39}
40    }
41
42
43setInterval(tableIQA,100);
44
45        if ($('#ctl01_ciFooterContent2_ContentRecordTemplateArea_MemberCheck_ID').text().length > 0) {
46            $('body').addClass('memberColors');
47        }
48
49        //accordion
50
51        $("ul.accordion").each(function() {
52            var acc = $(this),
53                items = acc.find("li"),
54                itemToggles = items.children("a");
55
56            itemToggles.click(function(e) {
57                e.preventDefault();
58                if ($(this).hasClass("expanded")) {
59                    $(this).siblings().slideUp();
60                    $(this).removeClass("expanded");
61                    return false;
62                } else {
63                    if (!acc.hasClass("toggles")) {
64                        itemToggles.siblings().slideUp();
65                        itemToggles.removeClass("expanded");
66                    }
67                    $(this).siblings().slideToggle();
68                    $(this).toggleClass("expanded");
69                }
70
71            })
72        });
73
74        $("ul.accordion2").each(function() {
75            var acc = $(this),
76                items = acc.find("li"),
77                itemToggles = items.children("a");
78
79            itemToggles.click(function(e) {
80                e.preventDefault();
81                if ($(this).hasClass("expanded")) {
82                    $(this).siblings().slideUp();
83                    $(this).removeClass("expanded");
84                    return false;
85                } else {
86                    if (!acc.hasClass("toggles")) {
87                        itemToggles.siblings().slideUp();
88                        itemToggles.removeClass("expanded");
89                    }
90                    $(this).siblings().slideToggle();
91                    $(this).toggleClass("expanded");
92                }
93
94            })
95        });
96
97    });
98
99})(jQuery);

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.