PageSourceSearch

https://redcross.or.ke/wp-content/plugins/bravis-addons/assets/js/onepage.js?ver=all

js redcross.or.ke collected 2026-10-02 06:16:28 UTC 2,200 bytes, 58 lines download raw bytes

1(function ($) {
2    "use strict";
3
4    if($('.is-one-page').length){
5       $("html").addClass("pxl-onepage-wrap");
6    }
7    
8    if (typeof(one_page_options) != "undefined") {
9        one_page_options.speed = parseInt(one_page_options.speed);
10        
11        $('.is-one-page').on('click', function (e) {
12            var _this = $(this);
13            var _link = $(this).attr('href');
14            var _id_data = e.currentTarget.hash;
15            var _offset;
16            var _data_offset = $(this).attr('data-onepage-offset');
17            if(_data_offset) {
18                _offset = _data_offset;
19            } else {
20                _offset = 0;
21            }
22            if ($(_id_data).length === 1) {
23                var _target = $(_id_data);
24                $('.pxl-onepage-active').removeClass('pxl-onepage-active');
25                _this.addClass('pxl-onepage-active');
26                $('html, body').stop().animate({ scrollTop: _target.offset().top - _offset }, one_page_options.speed);   
27                return false;
28            } else {
29                window.location.href = _link;
30            }
31            return false;
32        });
33
34        $.each($('.pxl-onepage-sticky .is-one-page'), function (index, item) {
35            var target = $(item).attr('href');
36            var targets = target.split('#');
37            var el =  $('#'+targets[1]);
38            var _data_offset = $(item).attr('data-onepage-offset');
39            var waypoint = new Waypoint({
40                element: el[0],
41                handler: function(direction) {
42                    if(direction === 'down'){
43                        $('.pxl-onepage-active').removeClass('pxl-onepage-active');
44                        $(item).addClass('pxl-onepage-active');
45                    }
46                    else if(direction === 'up'){
47                        var prev = $(item).parent().prev().find('.is-one-page');
48                        $(item).removeClass('pxl-onepage-active');
49                        if(prev.length > 0)
50                            prev.addClass('pxl-onepage-active');
51                    }
52                },
53                offset: _data_offset,
54            });
55        });
56    }
57
58})(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.