_includes/appscms/scripts/script.html in appscms-tools-theme-4.8.1 vs _includes/appscms/scripts/script.html in appscms-tools-theme-4.8.2

- old
+ new

@@ -15,27 +15,26 @@ crossorigin {%- endif -%} ></script> -{%- endif -%} -{%- if site.search -%} -{%- if page.layout == "appscms-home" or page.layout == "contenttool-home" -%} +{%- endif -%} {%- if site.search -%} {%- if page.layout == "appscms-home" or +page.layout == "contenttool-home" -%} <script defer src="/assets/js/appscms-search.js" crossorigin="anonymous" ></script> -{%- endif -%} -{%- endif -%} +{%- endif -%} {%- endif -%} - <script defer src="/assets/js/appscms-theme.js" crossorigin="anonymous" ></script> +<script defer src="/assets/js/appscms-infographics.js"></script> + {%- if site.userTrackingCount -%} {%- include customScripts.html -%} {%- endif -%} {%- if site.userTrackingCount and page.layout == "feature" -%} <script defer src="/assets/js/usageTracking.js"></script> <script defer src="/assets/js/usageTrackingEvents.js"></script> <script defer src="/assets/js/sharePage.js"></script> @@ -119,15 +118,12 @@ 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 -%} -{%- include google-analytics.html - -%} -{%- if site.bookmark -%} -{%- if page.layout == "appscms-feature" -%} +{%- endif -%} {%- include google-analytics.html -%} {%- if site.bookmark -%} {%- +if page.layout == "appscms-feature" -%} <script> const toaster = document.querySelector(".toaster"); if ( !/webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent @@ -136,16 +132,13 @@ if (navigator.userAgent.indexOf("Mac OS X") != -1) { toaster.innerHTML = `Press Command + D to Bookmark this page`; } else { toaster.innerHTML = `Press Ctrl + D to Bookmark this page`; } - } - else{ + } else { toaster.style.display = "none"; } setTimeout(() => { toaster.style.display = "none"; }, 10000); </script> -{%- endif -%} -{%- endif -%} - +{%- endif -%} {%- endif -%}