PageSourceSearch

https://www.nervesadmin.com/components/com_dailyplanetblog/assets/js/new-blog-js.js

js nervesadmin.com collected 2026-10-07 03:49:06 UTC 1,869 bytes, 58 lines download raw bytes

1jQuery(function(){
2	/* Get main color for date display */
3	var mainColor = jQuery('#content-wrap').find('h1').css('color');
4	jQuery('.post-month').css('background-color', mainColor);
5
6	/* Comments Pagination */
7	var commentsTotal = parseInt(jQuery('.comments-total').text(), 10);
8	var commentsLimit = parseInt(jQuery('.comments-limit').text(), 10);
9	var commentsLimitstart = parseInt(jQuery('.comments-limitstart').text(), 10);
10
11	var newCommentsLimit = commentsLimitstart + commentsLimit;
12
13	commentsLimitstart += 1;
14	jQuery('.comments-limitstart').text(commentsLimitstart);
15
16	if(newCommentsLimit < commentsTotal){
17		jQuery('.comments-limit').text(newCommentsLimit);
18	} else {
19		jQuery('.comments-limit').text(commentsTotal);
20	}
21
22	if(commentsTotal < 1){
23		jQuery('h3.comment-count').text('There are no comments on this post.');
24	}
25
26	if(commentsTotal < commentsLimit){
27		jQuery('.total-container').hide();
28	}
29
30	if(commentsTotal == 1){
31		jQuery('h3.comment-count').text('Comment 1 of 1');
32	}
33
34	/* Check for URL protocol */
35	jQuery('.comment-author-url').each(function(){
36		var authorURL = jQuery(this).attr('href');
37		if(authorURL.substr(0, 4) != "http"){
38			jQuery(this).attr('href', 'http://' + authorURL);
39		}
40	});
41
42	/* Tags Toggle */
43	jQuery('.post-tags-container').each(function(){
44		var clicks = 0;
45		var tagHeight = jQuery(this).children('.post-tags').outerHeight();
46		jQuery(this).children('.post-tags').css('height', '0');
47		jQuery(this).find('.tag-indicator').click(function(){
48			if(clicks == 0 ){
49				jQuery(this).removeClass('hide-tags').addClass('show-tags').siblings('.post-tags').animate({'height' : tagHeight}, 500);
50				clicks++;
51			} else {
52				jQuery(this).removeClass('show-tags').addClass('hide-tags').siblings('.post-tags').animate({'height' : '0'}, 500);
53				clicks--;
54			}
55		});
56	});
57
58});

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.