PageSourceSearch

https://newjerseyglobe.com/wp-content/themes/njglobe/homepage.js?ver=1752299292

js newjerseyglobe.com collected 2026-10-02 03:05:55 UTC 1,729 bytes, 49 lines download raw bytes

1jQuery(function ($) {
2
3    var load_more_count = 0;
4
5	$('.jump-to__button').click(function(){
6		var page = $('.jump-to__input').val() ? Math.round($('.jump-to__input').val()) : 1;
7		if(page < 1 || isNaN(page)){
8			page = 1;
9		}
10		if(page > $('.jump-to__input').data('max')) {
11			page = $('.jump-to__input').data('max')
12		}
13		var url = window.location.href.split('?')[0];
14
15		location.href = url + '?number=' + page;
16	})
17
18    $('#show-more-posts').click(function (e) {
19        e.preventDefault();
20
21        var posts_to_show = 10;
22        console.log('load more');
23
24        $('.editorial_pro_block_column .single-post-wrapper.post-hidden').slice(0, posts_to_show).removeClass('post-hidden');
25
26		$('.hidden-banner').first().removeClass('hidden-banner');
27
28        if($('.editorial_pro_block_column .single-post-wrapper.post-hidden').length <= posts_to_show*2) {
29
30            console.log('ajax loading');
31            $.get('/', { offset: $('.editorial_pro_block_column .single-post-wrapper').length }, function (data) {
32                var new_posts = $(data).find('.editorial_pro_block_column .single-post-wrapper').addClass('post-hidden');
33                $('.editorial_pro_block_column .block-posts-wrapper').append(new_posts);
34                console.log('ajax loaded');
35            }, 'html');
36        }
37        if($('.editorial_pro_block_column .single-post-wrapper.post-hidden').length == 0) {
38            $('#show-more-posts').hide();
39        }
40        if(load_more_count == 0) {
41            $('body').scroll();
42        }
43        load_more_count++;
44    });
45});
46
47$(document).on('click', '.sgpb-popup-dialog-main-div-wrapper, .sgpb-popup-overlay', function (e) {
48    $('#sgpb-popup-dialog-main-div-wrapper .wp-video').empty()
49});

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.