PageSourceSearch

https://asia-today.news/bitrix/cache/js/s1/asia/page_d812949e4a3b0…3b025f29a751d561dec69b_v1.js?17758241692095

js asia-today.news collected 2026-10-02 13:03:00 UTC 2,095 bytes, 67 lines download raw bytes

1
2; /* Start:"a:4:{s:4:"full";s:75:"/local/components/asia/page.nav/templates/.default/script.js?17705921211768";s:6:"source";s:60:"/local/components/asia/page.nav/templates/.default/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
3/*
4function getURI(href){
5	let l = document.createElement('a');
6	l.href = href;
7	return l.href;
8}
9document.addEventListener('DOMContentLoaded', function(){
10	
11  document.addEventListener('click', (e) => {
12    if (e.target.matches('[data-pager-load="show-more"], [data-pager-load="show-more"] *')) {
13      e.preventDefault();
14		let thisBtn = e.target;
15		if(!thisBtn.matches('[data-pager-load="show-more"]')){
16			thisBtn = thisBtn.closest('[data-pager-load="show-more"]');
17		}
18		let parentNode = thisBtn.closest('[data-pager-load="news"]');
19		if(!parentNode){
20			thisBtn.remove();
21			return false;
22		}
23		let newsList = parentNode.querySelector('[data-pager-load="news-list"]');
24		if(!newsList){
25			thisBtn.remove();
26			return false;
27		}
28		let pagen = thisBtn.getAttribute('data-pager-load-param');
29		if(!pagen){
30			thisBtn.remove();
31			return false;
32		}
33		let fetchUrl = getURI(thisBtn.getAttribute('href'));
34		fetchUrl = new URL(fetchUrl);
35		fetchUrl.searchParams.set('ACTION', 'NEWS');
36		if(fetchUrl){
37			fetch(fetchUrl, {})
38			.then(response => response.json())
39			.then(dataJson => {
40				if('RESPONSE' in dataJson){
41					newsList.insertAdjacentHTML('beforeend', dataJson.RESPONSE);
42				}
43				if('NEXT' in dataJson && 'PAGE' in dataJson){
44					if(dataJson.NEXT===false){
45						thisBtn.remove();
46						return false;
47					}else{
48						let newFetch = getURI(fetchUrl);
49						fetchUrl = new URL(fetchUrl);
50						fetchUrl.searchParams.delete(pagen);
51						fetchUrl.searchParams.delete('ACTION');
52						fetchUrl.searchParams.set(pagen, parseInt(dataJson.PAGE)+1);
53						thisBtn.setAttribute('href', fetchUrl.href);
54					}
55				}else{
56					thisBtn.remove();
57					return false;
58				}
59			})
60		}
61    }
62  });
63  
64});
65*/
66/* End */
67;; /* /local/components/asia/page.nav/templates/.default/script.js?17705921211768*/

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.