_includes/appscms/scripts/script.html in appscms-tools-theme-3.8.5 vs _includes/appscms/scripts/script.html in appscms-tools-theme-3.8.6
- old
+ new
@@ -15,12 +15,18 @@
crossorigin
{%-
endif
-%}
></script>
-{%- endif -%}
+{%- endif -%} {%- if page.layout == "appscms-home" -%}
+<script
+ defer
+ src="/assets/js/appscms-search.js"
+ crossorigin="anonymous"
+></script>
+{%- endif -%}
<script
defer
src="/assets/js/appscms-theme.js"
crossorigin="anonymous"
></script>
@@ -100,26 +106,20 @@
-%}
></script>
{%- endif -%} {%- endfor -%} {%- endif -%} {%- if scriptData.jscdns -%} {%- for
item in scriptData.jscdns -%} {{item | replace:"$folderName", page.folderName |
replace: "$fileName", page.fileName | replace: "$lang", page.lang | replace:
-"$tool", page.tool }} {%- endfor -%} {%- endif -%} {%- if page.layout == "frame"
--%} {%- assign font = "PT Sans" -%} {%- endif -%} {%- if page.layout ==
-"photo-effects-home" -%} {%- assign font = "PT Sans" -%} {%- endif -%} {%- if
-page.layout == "calculator" -%}
-<script defer src="/assets/js/calculator-tooltip.js"></script>
-{%- endif -%} {%- if page.layout == 'home-1' or page.layout == "feature-1" -%}
-{%- assign font = "Inter" -%} {%- endif -%} {%- if site.removeFontAwesome !=
-true -%}
+"$tool", page.tool }} {%- endfor -%} {%- endif -%} {%- assign font = "Inter" -%}
+{%- if site.removeFontAwesome != true -%}
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
-{%- endif -%} {%- if page.layout == "feature" -%}
+{%- endif -%} {%- if page.layout == "appscms-feature" -%}
<script>
const toaster = document.querySelector(".toaster");
if (
!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
@@ -131,8 +131,8 @@
toaster.innerHTML = `Press Ctrl + D to Bookmark this page`;
}
}
setTimeout(() => {
toaster.style.display = "none";
- }, 20000);
+ }, 10000);
</script>
{%- endif -%}