PageSourceSearch

https://endgbv.uk/Portals/100/Skins/DnnContra/assets/js/dnncontra.js?cdv=754

js endgbv.uk collected 2026-10-04 08:30:56 UTC 3,942 bytes, 123 lines download raw bytes

1$(document).ready(function ($) {
2    "use strict";
3
4
5    $(function () {
6        if ($('form').hasClass('showControlBar')) $('.header').addClass('admin-bar');
7    });
8
9
10    var headerEle = function () {
11        var $headerHeight = $('header').height();
12        $('.hidden-header').css({ 'height': $headerHeight + "px" });
13    };
14
15    $(window).load(function () {
16        headerEle();
17    });
18
19    $(window).resize(function () {
20        headerEle();
21    });
22	
23	if($('#dnn_AboutEmilyText').is(':empty')){
24		$('#AboutEmily').css('display','none');
25	}
26	
27	//$('.DnnModule-16059').closest('.container').css("background","black");
28
29    /*----------------------------------------------------*/
30    /*	Sticky Header
31	/*----------------------------------------------------*/
32
33    (function () {
34
35        var docElem = document.documentElement,
36			didScroll = false,
37			changeHeaderOn = 100;
38        document.querySelector('header');
39
40        function init() {
41            window.addEventListener('scroll', function () {
42                if (!didScroll) {
43                    didScroll = true;
44                    setTimeout(scrollPage, 250);
45                }
46            }, false);
47        }
48
49        function scrollPage() {
50            var sy = scrollY();
51            if (sy >= changeHeaderOn) {
52                $('.top-bar').slideUp(300);
53                $("header").addClass("fixed-header");
54                //$('.navbar-brand').css({ 'padding-top': 19 + "px", 'padding-bottom': 19 + "px" });
55
56                if (/iPhone|iPod|BlackBerry/i.test(navigator.userAgent) || $(window).width() < 479) {
57                    $('.navbar-default .navbar-nav > li > a').css({ 'padding-top': 0 + "px", 'padding-bottom': 0 + "px" })
58                } else {
59                    $('.navbar-default .navbar-nav > li > a').css({ 'padding-top': 20 + "px", 'padding-bottom': 20 + "px" })
60                    $('.search-side').css({ 'margin-top': -7 + "px" });
61                };
62
63            }
64            else {
65                $('.top-bar').slideDown(300);
66                $("header").removeClass("fixed-header");
67                //$('.navbar-brand').css({ 'padding-top': 27 + "px", 'padding-bottom': 27 + "px" });
68
69                if (/iPhone|iPod|BlackBerry/i.test(navigator.userAgent) || $(window).width() < 479) {
70                    $('.navbar-default .navbar-nav > li > a').css({ 'padding-top': 0 + "px", 'padding-bottom': 0 + "px" })
71                } else {
72                    $('.navbar-default .navbar-nav > li > a').css({ 'padding-top': 28 + "px", 'padding-bottom': 28 + "px" })
73                    $('.search-side').css({ 'margin-top': 0 + "px" });
74                };
75
76            }
77            didScroll = false;
78        }
79
80        function scrollY() {
81            return window.pageYOffset || docElem.scrollTop;
82        }
83
84        init();
85
86
87
88    })();
89
90    /*----------------------------------------------------*/
91    /*	Back Top Link
92	/*----------------------------------------------------*/
93
94    var offset = 200;
95    var duration = 500;
96    $(window).scroll(function () {
97        if ($(this).scrollTop() > offset) {
98            $('.back-to-top').fadeIn(400);
99        } else {
100            $('.back-to-top').fadeOut(400);
101        }
102    });
103    // $('.back-to-top').click(function (event) {
104    //     event.preventDefault();
105    //     $('html, body').animate({ scrollTop: 0 }, 600);
106    //     return false;
107    // })
108
109    $('.panicButtonRef').click(function (event) {
110        event.preventDefault();
111        // $('html, body').animate({ scrollTop: 0 }, 600);
112        //$('#Body').css( "display", "none" );
113        $('#Body').html("<div class='spinner-center-div'><img src='/images/loading.gif' class='spinner-center'/></div>");
114        $(location).attr('href',"https://bbc.co.uk");
115        // return false;
116    })
117
118
119
120
121
122
123});

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.