diff --git a/web/themes/custom/leshed/assets/dist/main.js b/web/themes/custom/leshed/assets/dist/main.js index b2c7c57..0f2dedc 100644 --- a/web/themes/custom/leshed/assets/dist/main.js +++ b/web/themes/custom/leshed/assets/dist/main.js @@ -1 +1 @@ -var tn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function en(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var H={exports:{}};(function(h,D){(function(w,y){h.exports=y()})(tn,function(){var w=document,y=w.createTextNode.bind(w);function b(n,t,e){n.style.setProperty(t,e)}function T(n,t){return n.appendChild(t)}function m(n,t,e,o){var r=w.createElement("span");return t&&(r.className=t),e&&(!o&&r.setAttribute("data-"+t,e),r.textContent=e),n&&T(n,r)||r}function g(n,t){return n.getAttribute("data-"+t)}function f(n,t){return!n||n.length==0?[]:n.nodeName?[n]:[].slice.call(n[0].nodeName?n:(t||w).querySelectorAll(n))}function P(n){for(var t=[];n--;)t[n]=[];return t}function c(n,t){n&&n.some(t)}function E(n){return function(t){return n[t]}}function A(n,t,e){var o="--"+t,r=o+"-index";c(e,function(i,l){Array.isArray(i)?c(i,function(a){b(a,r,l)}):b(i,r,l)}),b(n,o+"-total",e.length)}var N={};function x(n,t,e){var o=e.indexOf(n);if(o==-1){e.unshift(n);var r=N[n];if(!r)throw new Error("plugin not loaded: "+n);c(r.depends,function(l){x(l,n,e)})}else{var i=e.indexOf(t);e.splice(o,1),e.splice(i,0,n)}return e}function d(n,t,e,o){return{by:n,depends:t,key:e,split:o}}function I(n){return x(n,0,[]).map(E(N))}function s(n){N[n.by]=n}function j(n,t,e,o,r){n.normalize();var i=[],l=document.createDocumentFragment();o&&i.push(n.previousSibling);var a=[];return f(n.childNodes).some(function(u){if(u.tagName&&!u.hasChildNodes()){a.push(u);return}if(u.childNodes&&u.childNodes.length){a.push(u),i.push.apply(i,j(u,t,e,o,r));return}var p=u.wholeText||"",C=p.trim();if(C.length){p[0]===" "&&a.push(y(" "));var W=e===""&&typeof Intl.Segmenter=="function";c(W?Array.from(new Intl.Segmenter().segment(C)).map(function(O){return O.segment}):C.split(e),function(O,nn){nn&&r&&a.push(m(l,"whitespace"," ",r));var _=m(l,t,O);i.push(_),a.push(_)}),p[p.length-1]===" "&&a.push(y(" "))}}),c(a,function(u){T(l,u)}),n.innerHTML="",T(n,l),i}var v=0;function k(n,t){for(var e in t)n[e]=t[e];return n}var L="words",q=d(L,v,"word",function(n){return j(n,"word",/\s+/,0,1)}),R="chars",B=d(R,[L],"char",function(n,t,e){var o=[];return c(e[L],function(r,i){o.push.apply(o,j(r,"char","",t.whitespace&&i))}),o});function M(n){n=n||{};var t=n.key;return f(n.target||"[data-splitting]").map(function(e){var o=e["🍌"];if(!n.force&&o)return o;o=e["🍌"]={el:e};var r=n.by||g(e,"splitting");(!r||r=="true")&&(r=R);var i=I(r),l=k({},n);return c(i,function(a){if(a.split){var u=a.by,p=(t?"-"+t:"")+a.key,C=a.split(e,l,o);p&&A(e,p,C),o[u]=C,e.classList.add(u)}}),e.classList.add("splitting"),o})}function G(n){n=n||{};var t=n.target=m();return t.innerHTML=n.content,M(n),t.outerHTML}M.html=G,M.add=s;function F(n,t,e){var o=f(t.matching||n.children,n),r={};return c(o,function(i){var l=Math.round(i[e]);(r[l]||(r[l]=[])).push(i)}),Object.keys(r).map(Number).sort(V).map(E(r))}function V(n,t){return n-t}var $=d("lines",[L],"line",function(n,t,e){return F(n,{matching:e[L]},"offsetTop")}),z=d("items",v,"item",function(n,t){return f(t.matching||n.children,n)}),U=d("rows",v,"row",function(n,t){return F(n,t,"offsetTop")}),Y=d("cols",v,"col",function(n,t){return F(n,t,"offsetLeft")}),J=d("grid",["rows","cols"]),S="layout",K=d(S,v,v,function(n,t){var e=t.rows=+(t.rows||g(n,"rows")||1),o=t.columns=+(t.columns||g(n,"columns")||1);if(t.image=t.image||g(n,"image")||n.currentSrc||n.src,t.image){var r=f("img",n)[0];t.image=r&&(r.currentSrc||r.src)}t.image&&b(n,"background-image","url("+t.image+")");for(var i=e*o,l=[],a=m(v,"cell-grid");i--;){var u=m(a,"cell");m(u,"cell-inner"),l.push(u)}return T(n,a),l}),Q=d("cellRows",[S],"row",function(n,t,e){var o=t.rows,r=P(o);return c(e[S],function(i,l,a){r[Math.floor(l/(a.length/o))].push(i)}),r}),X=d("cellColumns",[S],"col",function(n,t,e){var o=t.columns,r=P(o);return c(e[S],function(i,l){r[l%o].push(i)}),r}),Z=d("cells",["cellRows","cellColumns"],"cell",function(n,t,e){return e[S]});return s(q),s(B),s($),s(z),s(U),s(Y),s(J),s(K),s(Q),s(X),s(Z),M})})(H);var rn=H.exports;const on=en(rn);(function(h,D){(function(){D.path.isFront,console.log("drupalSettings",D);function y(){console.log("LeShedTheme init()"),T(),m()}function b(g,f){return Math.floor(Math.random()*(f-g))+g}function T(){let g=document.querySelectorAll("#block-leshed-identitedusite>a, article.node-type-projet>h2");for(const f of g){console.log(f.innerText,"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");let P=on({target:f,by:"chars"});console.log("splitted",P);for(const c of P[0].words){let E=c.getElementsByClassName("char");console.log("chars",E);for(const A of E){console.log(A.innerText);let N=b(150,600),x=Math.random()>.7?1:0;A.style.fontVariationSettings=`'wght' ${N}`,A.style.fontStyle=x?"italic":"normal"}}}}function m(){document.getElementById("burger-btn").parentElement.addEventListener("click",function(f){this.firstElementChild.toggleAttribute("opened"),this.firstElementChild.nextElementSibling.toggleAttribute("opened")})}y()})()})(Drupal,drupalSettings); +var W=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function at(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var tt={exports:{}};(function(x,q){(function(w,D){x.exports=D()})(W,function(){var w=document,D=w.createTextNode.bind(w);function H(t,e,n){t.style.setProperty(e,n)}function M(t,e){return t.appendChild(e)}function I(t,e,n,l){var u=w.createElement("span");return e&&(u.className=e),n&&(!l&&u.setAttribute("data-"+e,n),u.textContent=n),t&&M(t,u)||u}function F(t,e){return t.getAttribute("data-"+e)}function j(t,e){return!t||t.length==0?[]:t.nodeName?[t]:[].slice.call(t[0].nodeName?t:(e||w).querySelectorAll(t))}function U(t){for(var e=[];t--;)e[t]=[];return e}function _(t,e){t&&t.some(e)}function E(t){return function(e){return t[e]}}function T(t,e,n){var l="--"+e,u=l+"-index";_(n,function(f,h){Array.isArray(f)?_(f,function(g){H(g,u,h)}):H(f,u,h)}),H(t,l+"-total",n.length)}var C={};function N(t,e,n){var l=n.indexOf(t);if(l==-1){n.unshift(t);var u=C[t];if(!u)throw new Error("plugin not loaded: "+t);_(u.depends,function(h){N(h,t,n)})}else{var f=n.indexOf(e);n.splice(l,1),n.splice(f,0,t)}return n}function d(t,e,n,l){return{by:t,depends:e,key:n,split:l}}function S(t){return N(t,0,[]).map(E(C))}function c(t){C[t.by]=t}function L(t,e,n,l,u){t.normalize();var f=[],h=document.createDocumentFragment();l&&f.push(t.previousSibling);var g=[];return j(t.childNodes).some(function(p){if(p.tagName&&!p.hasChildNodes()){g.push(p);return}if(p.childNodes&&p.childNodes.length){g.push(p),f.push.apply(f,L(p,e,n,l,u));return}var y=p.wholeText||"",V=y.trim();if(V.length){y[0]===" "&&g.push(D(" "));var rt=n===""&&typeof Intl.Segmenter=="function";_(rt?Array.from(new Intl.Segmenter().segment(V)).map(function(Q){return Q.segment}):V.split(n),function(Q,it){it&&u&&g.push(I(h,"whitespace"," ",u));var Z=I(h,e,Q);f.push(Z),g.push(Z)}),y[y.length-1]===" "&&g.push(D(" "))}}),_(g,function(p){M(h,p)}),t.innerHTML="",M(t,h),f}var v=0;function O(t,e){for(var n in e)t[n]=e[n];return t}var k="words",z=d(k,v,"word",function(t){return L(t,"word",/\s+/,0,1)}),$="chars",G=d($,[k],"char",function(t,e,n){var l=[];return _(n[k],function(u,f){l.push.apply(l,L(u,"char","",e.whitespace&&f))}),l});function B(t){t=t||{};var e=t.key;return j(t.target||"[data-splitting]").map(function(n){var l=n["🍌"];if(!t.force&&l)return l;l=n["🍌"]={el:n};var u=t.by||F(n,"splitting");(!u||u=="true")&&(u=$);var f=S(u),h=O({},t);return _(f,function(g){if(g.split){var p=g.by,y=(e?"-"+e:"")+g.key,V=g.split(n,h,l);y&&T(n,y,V),l[p]=V,n.classList.add(p)}}),n.classList.add("splitting"),l})}function R(t){t=t||{};var e=t.target=I();return e.innerHTML=t.content,B(t),e.outerHTML}B.html=R,B.add=c;function Y(t,e,n){var l=j(e.matching||t.children,t),u={};return _(l,function(f){var h=Math.round(f[n]);(u[h]||(u[h]=[])).push(f)}),Object.keys(u).map(Number).sort(X).map(E(u))}function X(t,e){return t-e}var K=d("lines",[k],"line",function(t,e,n){return Y(t,{matching:n[k]},"offsetTop")}),i=d("items",v,"item",function(t,e){return j(e.matching||t.children,t)}),o=d("rows",v,"row",function(t,e){return Y(t,e,"offsetTop")}),r=d("cols",v,"col",function(t,e){return Y(t,e,"offsetLeft")}),a=d("grid",["rows","cols"]),s="layout",m=d(s,v,v,function(t,e){var n=e.rows=+(e.rows||F(t,"rows")||1),l=e.columns=+(e.columns||F(t,"columns")||1);if(e.image=e.image||F(t,"image")||t.currentSrc||t.src,e.image){var u=j("img",t)[0];e.image=u&&(u.currentSrc||u.src)}e.image&&H(t,"background-image","url("+e.image+")");for(var f=n*l,h=[],g=I(v,"cell-grid");f--;){var p=I(g,"cell");I(p,"cell-inner"),h.push(p)}return M(t,g),h}),b=d("cellRows",[s],"row",function(t,e,n){var l=e.rows,u=U(l);return _(n[s],function(f,h,g){u[Math.floor(h/(g.length/l))].push(f)}),u}),P=d("cellColumns",[s],"col",function(t,e,n){var l=e.columns,u=U(l);return _(n[s],function(f,h){u[h%l].push(f)}),u}),A=d("cells",["cellRows","cellColumns"],"cell",function(t,e,n){return n[s]});return c(z),c(G),c(K),c(i),c(o),c(r),c(a),c(m),c(b),c(P),c(A),B})})(tt);var ot=tt.exports;const lt=at(ot);var et={exports:{}};(function(x){(function(q,w){x.exports?x.exports=w():q.createHyphenator=w()})(W,function(){function q(i){var o="",r="",a=0,s=i();return function(m){for(;a"&&(o(),i=!1):r[0]==="<"&&(!w(r[1])||r[1]==="/")&&(i=!0),i}}function H(i){var o=!1;return function(r,a){return o?!w(a[0])&&w(a[1])&&(r(),o=!1):!w(a[0])&&a[1]===i&&(o=!0),o}}function M(i,o){return function(){var r="",a="";function s(){r+=a,a=""}function m(b){return r="",a="",b}return function(b,P){a+=b;var A=i.reduce(function(t,e){return t||e(s,[b,P])},!1);if(!A&&(w(b)&&!w(P)&&s(),!w(b)&&w(P))){if(a.length>=o)return m([r,a]);s()}if(P==="")return(a.length1)for(var s=0,m=1;m-1;)s.push(a);return o[r.toLocaleLowerCase().replace(/\-/g,"")]=s,o},{})}function U(i){var o=0;function r(){return i[o++]}return r}function _(i){var o=0,r=i;function a(){if(r=i.slice(o++),!(r.length<3))return r}function s(){return o===2}return[a,s]}function E(i,m,r,a){for(var s=new Array(i.length+1),m=("."+m+".").split(""),b,P,A,t,e,n,l=-1,u,f,h,g,p=s.length;p--;)s[p]=0;for(u=_(m),f=u[0],h=u[1];b=f();)for(l++,h()&&l--,A=a,g=U(b);(P=g())&&(t=A[P])!==void 0;){switch(A={},e=-1,Object.prototype.toString.call(t)){case"[object Array]":A=t[0],e=t[1];break;case"[object Object]":A=t;break;case"[object Number]":e=t;break}if(!(e<0)){n=r[e];for(var y=0;y>0,e=R(o,O,d),n=R(o,v,N,B),l=b+t;if(m[l]={},i[2]&&(m[l]=Y(i[2],b),s=i[2]),n&&n.length&&(m[l]=G(m[l],X(n,b)),s=G(s,j(n))),a[l]=G({},m[l]),r&&!("Promise"in $))throw new Error("Failed to create hyphenator: Could not find global Promise object, needed for hyphenator to work in async mode");return function(u,f){f=f||{};var h=R(f,k,b),g=R(f,z,t)>>0,p=R(f,v,N,B),y=h+g;return!m[y]&&i[2]&&(m[y]=Y(i[2],h),a[y]=G(a[y],m[y])),p&&p.length&&(m[y]=G(m[y],X(p,h)),s=G(s,j(p)),a[y]=G(a[y],m[y])),T(u,P,A,a[y],s,h,e,g,r)}}return K})})(et);var ut=et.exports,J=ut,st=function(x){return{hyphenate:J(x,{async:!0}),hyphenateHTML:J(x,{async:!0,html:!0}),hyphenateHTMLSync:J(x,{html:!0}),hyphenateSync:J(x),patterns:x}},nt={exports:{}};(function(x){(function(q,w){x.exports?x.exports=w:q.hyphenationPatternsFr=w})(W,[[[2,2],[0,4],[0,0,4],[0,0,2],[0,0,3],[0,0,0,3],[0,1,2],[0,0,3,4],[0,0,0,3,4],[1],[0,2],[0,2,1],[0,0,0,0,0,1,2],[0,0,0,0,0,0,1,2],[0,0,0,0,3,4],[1,2],[0,2,2],[0,0,0,0,1,2],[0,0,0,0,2],[0,0,0,0,0,2],[0,0,0,2,3],[0,0,0,0,2,3],[0,0,0,2],[0,2,3],[0,0,0,2,0,3],[4],[2],[0,0,1,2],[0,0,1],[0,0,0,1,2],[0,0,2,1,2],[0,0,3,0,3,2],[0,3],[0,0,0,0,0,0,3],[0,0,0,0,3],[0,0,0,0,0,0,0,0,3],[0,0,0,0,0,0,0,4],[0,0,0,0,0,4],[0,0,0,2,0,0,3],[0,0,0,0,2,3,2],[0,0,2,1],[2,0,3],[0,0,0,4],[0,0,0,0,4],[0,0,2,3],[0,0,0,0,0,3],[0,0,3,2,3],[0,0,3,2],[3,2],[0,2,1,2],[0,0,0,2,1,2],[0,0,0,0,0,1],[0,0,0,0,0,0,0,3],[0,0,0,0,1],[0,0,0,0,0,0,2],[0,0,0,0,4,1],[0,1],[0,0,0,0,0,5],[0,0,0,0,0,0,4],[0,0,0,0,0,4,3],[0,0,0,0,0,0,0,2],[0,0,0,0,4,3],[0,0,0,0,0,0,0,0,2],[0,0,0,0,2,1,2],[0,3,2],[0,0,0,0,0,2,3],[0,0,0,1],[0,0,1,2,2],[0,0,0,0,0,0,3,2],[3,0,2],[0,0,0,2,1],[0,0,0,0,3,2],[0,0,4,5],[2,3],[0,0,0,0,0,3,2]],{"'":[{a:[{b:{r:{é:{a:5}}},e:{s:{c:{h:8}}},l:{c:{o:{o:{l:10}}}},m:{i:{n:{o:{a:{c:13}}}}},n:{a:{s:{t:{r:14}}},e:{s:{t:{h:{é:{s:{i:16}}}}}},t:{i:{a:12,e:[{n:{n:{e:19}}},12],é:12,s:12}}},p:{o:{s:{t:{a:21}}}},s:{t:{a:22}},r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},g:{n:{a:{t:44}}}},2],â:2,e:[{n:{a:29,o:29},u:{r:{a:50}}},2],ê:2,é:2,è:2,i:[{g:{n:{é:44,i:44}},n:{f:{o:{r:{m:{a:{t:10}}}}},a:[{n:{i:{t:20}},u:{g:{u:{r:22}}}},29],e:[{f:{f:{a:{b:22}}},p:{t:22},r:22,x:{o:{r:{a:22}}}},29],é:[{l:{u:{c:{t:{a:20}}}},n:{a:{r:{r:{a:20}}}}},29],i:[{m:{i:{t:{i:20}}},q:20,t:20},29],o:[{c:{u:{l:20}},n:{d:22}},29],s:{t:{a:{b:29}}},t:{e:{r:[{a:60,e:60,é:60,i:60,o:60,u:60,s:60},59]}},u:[{i:{t:22},l:20},29]}},2],o:[{n:{g:{u:{e:{n:{t:{".":5}}}}}},c:{t:{e:{t:10}}},u:{a:{o:{u:53}}},v:{i:{s:{c:17}}}},2],î:2,ô:2,u:2,û:2,y:2},0],".":{a:[{b:{r:{é:{a:4}}},e:{s:{c:{h:7}}},m:{i:{n:{o:{a:{c:12}}}}},n:{a:{s:{t:{r:8}}},t:{i:{a:17,e:[{n:{n:{e:18}}},17],é:17,s:17}}},p:{o:{s:{t:{a:20}}}},s:{t:{a:3}},r:{d:{e:{n:{t:{".":4}}}},g:{e:{n:{t:{".":4}}}},p:{e:{n:{t:{".":4}}}}},g:{n:{a:{t:23}}}},1],â:1,b:{a:{i:{s:{e:{m:{a:{i:{n:24}}}}}}},i:{a:{c:27,t:27,u:28},o:{a:29},s:{a:30},u:27}},c:{h:[{è:{v:{r:{e:{f:{e:{u:{i:{l:{l:{e:38}}}}}}}}}}},2],i:{s:{a:{l:{p:40}}}},o:{n:[{s:43,t:{r:{e:{s:{c:13},m:{a:{î:{t:{r:{e:33}}}}}}}}},42],o:[{l:{i:{e:44}}},27],m:{m:{e:{n:{t:{".":5}}}}}},u:{l:42}},d:{a:{c:{r:{y:{o:{a:13}}}}},é:{a:27,i:{o:28},o:27,s:[{a:{c:{r:46},m:20,t:{e:{l:{l:46}}},s:{t:{r:47}}},c:47,é:[{g:{r:46}},30],e:{n:{s:{i:{b:47}}},r:{t:47},x:{u:47}},i:[{d:46,g:{n:46},l:{i:46},n:{e:{n:46},v:{o:47}},r:46,s:{t:47}},30],o:{d:{é:46},l:46,p:{i:{l:46}},r:{m:47,p:47},u:{f:{r:47}}},œ:40,p:47,t:47,u:{n:30}},3]},i:{a:{c:{é:27,i:{d:27}},l:{d:28},m:{i:27},t:{o:{m:27}}},e:{n:27},s:{h:44}},y:{s:[{a:30,i:30,o:30,u:30},44]},o:{l:{e:{n:{t:{".":4}}}}}},e:[{n:{a:27,o:27},u:{r:{a:30}}},1],ê:1,é:[{m:{i:{n:{e:{n:{t:{".":5}}}}}}},1],è:1,i:[{g:{n:{é:23,i:23}},n:{a:[{n:{i:{t:44}},u:{g:{u:{r:3}}}},27],e:[{f:{f:{a:{b:3}}},p:{t:3},r:3,x:{o:{r:{a:3}}}},27],é:[{l:{u:{c:{t:{a:44}}}},n:{a:{r:{r:{a:44}}}}},27],i:[{m:{i:{t:{i:44}}},q:44,t:44},27],o:[{c:{u:{l:44}},n:{d:3}},27],s:{t:{a:{b:27}}},t:{e:{r:[{a:54,e:54,é:54,i:54,o:54,u:54,s:54},61]}},u:[{i:{t:3},l:44},27]}},1],m:{a:{g:{n:{i:{c:{i:{d:{e:44}}},f:{i:{c:{a:{t:44}}}}},u:{m:44}}},c:{k:44,r:{o:{s:{c:12}}}},l:{a:{d:{r:{e:{s:30},o:30}},i:{s:{é:40}},p:40,v:30},e:{n:40},i:{n:{t:40}},o:{c:40,d:30}},r:{x:40}},é:{g:{o:{h:40}},s:{a:[{n:4},3],e:{s:40},i:40,u:{s:30}},t:{a:{s:{t:{a:17}}}}},i:{l:{l:{i:{a:{m:51}}}}},o:{n:{o:{a:17,e:17,é:17,i:17,ï:{d:{é:17}},o:17,u:17,s:17}}}},p:{r:{o:{g:{n:{a:{t:{h:20}}}},é:29,s:{c:{é:29}},u:{d:{h:71}}},é:{a:[{l:{a:20},u:22},29],é:29,e:29,i:29,o:29,u:29,s:29}},a:{n:{a:{f:30,m:{é:30},r:{a:30}},i:{s:40},o:{p:{h:30,t:40}}},r:{a:{c:{h:{e:30,è:30}},s:17},h:{é:44},e:{n:{t:{".":4}}}},t:{e:{n:{t:{".":4}}}}},e:{n:{t:{a:22}},r:[{a:29,e:29,é:29,i:29,o:29,u:29},2]},é:{r:{i:{o:{s:53},s:[{s:21,t:{a:21}},17],u:17}}},h:[{a:{l:{a:{n:{s:{t:68}}}}}},2],l:{u:{r:{i:{a:51}}}},o:{n:{t:{e:{t:22}}},s:{t:{h:20,i:{n:70},o:50,r:20,s:17}}},s:{y:{c:{h:{o:{a:{n:13}}}}}},u:{d:{d:{l:29}}}},s:{t:{a:{g:{n:20}},i:{l:{l:34}}},y:{n:{g:{n:{a:{t:{h:20}}}}}},a:{r:{m:{e:{n:{t:{".":5}}}}}},e:{r:{m:{e:{n:{t:{".":5}}}}},u:{l:{e:22}}},c:{h:42},h:2,u:{b:{a:[{l:{t:47}},30],é:[{r:46},30],i:{n:40},l:{i:{m:{i:{n:44}},n:44},u:44},u:{r:40}},r:{a:[{t:46},30],e:[{a:{u:47},l:{l:47},t:47},30],é:30,h:44,i:{m:30,n:{f:40,t:40}},o:{f:40,x:40}}},o:{u:{v:{e:{n:{t:{".":5}}}}}}},o:[{n:{g:{u:{e:{n:{t:{".":4}}}}}},u:{a:{o:{u:66}}},v:{i:{s:{c:29}}}},1],î:1,k:{h:2},t:{a:{l:{e:{n:{t:{".":4}}}}},h:2,r:{i:{a:{c:29,n:29,t:29},o:{n:29}}}},g:{e:{m:{m:{e:{n:{t:{".":22}}}}}}},n:{o:{n:{o:{b:{s:40}}}}},ô:1,r:{é:{a:[{l:{e:44,i:{s:44,t:44}},u:{x:3}},27],é:27,e:[{l:3,r:3},27],è:{r:3},i:[{f:{i:44}},27],o:27,u:[{s:{s:3}},22],t:{r:{o:{a:12}}}},e:{s:[{c:{a:{p:44},i:{s:{i:44,o:44}},o:{u:44},r:{i:44}},p:{e:{c:{t:44}},i:{r:44},l:{e:{n:{d:44}}},o:{n:{s:44}}},q:{u:{i:{l:44}}},s:[{e:{n:{t:{".":5}}}},44],t:[{a:{b:7,g:7,n:{d:7},t:7},é:{n:7,r:7},i:{m:7,p:7},o:{c:7,p:7},r:[{e:{i:{n:72}},i:{c:{t:72},n:72}},7],u:7,y:7},44]},27]}},l:{a:{t:{e:{n:{t:{".":4}}}}}},u:1,û:1,y:1},a:{b:{h:3,î:{m:{e:{n:{t:{".":22}}}}},s:{t:{i:{n:{e:{n:{t:{".":45}}}}}},e:{n:{t:{".":4}}}}},d:{h:3},è:{d:{r:{e:6}}},l:{c:{o:{o:{l:9}}},a:{l:{g:{i:11}}}},n:{e:{s:{t:{h:{é:{s:{i:15}}}}}},i:{m:{e:{n:{t:{".":22}}}}},t:{i:{f:{e:{r:{m:{e:{n:{t:{".":52}}}}}}}}}},p:{o:{s:{t:{r:20}}},p:{a:{r:{e:{n:{t:{".":34}}}}}}},r:{c:{h:{i:{é:{p:{i:{s:12}}}}}},m:{i:{l:{l:57}},e:{n:{t:{".":3}}}}},s:{t:{r:{o:23}},m:{e:{n:{t:{".":3}}}}},c:{c:{e:{n:{t:{".":4}}}},q:{u:{i:{e:{s:{c:{e:{n:{t:{".":36}}}}}}}}}},g:{n:{o:{s:23}}},v:{i:{l:{l:43}}},m:{a:{l:{g:{a:{m:{e:{n:{t:{".":54}}}}}}}}},i:{m:{e:{n:{t:{".":3}}}}},u:{m:{e:{n:{t:{".":3}}}}}},b:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:[{u:{t:{i:{l:{l:33}}},m:{e:{n:{t:{".":22}}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},u:{m:{e:{n:{t:{".":22}}}}}},15],u:9,û:9,y:9},ç:9,c:{a:[{o:{u:{t:31}},p:{i:{l:{l:45}}},r:{ê:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}},v:{i:{l:{l:58}}}},g:26,l:[{e:{".":25,s:{".":25}},o:{r:{a:{c:39},é:{t:39}}}},3],m:26,n:26,p:26,r:[{e:{".":25,s:{".":25}},o:{m:{e:{n:{t:{".":18}}}}}},3],s:26,t:26,w:26,i:{e:{n:{d:{e:{n:{t:{".":45}}}}}}}},15],i:[{l:{l:5}},9],î:9,k:[{".":25,b:26,e:{".":25,s:{".":25},n:{t:{".":26}}},f:26,g:26,h:41,p:26,s:26,t:26},15],l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{e:{n:{t:{".":22}}}}}},15],o:[{a:{c:{c:28,q:28},d:27,p:28,r:28,s:{s:{o:{c:28},u:{r:28}}},u:28,x:28},é:27,e:{f:28,n:28,x:28},n:{u:{r:{b:3}},f:{i:{d:{e:{n:{t:{".":45}}}}}},t:{i:{n:{g:{e:{n:{t:{".":33}}}},e:{n:{t:{".":45}}}}}},n:{i:{v:{e:{n:{t:{".":45}}}}}}},g:{n:{i:{t:{i:44}}}},r:{p:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{p:{é:{t:{e:{n:{t:{".":45}}}}}}}},9],ô:9,œ:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{r:{r:{e:{n:{t:{".":5}}}}}},9],û:9,y:[{r:{i:{l:{l:45}}}},9],c:{i:{d:{e:{n:{t:{".":5}}}}}}},j:[{a:{c:{e:{n:{t:{".":4}}}}},k:26,e:{".":25,s:{".":25},n:{t:{".":26}}}},9],é:{c:{e:{n:{t:{".":32}}},i:{m:{e:{n:{t:{".":22}}}}},u:{m:{e:{n:{t:{".":22}}}}}},d:{e:{n:{t:{".":32}}},h:{i:3},r:{i:{e:15,q:{u:{e:15}}}}},l:{e:{c:{t:{r:15}}},é:{m:{e:{n:{t:15}}}},i:{m:{e:{n:{t:{".":22}}}}},o:{q:{u:{e:{n:{t:{".":5}}}}}}},n:{e:{r:{g:15}},i:{t:{e:{n:{t:{".":5}}}}}},p:{i:{s:{c:{o:{p:[{e:8},20]}}}}},m:{i:{l:{l:43}}},q:{u:{i:{v:{a:{l:{e:{n:{t:{".":58}}}}}},p:{o:{t:{e:{n:{t:{".":33}}}}}}},e:{n:{t:{".":32}}}}},r:{e:{n:{t:{".":32}}}}},m:{u:[{n:{i:{f:{i:{c:{e:{n:{t:{".":33}}}}}}}}},9],i:[{l:{l:[{e:{t:42}},5]},m:{e:{n:{t:{".":3}}}},t:{t:{e:{n:{t:{".":5}}}}}},9],o:[{n:{o:{v:{a:{l:{e:{n:{t:{".":33}}}}}}},t:{r:{é:{a:{l:20}}}}},y:{e:{n:{â:{g:63}}}}},9],a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{c:{o:{n:{t:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,î:9,n:{é:{m:{o:15},s:{i:15}},è:{s:15}},ô:9,œ:9,s:6,û:9,y:9},r:{é:[{t:{i:{c:{e:{n:{t:{".":34}}}}}},g:{e:{n:{t:{".":4}}}},s:{u:{r:{g:{e:{n:{t:{".":45}}}}}}},m:{a:{n:{e:{n:{t:{".":34}}}}}}},9],i:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}}},9],c:{i:{l:{l:43}}},m:{i:{l:{l:43}}},e:[{l:{e:{n:{t:{".":4}}},i:{m:{e:{n:{t:{".":18}}}}}},p:{e:{n:{t:{".":4}}}},".":25,s:{".":25},n:{t:{".":26}}},9],u:[{l:{e:{n:{t:{".":4}}}}},9],a:[{m:{e:{n:{t:{".":3}}}},i:{m:{e:{n:{t:{".":5}}}}},d:{i:{o:{a:12}}}},9],y:[{t:{h:{m:{e:{n:{t:{".":18}}}}}}},9],â:9,è:9,ê:9,h:[{e:{".":25,s:{".":25},u:{r:73}},y:{d:{r:73}}},15],î:9,o:9,ô:9,û:9},p:{r:[{i:{v:{a:{t:{d:{o:{c:{e:{n:{t:{".":35}}}},z:{e:{n:{t:{".":35}}}}}}}}}},u:{d:{e:{n:{t:{".":5}}}}},é:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{e:{n:{t:{".":5}}}}},o:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},s:{t:{a:{t:20}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:[{g:{n:{a:{b:{l:{e:44}},c:44}}},p:{i:{l:{l:45}}},s:{i:{l:{l:45}}}},9],a:[{p:{i:{l:{l:{a:45,e:45,i:45,o:{m:45}}}}},l:{é:{o:{é:12}}}},9],i:[{r:{i:{l:{l:45}}}},9],o:[{l:{y:{v:{a:{l:{e:{n:{t:{".":33}}}}}},a:17,e:17,é:17,è:17,i:17,o:17,s:17,u:17}},a:{s:{t:{r:{e:28}}}}},9],l:[{u:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],e:[{r:{m:{a:{n:{e:{n:{t:{".":45}}}}}},t:{i:{n:{e:{n:{t:{".":45}}}}}},h:5},".":25,s:{".":25},n:{t:{".":26}}},9],â:9,é:[{n:{u:{l:3}},r:{é:{q:67}}},9],è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},l:[{e:{".":25,s:{".":25}}},3],n:26,o:{t:{o:{s:12}}},r:[{e:{".":25,s:{".":25}}},3],s:26,t:[{a:{l:{é:69}},i:{s:69}},26]},15],î:9,n:{é:15,e:{u:15}},ô:9,s:{y:{c:{h:15}}},t:{è:{r:15},é:{r:15}},û:9,y:9},i:{n:{n:{o:{c:{e:{n:{t:{".":34}}}}}},c:{i:{d:{e:{n:{t:{".":34}}}}}},d:{i:{g:{e:{n:{t:{".":34}}}}},u:{l:{g:{e:{n:{t:{".":45}}}}}},o:{l:{e:{n:{t:{".":34}}}}}},t:{e:{l:{l:{i:{g:{e:{n:{t:{".":52}}}}}}}},i:{m:{e:{n:{t:{".":18}}}}}},s:{t:{i:{l:{l:33}}},o:{l:{e:{n:{t:{".":34}}}}}},f:{o:{r:{m:{a:{t:9}}}}}},s:{c:{e:{n:{t:{".":4}}},h:{é:23,i:{a:23,o:23}}},t:{a:{t:6}}},m:{m:{i:{s:{c:{e:{n:{t:{".":37}}}}},n:{e:{n:{t:{".":34}}}}},a:{n:{e:{n:{t:{".":34}}}}}},p:{u:{d:{e:{n:{t:{".":34}}}}},o:{t:{e:{n:{t:{".":34}}}}}}},a:{l:{g:{i:56}},r:{t:{h:{r:56}}}},è:{d:{r:{e:6}}},l:{l:3},b:{r:{i:{l:{l:45}}}},o:{a:{c:{t:27}},x:{y:56}},v:{a:{l:{e:{n:{t:{".":5}}}}}}},e:{s:{c:{e:{n:{t:{".":4}}},o:{p:23},h:23},t:{i:{m:{e:{n:{t:{".":18}}}}}}},n:{i:{v:{r:49}},t:{r:{e:{g:{e:{n:{t:{".":45}}}}}}}},u:{s:{t:{a:{t:27}}}},x:{t:{r:{a:[{c:19,i:19},51]}}},r:{m:{e:{n:{t:{".":3}}}}}},d:{"'":9,a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,d:{h:6},e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{a:{d:{e:{n:{t:{".":34}}}}}},t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],è:9,ê:9,i:[{s:{s:{i:{d:{e:{n:{t:{".":45}}}}}},c:{o:{p:44}},t:{i:{l:{l:33}}}},l:{i:{g:{e:{n:{t:{".":34}}}}}},a:{p:{h:{r:{a:{g:{m:{e:{n:{t:{".":62}}}}}}}}}}},9],h:{a:{l:48},o:{u:{d:48}}},î:9,l:{e:{n:{t:{".":26}}}},o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],s:6,u:9,û:9,y:9},t:{r:[{i:{d:{e:{n:{t:{".":5}}}}},u:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},a:{n:{s:{p:[{a:{r:{e:{n:{t:{".":52}}}}}},21],a:[{c:{t:71},t:{s:71}},63],h:21,o:63,u:63}}},e:{".":25,s:{".":25},n:{t:{".":26}}}},15],a:[{n:{g:{e:{n:{t:{".":5}}}}},m:{e:{n:{t:{".":3}}}},c:{h:{y:{a:12}}}},9],e:[{r:{g:{e:{n:{t:{".":5}}}}},m:{p:{é:{r:{a:{m:{e:{n:{t:{".":52}}}}}}}}},s:{t:{a:{m:{e:{n:{t:{".":45}}}}}},".":25},".":25,n:{t:{".":26}}},9],h:[{r:[{i:{l:{l:45}},e:{".":25,s:{".":25}}},3],".":25,e:{".":25,s:{".":25},r:{m:{o:{s:13}}},u:{r:73}},l:26,m:26,n:26,s:26},15],u:[{r:{b:{u:{l:{e:{n:{t:{".":45}}}}}}},m:{e:{n:{t:{".":3}}}},n:{g:{s:21}}},9],o:[{m:{e:{n:{t:{".":3}}}},r:{r:{e:{n:{t:{".":5}}}}}},9],â:9,à:9,c:{h:{i:{n:{t:74}}}},é:[{l:{é:{e:17,i:17,o:{b:17,p:17},s:17}}},9],è:9,ê:9,i:9,î:9,ô:9,t:{l:6},û:9,y:9},f:{a:[{m:{e:{n:{t:{".":3}}}}},9],â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:[{c:{u:{l:{e:{n:{t:{".":34}}}}}}},9],è:9,ê:9,i:[{r:{m:{e:{n:{t:{".":22}}}}},c:{h:{u:{m:{e:{n:{t:{".":45}}}}}}}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},i:{t:{i:{l:{l:33}}}}},15],s:6,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:9},g:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:{a:15,e:15,i:15,o:15,y:15},i:[{l:{l:5}},9],î:9,l:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],n:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],o:9,ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}},a:{m:{m:{e:{n:{t:{".":18}}}}},n:{d:{i:{l:{o:{q:{u:{e:{n:{t:{".":35}}}}}}}}}}}},15],u:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},9],û:9,s:6,y:9},s:{e:[{r:{g:{e:{n:{t:{".":5}}}},p:{e:{n:{t:{".":5}}}}},m:{i:{l:{l:37}}},s:{q:{u:{i:{a:13}}},".":25},".":25,n:{t:{".":26}}},9],u:[{c:{c:{u:{l:{e:{n:{t:{".":45}}}}}}},b:{l:{i:{m:{e:{n:{t:{".":19}}}}}},s:29},m:{e:{n:{t:{".":3}}}},r:{é:{m:{i:{n:{e:{n:{t:{".":33}}}}}}},a:{h:47}},p:{e:{r:[{o:54,s:54},55]}}},9],p:{o:{r:[{u:{l:{e:{n:{t:{".":37}}}}}},15]},a:{t:{i:{a:15}}},e:{r:{m:15}},h:{è:{r:15},é:{r:15}},i:{e:{l:15},r:{o:{s:15}}}},l:{a:{l:{o:{m:{e:{n:{t:{".":19}}}}}},v:15},o:{v:15}},a:9,â:9,c:{a:{p:{h:15}},l:{é:{r:15}},o:{p:15},h:[{".":25,e:{".":25,s:{".":25}},s:26},15]},é:9,è:9,ê:9,h:[{".":25,e:{".":25,s:{".":25},n:{t:{".":26}}},m:26,o:{m:73},r:26,s:26},15],i:9,î:9,o:9,ô:9,œ:9,t:{a:{n:{d:{a:{r:{d:15}}}}},e:{i:{n:15}},é:{r:{é:{o:{s:13}}}},i:{g:{m:15}},o:{c:{k:15},m:{o:{s:15}}},r:{o:{p:{h:15}},u:{c:{t:{u:15}}}},y:{l:{e:15}}},û:9,y:9},o:{g:{n:{o:{m:{o:{n:{i:23}}},s:{i:23}}}},p:{u:{l:{e:{n:{t:{".":5}}}}}},m:{m:{e:{n:{t:{".":3}}}},b:{u:{d:{s:65}}},n:{i:{s:17,p:{o:{t:{e:{n:{t:{".":33}}}}}}}}},r:{m:{e:{n:{t:{".":3}}}}},b:{l:{o:{n:{g:23}}}},c:{t:{e:{t:9}}},d:{l:6},è:{d:{r:{e:6}}},i:{o:{n:{i:56}}},s:{t:{a:{s:6,t:6},é:{r:{o:6}},i:{m:6},o:{m:6},r:{a:{d:6,t:{u:6}},i:{c:{t:{i:{o:{n:6}}}}}}}},x:{y:{a:29}}},w:{a:[{g:{n:44}},9],e:[{".":25,s:{".":25},n:{t:{".":26}}},9],i:9,o:9,u:9,r:15},h:{a:9,â:9,e:[{".":25,s:{".":25}},9],é:[{m:{i:{é:53},o:{p:{t:17}}}},9],è:9,ê:9,i:[{l:{l:5}},9],î:9,o:9,ô:9,u:[{m:{e:{n:{t:{".":3}}}}},9],û:9,y:[{p:{e:{r:[{a:54,e:54,é:54,i:54,o:54,s:54,u:54},55]},o:{a:17,e:17,é:17,i:17,o:17,s:17,u:17}}},9]},u:{c:{i:{l:{l:43}}},e:{v:{i:{l:{l:37}}}},v:{i:{l:{l:43}}},n:{i:{o:{v:29},a:{x:29}}},s:{t:{r:23}}},v:{a:[{c:{i:{l:{l:37}}},n:{i:{l:{l:{i:{n:45,s:45}}}}}},9],i:[{l:{l:5},d:{i:{m:{e:{n:{t:{".":18}}}}}}},9],e:[{n:{i:{m:{e:{n:{t:{".":18}}}}},t:{r:{i:{p:{o:{t:{e:{n:{t:{".":35}}}}}}}},".":26}},".":25,s:{".":25}},9],â:9,é:[{l:{o:{s:{k:{i:17}}}}},9],è:9,ê:9,î:9,o:[{l:{t:{a:{m:{p:70}}}}},9],ô:9,r:[{e:{".":25,s:{".":25},n:{t:{".":26}}}},15],u:9,û:9,y:9},l:{i:[{l:{l:5}},9],l:{i:{o:{n:32}},u:{m:{e:{n:{t:{".":22}}}}}},a:[{w:{r:{e:44}}},9],â:9,à:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,î:9,o:9,ô:9,s:{t:6},u:9,û:9,y:9,m:{e:{n:{t:{".":10}}}}},x:{i:{l:{l:5}},e:{n:{t:{".":26}}}},k:{a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,h:[{".":25},15],i:9,î:9,o:9,ô:9,r:15,u:9,û:9,y:9},â:{m:{e:{n:{t:{".":10}}}}},q:[{u:{a:{m:{e:{n:{t:{".":22}}}}},e:{".":25,s:{".":25},n:{t:{".":26}}}}},9],è:{m:{e:{n:{t:{".":10}}}}},n:{u:[{t:{r:{i:{m:{e:{n:{t:{".":45}}}}}}}},9],a:9,â:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,ê:9,i:9,î:9,o:9,ô:9,œ:9,û:9,s:{a:{t:{".":64,s:{".":64}}}},x:56,y:9},ô:{m:{e:{n:{t:{".":10}}}}},y:{a:{s:{t:{h:56}},l:{g:{i:56}}},s:{t:{o:{m:6}}}},z:{a:9,e:[{".":25,s:{".":25},n:{t:{".":26}}},9],é:9,è:9,i:9,o:9,u:9,y:9}},{}])})(nt);var ct=nt.exports,ft=st(ct);(function(x,q){(function(){q.path.isFront,console.log("drupalSettings",q);function D(){console.log("LeShedTheme init()"),I(),_()}function H(E,T){return Math.floor(Math.random()*(T-E))+E}const M={wghtThin:{min:100,max:200},wghtMedium:{min:200,max:400},wghtBold:{min:800,max:900},boldRatio:.28,mediumRatio:.12,italicOnBold:.6,italicOnMedium:.4,italicOnThin:.3};function I(){const E=document.querySelectorAll("#block-leshed-identitedusite>a, article.node-type-projet>header>h2");for(const T of E){const C=lt({target:T,by:"chars"});for(const N of C[0].words){const d=Array.from(N.getElementsByClassName("char"));j(d),U(d)}}}function F(E,T,C=new Set){const N=new Set;for(let d=0;d{let v,O;return C.has(L)?(v=M.wghtBold,O=M.italicOnBold):N.has(L)?(v=M.wghtMedium,O=M.italicOnMedium):(v=M.wghtThin,O=M.italicOnThin),{char:c,wght:H(v.min,v.max+1),ital:Math.random()c.ital)){const c=[...C,...N],L=c.length?c[H(0,c.length)]:H(0,T);d[L].ital=!0}let S=0;for(const c of d)c.ital?(S+=1,S>2&&(c.ital=!1,S=0)):S=0;for(const{char:c,wght:L,ital:v}of d)c.style.fontVariationSettings=`'wght' ${L}`,c.style.fontStyle=v?"italic":"normal",c.classList.toggle("italic",v),c.classList.toggle("normal",!v)}function U(E){if(E.length<5)return;const T="­",C=E.map(S=>S.textContent).join(""),N=ft.hyphenateSync(C);if(!N.includes(T))return;let d=0;for(const S of N)if(S===T){const c=E[d];d>0&&c&&c.parentNode&&c.parentNode.insertBefore(document.createTextNode(T),c)}else d++}function _(){document.getElementById("burger-btn").parentElement.addEventListener("click",function(T){this.firstElementChild.toggleAttribute("opened"),this.firstElementChild.nextElementSibling.toggleAttribute("opened")})}D()})()})(Drupal,drupalSettings); diff --git a/web/themes/custom/leshed/assets/dist/main3.css b/web/themes/custom/leshed/assets/dist/main3.css index cde726e..fedcd59 100644 --- a/web/themes/custom/leshed/assets/dist/main3.css +++ b/web/themes/custom/leshed/assets/dist/main3.css @@ -1 +1 @@ -@font-face{font-family:Epilogue;src:url(/main.css) format("woff2");src:url(/main.css) format("woff2") tech(variations);font-weight:100 900;font-style:italic}@font-face{font-family:Epilogue;src:url(/main2.css) format("woff2");src:url(/main2.css) format("woff2") tech(variations);font-weight:100 900;font-style:normal}body{font-family:Epilogue;font-weight:400;font-style:normal}a,a:visited{text-decoration:none;color:inherit;transition:color .15s ease-out}body{margin:0}div.layout-container{display:flex;flex-direction:column;height:100vh;overflow:hidden;max-width:1080px;margin:0 auto}div.layout-container header[role=banner]{padding:.5em 0;flex:0 1 content;z-index:100;height:50px}div.layout-container main[role=main]{flex:1 1 auto;overflow-y:scroll}header[role=banner]{background-color:#fff}header[role=banner] .header-middle{display:flex;justify-content:space-between;align-items:center;padding:.2em 2em}header[role=banner] #block-leshed-identitedusite a{text-decoration:none;font-size:2em;font-weight:500}header[role=banner] .header-right{height:20px;width:20px;cursor:pointer}header[role=banner] .header-right>div#burger-btn{position:relative;transition-duration:.5s;transition-property:transform;top:8.5px}header[role=banner] .header-right>div#burger-btn,header[role=banner] .header-right>div#burger-btn:before,header[role=banner] .header-right>div#burger-btn:after{width:20px;height:3px;background-color:red}header[role=banner] .header-right>div#burger-btn:hover,header[role=banner] .header-right>div#burger-btn:hover:before,header[role=banner] .header-right>div#burger-btn:hover:after{background-color:green}header[role=banner] .header-right>div#burger-btn:before,header[role=banner] .header-right>div#burger-btn:after{content:"";position:absolute;left:0}header[role=banner] .header-right>div#burger-btn:before{top:6px}header[role=banner] .header-right>div#burger-btn:after{bottom:6px}header[role=banner] .header-right>div#burger-btn[opened]{transform:rotate(90deg)}header[role=banner] .header-right>div.wrapper{position:absolute;top:50px;left:0;background-color:#000000bf;width:100vw;height:0;overflow:hidden;transition-duration:.5s}header[role=banner] .header-right>div.wrapper[opened]{height:calc(100vh - 50px)}header[role=banner] .header-right>div.wrapper>nav{padding-top:10px;background-color:#fff}header[role=banner] .header-right>div.wrapper>nav>ul{margin:0}header[role=banner] .header-right>div.wrapper nav#block-mathallo-navigationprincipale{padding:2em 1em}header[role=banner] .header-right>div.wrapper nav#block-mathallo-navigationprincipale ul{display:flex;justify-content:flex-end;list-style:none}header[role=banner] .header-right>div.wrapper nav#block-mathallo-navigationprincipale ul li{margin-right:1em;color:#fff;padding:.5em 1em}.splitting .word,.splitting .char{display:inline-block}.splitting .char{position:relative}.splitting .char:before,.splitting .char:after{content:attr(data-char);position:absolute;top:0;left:0;visibility:hidden;transition:inherit;-webkit-user-select:none;user-select:none}.splitting{--word-center: calc((var(--word-total) - 1) / 2);--char-center: calc((var(--char-total) - 1) / 2);--line-center: calc((var(--line-total) - 1) / 2)}.splitting .word{--word-percent: calc(var(--word-index) / var(--word-total));--line-percent: calc(var(--line-index) / var(--line-total))}.splitting .char{--char-percent: calc(var(--char-index) / var(--char-total));--char-offset: calc(var(--char-index) - var(--char-center));--distance: calc( (var(--char-offset) * var(--char-offset)) / var(--char-center) );--distance-sine: calc(var(--char-offset) / var(--char-center));--distance-percent: calc((var(--distance) / var(--char-center)))}.splitting.cells img{width:100%;display:block}@supports (display: grid){.splitting.cells{position:relative;overflow:hidden;background-size:cover;visibility:hidden}.splitting .cell-grid{background:inherit;position:absolute;top:0;left:0;width:100%;height:100%;display:grid;grid-template:repeat(var(--row-total),1fr) / repeat(var(--col-total),1fr)}.splitting .cell{background:inherit;position:relative;overflow:hidden}.splitting .cell-inner{background:inherit;position:absolute;visibility:visible;width:calc(100% * var(--col-total));height:calc(100% * var(--row-total));left:calc(-100% * var(--col-index));top:calc(-100% * var(--row-index))}.splitting .cell{--center-x: calc((var(--col-total) - 1) / 2);--center-y: calc((var(--row-total) - 1) / 2);--offset-x: calc(var(--col-index) - var(--center-x));--offset-y: calc(var(--row-index) - var(--center-y));--distance-x: calc( (var(--offset-x) * var(--offset-x)) / var(--center-x) );--distance-y: calc( (var(--offset-y) * var(--offset-y)) / var(--center-y) )}} +@font-face{font-family:Epilogue;src:url(/main.css) format("woff2");src:url(/main.css) format("woff2") tech(variations);font-weight:100 900;font-style:italic}@font-face{font-family:Epilogue;src:url(/main2.css) format("woff2");src:url(/main2.css) format("woff2") tech(variations);font-weight:100 900;font-style:normal}body{font-family:Epilogue;font-weight:400;font-style:normal}a,a:visited{text-decoration:none;color:inherit;transition:color .15s ease-out}body{margin:0}.splitting span.word,.splitting span.char{display:inline}div.layout-container{display:flex;flex-direction:column;height:100vh;overflow:hidden;max-width:1080px;margin:0 auto}div.layout-container header[role=banner]{padding:.5em 0;flex:0 1 content;z-index:100;height:50px}div.layout-container main[role=main]{flex:1 1 auto;overflow-y:scroll}header[role=banner]{background-color:#fff}header[role=banner] .header-middle{display:flex;justify-content:space-between;align-items:center;padding:.2em 0}header[role=banner] #block-leshed-identitedusite a{text-decoration:none;font-size:2em;font-weight:500}header[role=banner] .header-right{height:20px;width:20px;cursor:pointer}header[role=banner] .header-right>div#burger-btn{position:relative;transition-duration:.5s;transition-property:transform;top:8.5px}header[role=banner] .header-right>div#burger-btn,header[role=banner] .header-right>div#burger-btn:before,header[role=banner] .header-right>div#burger-btn:after{width:20px;height:3px;background-color:red}header[role=banner] .header-right>div#burger-btn:hover,header[role=banner] .header-right>div#burger-btn:hover:before,header[role=banner] .header-right>div#burger-btn:hover:after{background-color:green}header[role=banner] .header-right>div#burger-btn:before,header[role=banner] .header-right>div#burger-btn:after{content:"";position:absolute;left:0}header[role=banner] .header-right>div#burger-btn:before{top:6px}header[role=banner] .header-right>div#burger-btn:after{bottom:6px}header[role=banner] .header-right>div#burger-btn[opened]{transform:rotate(90deg)}header[role=banner] .header-right>div.wrapper{position:absolute;top:50px;left:0;background-color:#000000bf;width:100vw;height:0;overflow:hidden;transition-duration:.5s}header[role=banner] .header-right>div.wrapper[opened]{height:calc(100vh - 50px)}header[role=banner] .header-right>div.wrapper>nav{padding-top:10px;background-color:#fff}header[role=banner] .header-right>div.wrapper>nav>ul{margin:0}header[role=banner] .header-right>div.wrapper nav#block-mathallo-navigationprincipale{padding:2em 1em}header[role=banner] .header-right>div.wrapper nav#block-mathallo-navigationprincipale ul{display:flex;justify-content:flex-end;list-style:none}header[role=banner] .header-right>div.wrapper nav#block-mathallo-navigationprincipale ul li{margin-right:1em;color:#fff;padding:.5em 1em}div.layout.layout--twocol-section--50-50{flex-wrap:nowrap;column-gap:2%}div.layout.layout--twocol-section--50-50 div.layout__region{max-width:49%;flex:1 0 50%}div.layout.layout--twocol-section--50-50 div.layout__region .views-row{margin-bottom:2em;max-width:100%}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet>header>h2{margin:0;font-size:5em;font-weight:200;text-transform:lowercase;filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 15px #fff)}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet>header>h2 span.word span.char{letter-spacing:-.1em}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet.has-image>header>h2{position:relative;max-height:1em;overflow:visible;z-index:10}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet.has-image>header div.field_images{position:relative;z-index:5}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet.has-image>header div.field_images a{display:block}div.layout.layout--twocol-section--50-50 div.layout__region .views-row article.node-type-projet.has-image>header div.field_images a img{width:100%;height:auto}.splitting .word,.splitting .char{display:inline-block}.splitting .char{position:relative}.splitting .char:before,.splitting .char:after{content:attr(data-char);position:absolute;top:0;left:0;visibility:hidden;transition:inherit;-webkit-user-select:none;user-select:none}.splitting{--word-center: calc((var(--word-total) - 1) / 2);--char-center: calc((var(--char-total) - 1) / 2);--line-center: calc((var(--line-total) - 1) / 2)}.splitting .word{--word-percent: calc(var(--word-index) / var(--word-total));--line-percent: calc(var(--line-index) / var(--line-total))}.splitting .char{--char-percent: calc(var(--char-index) / var(--char-total));--char-offset: calc(var(--char-index) - var(--char-center));--distance: calc( (var(--char-offset) * var(--char-offset)) / var(--char-center) );--distance-sine: calc(var(--char-offset) / var(--char-center));--distance-percent: calc((var(--distance) / var(--char-center)))}.splitting.cells img{width:100%;display:block}@supports (display: grid){.splitting.cells{position:relative;overflow:hidden;background-size:cover;visibility:hidden}.splitting .cell-grid{background:inherit;position:absolute;top:0;left:0;width:100%;height:100%;display:grid;grid-template:repeat(var(--row-total),1fr) / repeat(var(--col-total),1fr)}.splitting .cell{background:inherit;position:relative;overflow:hidden}.splitting .cell-inner{background:inherit;position:absolute;visibility:visible;width:calc(100% * var(--col-total));height:calc(100% * var(--row-total));left:calc(-100% * var(--col-index));top:calc(-100% * var(--row-index))}.splitting .cell{--center-x: calc((var(--col-total) - 1) / 2);--center-y: calc((var(--row-total) - 1) / 2);--offset-x: calc(var(--col-index) - var(--center-x));--offset-y: calc(var(--row-index) - var(--center-y));--distance-x: calc( (var(--offset-x) * var(--offset-x)) / var(--center-x) );--distance-y: calc( (var(--offset-y) * var(--offset-y)) / var(--center-y) )}} diff --git a/web/themes/custom/leshed/assets/js/main.js b/web/themes/custom/leshed/assets/js/main.js index c68b692..053e5fe 100644 --- a/web/themes/custom/leshed/assets/js/main.js +++ b/web/themes/custom/leshed/assets/js/main.js @@ -4,6 +4,7 @@ import '../scss/main.scss' import "splitting/dist/splitting.css"; import "splitting/dist/splitting-cells.css"; import Splitting from "splitting"; +import { hyphenateSync } from "hyphen/fr"; // import Content from './vuejs/Content.vue' @@ -79,7 +80,9 @@ import Splitting from "splitting"; for (const txt of titles) { const splitted = Splitting({ target: txt, by: 'chars' }); for (const word of splitted[0].words) { - styleWordChars(Array.from(word.getElementsByClassName('char'))); + const chars = Array.from(word.getElementsByClassName('char')); + styleWordChars(chars); + hyphenateWord(chars); } } } @@ -175,6 +178,37 @@ import Splitting from "splitting"; } } + /** + * Insère des césures logicielles (U+00AD) aux points de coupure valides. + * + * Comme chaque lettre est un span (display:inline) sans « run » de texte + * continu, `hyphens: auto` est inopérant : on calcule donc les points de + * césure (motifs FR) et on insère un soft hyphen — en nœud texte, entre les + * lettres concernées — qui n'autorise une coupure (avec tiret) qu'à ces + * endroits. Les mots trop longs coupent proprement au lieu de casser + * n'importe où. + */ + function hyphenateWord(chars) { + if (chars.length < 5) return; + const SOFT = '\u00AD'; + const text = chars.map((c) => c.textContent).join(''); + const hyphenated = hyphenateSync(text); + if (!hyphenated.includes(SOFT)) return; + + let letter = 0; + for (const ch of hyphenated) { + if (ch === SOFT) { + const target = chars[letter]; + if (letter > 0 && target && target.parentNode) { + target.parentNode.insertBefore(document.createTextNode(SOFT), target); + } + } + else { + letter++; + } + } + } + function initBurgerMenu() { let header_right = document.getElementById('burger-btn'); header_right.parentElement.addEventListener('click', function(e){ diff --git a/web/themes/custom/leshed/assets/scss/main.scss b/web/themes/custom/leshed/assets/scss/main.scss index 9e7aa52..39a98a6 100644 --- a/web/themes/custom/leshed/assets/scss/main.scss +++ b/web/themes/custom/leshed/assets/scss/main.scss @@ -13,6 +13,18 @@ body{ // background-color: green; } +// Splitting met .word ET .char en inline-block : +// - inline-block sur .char crée une opportunité de coupure entre CHAQUE lettre ; +// - inline-block sur .word (dimensionné en max-content) empêche tout retour à la +// ligne interne, donc les soft hyphens ne peuvent jamais couper le mot. +// On repasse les deux en inline : le mot redevient un flux de texte qui ne coupe +// qu'aux césures logicielles (U+00AD) insérées par le JS. +// Spécificité (0,2,1) pour battre `.splitting .word/.char` de Splitting. +.splitting span.word, +.splitting span.char{ + display: inline; +} + $header_height: 50px; // _ _ @@ -179,29 +191,27 @@ header[role="banner"]{ div.layout.layout--twocol-section--50-50{ flex-wrap: nowrap; - column-gap: 1em; + column-gap: 2%; div.layout__region{ + max-width: 49%; + flex: 1 0 50%; .views-row{ // border: 1px solid red; // box-sizing: border-box; - margin-bottom: 1.5em; + margin-bottom: 2em; + max-width: 100%; article.node-type-projet{ >header{ >h2{ margin: 0; font-size: 5em; + font-weight: 200; text-transform:lowercase; + // margin-left: -0.04em; filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 15px #fff); span.word{ - hyphens: auto; - - // $bgcolor:rgba(255,255,255,0.8); - // // background-color: $bgcolor; - // border-radius: 0.8em; - // box-shadow: 0 0 20px #fff; - span.char{ - letter-spacing:-0.2em; + letter-spacing:-0.1em; } } // span.whitespace{ diff --git a/web/themes/custom/leshed/package-lock.json b/web/themes/custom/leshed/package-lock.json index 909204c..d050021 100644 --- a/web/themes/custom/leshed/package-lock.json +++ b/web/themes/custom/leshed/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "axios": "^1.7.2", "gsap": "^3.14.1", + "hyphen": "^1.14.1", "splitting": "^1.1.0", "vue": "^3.4.29" }, @@ -1697,6 +1698,12 @@ "node": ">= 6" } }, + "node_modules/hyphen": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/hyphen/-/hyphen-1.14.1.tgz", + "integrity": "sha512-kvL8xYl5QMTh+LwohVN72ciOxC0OEV79IPdJSTwEXok9y9QHebXGdFgrED4sWfiax/ODx++CAMk3hMy4XPJPOw==", + "license": "ISC" + }, "node_modules/immutable": { "version": "5.1.9", "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.9.tgz", diff --git a/web/themes/custom/leshed/package.json b/web/themes/custom/leshed/package.json index 9876054..def0d71 100644 --- a/web/themes/custom/leshed/package.json +++ b/web/themes/custom/leshed/package.json @@ -11,6 +11,7 @@ "dependencies": { "axios": "^1.7.2", "gsap": "^3.14.1", + "hyphen": "^1.14.1", "splitting": "^1.1.0", "vue": "^3.4.29" },