PageSourceSearch

https://bardeviejes.com.ar/static/articles/js/articles.js

js bardeviejes.com.ar collected 2026-10-05 06:37:55 UTC 1,007 bytes, 35 lines download raw bytes

1if (document.readyState == 'loading') {
2    document.addEventListener('DOMContentLoaded', ready)
3} else {
4    ready()
5}
6
7function ready() {
8    const bodyElement = document.querySelector('#article-body-html-source')
9    const gridElement = document.querySelector('#article-grid-container')
10    
11    if (bodyElement) {
12        const body = bodyElement.innerText
13        loadArticle(body)
14    }
15    if (gridElement) {
16        articleDescriptionsClamp()
17    }
18}
19
20function loadArticle(body) {
21    let bodyContainer = document.querySelector('.article-body-text-container')
22    // body = body.replace('<p>', '<span>').replace('</p>', '</span>')
23    bodyContainer.innerHTML += body
24    bodyContainer.firstElementChild.style.fontFamily = 'Sora, sans-serif'
25}
26
27function articleDescriptionsClamp() {
28    const descriptionContainers = document.getElementsByClassName('article-summary-description')
29
30    for (description of descriptionContainers) {
31        $clamp(description, {
32            clamp: 4,
33        })
34    }
35}

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.