PageSourceSearch

https://www.financialexpressb2b.com/static/js/author_desc.js

js financialexpressb2b.com collected 2026-09-25 05:16:52 UTC 1,249 bytes, 34 lines download raw bytes

1function initAuthorDescReadMore() {
2        var wrappers = document.querySelectorAll('.author-desc-wrapper');
3        wrappers.forEach(function (wrapper) {
4            var text = wrapper.querySelector('.author-desc-text');
5            var btn = wrapper.querySelector('.author-desc-toggle-btn');
6            if (text && btn) {
7                if (text.scrollHeight > text.clientHeight) {
8                    btn.style.display = 'block';
9                }
10            }
11        });
12    }
13    if (document.readyState === 'loading') {
14        document.addEventListener('DOMContentLoaded', initAuthorDescReadMore);
15    } else {
16        initAuthorDescReadMore();
17    }
18
19function toggleAuthorDesc(btn) {
20    var wrapper = btn.parentElement;
21    var text = wrapper.querySelector('.author-desc-text');
22    var readMore = wrapper.querySelector('.author-desc-read-more');
23    var showLess = wrapper.querySelector('.author-desc-show-less');
24
25    if (text.classList.contains('expanded')) {
26        text.classList.remove('expanded');
27        readMore.style.display = 'inline';
28        showLess.style.display = 'none';
29    } else {
30        text.classList.add('expanded');
31        readMore.style.display = 'none';
32        showLess.style.display = 'inline';
33    }
34}

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.