PageSourceSearch

https://www.economistas.gr/themes/on/js/article.js?v=1.2

js economistas.gr collected 2026-10-02 08:19:19 UTC 1,381 bytes, 43 lines download raw bytes

1'use strict';
2function retrieveFeed(newsFeed, url) {
3  var e = new XMLHttpRequest();
4  (e.onreadystatechange = function () {
5    this.readyState == 4 && this.status == 200 && ((newsFeed.innerHTML = this.responseText), newsFeed.classList.add('loaded'));
6  }),
7  e.open('GET', url, !0),
8  e.setRequestHeader('Cache-Control', 'no-cache, no-store, max-age=0'),
9  e.setRequestHeader('Pragma', 'no-cache'),
10  e.send();
11}
12
13window.addEventListener('load', function () {
14  var newsFeed = document.querySelector('.news-feed-body');
15  if (newsFeed) {
16    retrieveFeed(newsFeed, '/api/newsfeed');
17  }
18  var popularFeed = document.querySelector('.popular-feed-body');
19  if (popularFeed) {
20    retrieveFeed(popularFeed, '/api/popularfeed');
21  }
22  var relatedArticles = document.querySelector('.related-articles-body');
23  if (relatedArticles) {
24    var node = document.querySelector('.node-article-full');
25    var term = node.getAttribute('data-category-term-id');
26    var nid = node.getAttribute('data-nid');
27
28    retrieveFeed(relatedArticles, '/api/related-articles/' + term + '?nid=' + nid);
29  }
30
31});
32
33window.addEventListener('message', function (msg) {
34  if (msg.origin === location.origin) {
35    if (msg.data.type === 'height') {
36      msg.source.frameElement.height = msg.data.height + 'px';
37    }
38
39    if (msg.data === 'finished') {
40      msg.source.frameElement.style = '';
41    }
42  }
43});

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.