PageSourceSearch

https://www.franceparkinson.fr/wp-content/cache/min/1/wp-content/t…/theme-fp/js/read-smore.js?ver=1790087037

js franceparkinson.fr collected 2026-09-24 21:45:50 UTC 1,509 bytes, 3 lines download raw bytes

1const b={blockClassName:"read-smore",wordsCount:70,charsCount:150,moreText:'<div><span>Voir plus</span></div>',lessText:'<div><span>Voir moins</span></div>',isInline:!1};function n(n,t){t=Object.assign({},b,t);let r={originalContentArr:[],truncatedContentArr:[]};function s(b,s){const o=b.dataset.readSmoreWords||t.wordsCount,a=b.dataset.readSmoreChars||o,i=b.innerHTML,c=function(b,n,t=!1){const r=function(b){return b.replace(/(^\s*)|(\s*$)/gi,"")}(b);return t?r.split("").slice(0,n).join("")+"...":r.split(/\s+/).slice(0,n).join(" ")+"..."}(i,a,!!b.dataset.readSmoreChars),l=b.dataset.readSmoreWords?i.length:function(b){return b.length}(i);if(r.originalContentArr.push(i),r.truncatedContentArr.push(c),a<l){b.innerHTML=r.truncatedContentArr[s],function(b){const s=document.createElement("span");s.className=`${t.blockClassName}__link-wrap`,s.innerHTML=`<button type="button" id=${t.blockClassName}_${b}\n class=${t.blockClassName}__link\n style="cursor:pointer;">\n ${t.moreText}\n </button>`,n[b].after(s),function(b){document.querySelector(`#${t.blockClassName}_${b}`).addEventListener("click",(s=>{n[b].classList.toggle("is-expanded");const o=s.currentTarget;"true"!==o.dataset.clicked?(n[b].innerHTML=r.originalContentArr[b],o.innerHTML=t.lessText,o.dataset.clicked=!0):(n[b].innerHTML=r.truncatedContentArr[b],o.innerHTML=t.moreText,o.dataset.clicked=!1)}))}(b)}(s)}}
2return{init:function(){for(let b=0,t=n.length;b<t;++b)s(n[b],b)}}}
3n.options=b;n(document.querySelectorAll(".js-read-smore")).init()

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.