1/*! 2 * Readmore.js v1.2.0 - JavaScript plugin 3 * Author: @RoS (CORGRAS) 4 * Project home: https://corgras.github.io/readmore/ 5 * Licensed under the MIT license 6 */ 7function initReadMore(e, t, n) { var i, a = document.querySelectorAll(e); function s(e) { !n || e.matches ? a.forEach(function (e) { var n = !1, i = t.collapsedHeight || 200, a = t.speed || 500, s = t.heightMargin || 16, o = t.moreLink || '<a href="#">Ler Mais</a>', r = t.lessLink || '<a href="#">Fechar</a>', l = e.innerHTML, c = e.scrollHeight, d = document.createElement("div"); d.innerHTML = o, d.classList.add("readmore-button"), e.style.overflow = "hidden", e.style.height = i + "px", e.style.transition = "height " + a + "ms ease-in-out", e.parentNode.insertBefore(d, e.nextSibling), e.classList.add("collapsed"), c <= i && (d.style.display = "none"), d.addEventListener("click", function (t) { t.preventDefault(), (n = !n) ? (e.style.height = c + s + "px", d.innerHTML = r, e.classList.remove("collapsed")) : (e.style.height = i + "px", d.innerHTML = o, e.classList.add("collapsed")), setTimeout(function () { var t, i, a; t = e, i = !n, a = t.getBoundingClientRect().top + window.pageYOffset, window.scrollTo({ top: i ? a - 100 : a - 20, behavior: "smooth" }) }, a) }), e.innerHTML = l }) : a.forEach(function (e) { var t = e.nextElementSibling; t && t.classList.contains("readmore-button") && e.parentNode.removeChild(t) }) } n ? ((i = window.matchMedia("(max-width: " + n + "px)")).addListener(s), s(i)) : s({ matches: !0 }) }
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.