Modificare il file:
\res\card-blog.js
/*minified*/ async function blogAllInOne(t,e){let o="./../Templates/";e&&(o=e);var a,r=await(await fetch(o+"all-style.hbs")).text(),l=await(await fetch(o+"all.hbs")).text(),r=Handlebars.compile(r)(t),l=Handlebars.compile(l)(t),n=document.getElementsByTagName("style");return!n||n.length<=0?((a=document.createElement("style")).innerHTML=r,document.head.appendChild(a)):(a=n[0]).innerHTML=r+a.innerHTML,l}function floatColorComponentAlpha(t){t.backgroundColor.a/=255,t.border.colors.top.a/=255,t.border.colors.bottom.a/=255,t.border.colors.left.a/=255,t.border.colors.right.a/=255,t.shadow.color.a/=255,t.txtBlock.name.style.backgroundColor.a/=255,t.txtBlock.name.style.textColor.a/=255,t.txtBlock.description.style.backgroundColor.a/=255,t.txtBlock.description.style.textColor.a/=255,t.txtBlock.details.style.backgroundColor.a/=255,t.txtBlock.details.style.textColor.a/=255,t.txtBlock.button.style.backgroundColor.a/=255,t.txtBlock.button.style.textColor.a/=255,t.txtBlock.button.border.colors.top.a/=255,t.txtBlock.button.border.colors.bottom.a/=255,t.txtBlock.button.border.colors.left.a/=255,t.txtBlock.button.border.colors.right.a/=255}function fontStyleWeightComponents(t){t.txtBlock.name.style.font.weight||(t.txtBlock.name.style.font.weight="normal"),t.txtBlock.description.style.font.weight||(t.txtBlock.description.style.font.weight="normal"),t.txtBlock.details.style.font.weight||(t.txtBlock.details.style.font.weight="normal"),t.txtBlock.button.style.font.weight||(t.txtBlock.button.style.font.weight="normal"),"regular"==t.txtBlock.name.style.font.style&&(t.txtBlock.name.style.font.style="normal"),"regular"==t.txtBlock.description.style.font.style&&(t.txtBlock.description.style.font.style="normal"),"regular"==t.txtBlock.details.style.font.style&&(t.txtBlock.details.style.font.style="normal"),"regular"==t.txtBlock.button.style.font.style&&(t.txtBlock.button.style.font.style="normal"),"bold"==t.txtBlock.name.style.font.style&&(t.txtBlock.name.style.font.weight="bold",t.txtBlock.name.style.font.style="normal"),"bold"==t.txtBlock.description.style.font.style&&(t.txtBlock.description.style.font.weight="bold",t.txtBlock.description.style.font.style="normal"),"bold"==t.txtBlock.details.style.font.style&&(t.txtBlock.details.style.font.weight="bold",t.txtBlock.details.style.font.style="normal"),"bold"==t.txtBlock.button.style.font.style&&(t.txtBlock.button.style.font.weight="bold",t.txtBlock.button.style.font.style="normal"),"bold, italic"==t.txtBlock.name.style.font.style&&(t.txtBlock.name.style.font.weight="bold",t.txtBlock.name.style.font.style="italic"),"bold, italic"==t.txtBlock.description.style.font.style&&(t.txtBlock.description.style.font.weight="bold",t.txtBlock.description.style.font.style="italic"),"bold, italic"==t.txtBlock.details.style.font.style&&(t.txtBlock.details.style.font.weight="bold",t.txtBlock.details.style.font.style="italic"),"bold, italic"==t.txtBlock.button.style.font.style&&(t.txtBlock.button.style.font.weight="bold",t.txtBlock.button.style.font.style="italic")}function getCalculatedGlobalData(t,e){var o={},o=(t.image.mouseovereffect&&("grow"==t.image.mouseovereffect?o.imageOverRule="transform: scale(1.1); ":"shrink"==t.image.mouseovereffect?o.imageOverRule="transform: scale(0.9); ":"rotate"==t.image.mouseovereffect&&(o.imageOverRule="transform: rotate(4deg); ")),e.cardBreakpoint&&(o.cardBreakpoint=e.cardBreakpoint),e.cardContentDimension&&(o.cardContentDimension=e.cardContentDimension),o.cardContentLayout="horizontal-cover-left","leftcoverrightcontents"==t.type?o.cardContentLayout="horizontal-cover-left":"leftcontentsrightcover"==t.type?o.cardContentLayout="horizontal-cover-right":"topcoverbottomcontents"==t.type?o.cardContentLayout="vertical-cover-top":"topcontentsbottomcover"==t.type&&(o.cardContentLayout="vertical-title-top"),!e.cardContentLayout||"horizontal-cover-left"!=e.cardContentLayout&&"horizontal-cover-right"!=e.cardContentLayout&&"vertical-cover-top"!=e.cardContentLayout&&"vertical-title-top"!=e.cardContentLayout&&"cover-as-background"!=e.cardContentLayout||(o.cardContentLayout=e.cardContentLayout),o.cardFixedHeight=!1,!e.cardLayoutCardArrangement||"same-height"!=e.cardLayoutCardArrangement&&"slideshow"!=e.cardLayoutCardArrangement||(o.cardFixedHeight=!0),o.isArrangeSameHeight=e.cardLayoutCardArrangement&&"same-height"==e.cardLayoutCardArrangement,o.isArrangeChangingHeight=e.cardLayoutCardArrangement&&"changing-height"==e.cardLayoutCardArrangement,o.isArrangeSlideshow=e.cardLayoutCardArrangement&&"slideshow"==e.cardLayoutCardArrangement,o.isArrangeMasonry=e.cardLayoutCardArrangement&&"masonry"==e.cardLayoutCardArrangement,o.isArrangeSameHeightOrChangingHeight=o.isArrangeSameHeight||o.isArrangeChangingHeight,o.isArrangeChangingHeightOrMasonry=o.isArrangeChangingHeight||o.isArrangeMasonry,o.isLayoutHorizontalCoverLeft="horizontal-cover-left"==o.cardContentLayout,o.isLayoutHorizontalCoverRight="horizontal-cover-right"==o.cardContentLayout,e.layoutVertMediaQuery&&(o.isLayoutHorizontalCoverLeft||o.isLayoutHorizontalCoverRight)&&(o.layoutHorizontalMediaQueryStart="@media not ("+e.layoutVertMediaQuery+") {"),o.isLayoutVerticalCoverTop="vertical-cover-top"==o.cardContentLayout||o.isLayoutHorizontalCoverLeft||o.isLayoutHorizontalCoverRight,o.isLayoutVerticalTitleTop="vertical-title-top"==o.cardContentLayout,"vertical-cover-top"!=o.cardContentLayout&&(o.layoutVerticalMediaQueryStart="@media "+(e.layoutVertMediaQuery||"(max-width: 1px)")+" {"),o.isLayoutCoverAsBackground="cover-as-background"==o.cardContentLayout,o.isLayoutVertical=o.isLayoutVerticalCoverTop||o.isLayoutVerticalTitleTop,o.isLayoutHorizontal=o.isLayoutHorizontalCoverLeft||o.isLayoutHorizontalCoverRight,o.verticalImageHeight=t.height*t.image.percentSize/100,!e.cardLayoutCardArrangement||"same-height"!=e.cardLayoutCardArrangement&&"slideshow"!=e.cardLayoutCardArrangement||"vertical-cover-top"!=o.cardContentLayout&&"vertical-title-top"!=o.cardContentLayout||(o.verticalImageHeight=t.height-t.txtBlock.height-t.txtBlock.margins.top-t.txtBlock.margins.bottom,o.verticalImageHeight<0&&(o.verticalImageHeight=0)),o.verticalTitleHeight=.3*t.height*(100-t.image.percentSize)/100,o.verticalContentsHeight=.7*t.height*(100-t.image.percentSize)/100,{...e,...o});return o}function getCalculatedDataMulti(t,e,o,a){var r=[];for(bpId in e){var l=e[bpId];r.push(getCalculatedData(t,l,o,a))}return r}function getCalculatedData(t,e,o,a){var r={};return r.currentPath=x5engine.settings.currentPath,r.id=e.id,r.isHighlighted=!1,r.cover=e.cover,r.cardCover=e.cardCover,r.cardCoverSpecified=""!==e.cardCover,r.title=e.title,r.summary=e.summary,r.relativeUrl=e.rel_url,r.category=e.category,r.escapedCategory=e.category.replace(/[\s]{1}/g,"_"),r.author=e.author,r.escapedAuthor=e.author.replace(/[\s]{1}/g,"_"),r.timestamp=e.timestamp,r.readTime=e.readTime,r}
[
Íàçàä
]