PageSourceSearch

https://www.taintedblood.info/scripts/plugins/NewsList/js.js?1790281984

js taintedblood.info collected 2026-09-24 20:33:18 UTC 1,157 bytes, 39 lines download raw bytes

1var thispluginWLXA;
2var currentpage;
3var usertype;
4
5function applyNewsListEvents(thisplugin, area) {
6	$('.newsitem').click(function() {
7		var thisnews = $(this);
8		var thisnewsurl = "/news/article/"+thisnews.find('.newsurl').text();
9		//console.log(thisnewsurl);
10		location.href = thisnewsurl;
11	});
12	$('#addnewarticle').click(function() {
13		location.href = "/news/article/new-article";
14	});
15};
16
17function loadNewsList(thisplugin) {
18	var scriptroot = thispluginWLXA.find('.scriptroot').text();
19	var newsarea = thispluginWLXA.find('#newsframe').attr('newsarea');
20	$('#newsframe').load(scriptroot+"/loadnewslist.php", { scriptroot: scriptroot, newsarea: newsarea, usertype: usertype }, function() {
21		applyNewsListEvents(thisplugin, "list");
22		$(this).fadeIn(500);
23	});
24};
25
26$(document).ready(function() {
27	//Public	
28	thispluginWLXA = $('#plugin-'+pluginidWLXA);
29	thispluginWLXA.next("p").remove();
30	var scriptroot = thispluginWLXA.find('.scriptroot').text();
31	currentpage = $('#locationhidden').text();
32	usertype = $('#usertype').text();
33	if (usertype == "Admin") {
34		loadNewsList(pluginidWLXA);
35	} else {
36		// Run Projects
37		loadNewsList(pluginidWLXA);
38	};
39});

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.