Sha256: af19623c4cc88f071db9d8926b96eac71b20f0a8fbc57e62fef571f8052ddfbd

Contents?: true

Size: 1.61 KB

Versions: 39

Compression:

Stored size: 1.61 KB

Contents

$(document).ready(function () {
  var safuiAlert = $('#safeui-alert')
  if (safuiAlert) {
    safuiAlert
      .first()
      .delay(10000)
      .slideUp(1000, function () {
        $(this).remove()
      })
  }
})
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'
    document.getElementById('h1-img-wrapper').prepend(homeLink)

    document.getElementById('header').style.display = 'none'
    document.querySelector('.feature1-h1').style.width = '100%'
    document.querySelector('.feature1-h2').style.display = 'none'
    console.log(document.querySelector(".feature1-flex-container"));
    document.querySelector(".feature1-flex-container").style.paddingTop = "0rem"
    document.querySelector(".feature1-flex-container").style.paddingBottom = "0rem"
  }
} else {
  var removeNav = () => {
    let homeLink = document.getElementById('home-link')
    homeLink.style.marginRight = '10px'
    document.getElementById('h1-img-wrapper').prepend(homeLink)
    document
      .getElementById('h1-img-wrapper')
      .style.setProperty('align-items', 'unset', 'important')
    document.getElementById('header').style.display = 'none'
    document.getElementById('h1-img').style.display = 'none'
    document.getElementById('feature-h1').style.width = '100%'
    document.getElementById('feature-h2').style.display = 'none'
    let safeUiAlert = document.getElementById('safeui-alert')
    if (safeUiAlert) {
      safeUiAlert.style.display = 'none'
    }
  }
}

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
appscms-tools-theme-3.2.1 assets/js/theme.js
appscms-tools-theme-3.2.0 assets/js/theme.js
appscms-tools-theme-3.1.9 assets/js/theme.js
appscms-tools-theme-3.1.8 assets/js/theme.js
appscms-tools-theme-3.1.7 assets/js/theme.js
appscms-tools-theme-3.1.6 assets/js/theme.js
appscms-tools-theme-3.1.5 assets/js/theme.js
appscms-tools-theme-3.1.4 assets/js/theme.js
appscms-tools-theme-3.1.3 assets/js/theme.js
appscms-tools-theme-3.1.2 assets/js/theme.js
appscms-tools-theme-3.0.8 assets/js/theme.js
appscms-tools-theme-3.0.5 assets/js/theme.js
appscms-tools-theme-3.0.3 assets/js/theme.js
appscms-tools-theme-2.9.8 assets/js/theme.js
appscms-tools-theme-2.9.7 assets/js/theme.js
appscms-tools-theme-2.9.5 assets/js/theme.js
appscms-tools-theme-2.9.4 assets/js/theme.js
appscms-tools-theme-2.9.3 assets/js/theme.js
appscms-tools-theme-2.9.2 assets/js/theme.js
appscms-tools-theme-2.9.1 assets/js/theme.js