assets/js/theme.js in appscms-tools-theme-3.3.4 vs assets/js/theme.js in appscms-tools-theme-3.3.5
- old
+ new
@@ -1,26 +1,28 @@
---
---
-document.addEventListener("DOMContentLoaded", function () {
- var safuiAlert = document.querySelector("#safeui-alert");
- if (safuiAlert) {
- setTimeout(function () {
- safuiAlert.style.transition = "1s";
- safuiAlert.style.height = "0";
- safuiAlert.style.paddingTop = "0";
- safuiAlert.style.paddingBottom = "0";
- safuiAlert.style.marginTop = "0";
- safuiAlert.style.marginBottom = "0";
- setTimeout(function () {
- safuiAlert.parentNode.removeChild(safuiAlert);
- }, 1000);
- }, 10000);
- }
-});
-let getLayout = document.getElementById("header");
+console.log('');
+if ("{{ site.safeui }}"==="true") {
+ document.addEventListener("DOMContentLoaded", function () {
+ var safuiAlert = document.querySelector("#safeui-alert");
+ if (safuiAlert) {
+ setTimeout(function () {
+ safuiAlert.style.transition = "1s";
+ safuiAlert.style.height = "0";
+ safuiAlert.style.paddingTop = "0";
+ safuiAlert.style.paddingBottom = "0";
+ safuiAlert.style.marginTop = "0";
+ safuiAlert.style.marginBottom = "0";
+ setTimeout(function () {
+ safuiAlert.parentNode.removeChild(safuiAlert);
+ }, 1000);
+ }, 10000);
+ }
+ });
+ let getLayout = document.getElementById("header");
const layout = getLayout.dataset.layout;
if (layout == "feature-1") {
var removeNav = () => {
let homeLink = document.getElementById("home-link");
homeLink.style.marginRight = "10px";
@@ -51,9 +53,13 @@
if (safeUiAlert) {
safeUiAlert.style.display = "none";
}
};
}
+}
+
+
+
if ("{{ site.removeBootstrapJs }}"==="true") {
const languagesModal = document.querySelector("#staticBackdrop");
const intModalBtn = document.querySelector("#int-modal-btn");
const closeBtn = document.querySelector("#close-modal");
intModalBtn.addEventListener("click", () => {