Sha256: bbf5faa0928d02c47e9f2cdcd227cd7aeb2238371056795db8030c8b870f915a

Contents?: true

Size: 871 Bytes

Versions: 2

Compression:

Stored size: 871 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
appscms-tools-theme-2.5.0 assets/js/theme.js
appscms-tools-theme-2.4.6 assets/js/theme.js