Difference between revisions of "MediaWiki:Vector.js"

From Seobility Wiki
Jump to: navigation, search
(Created page with " window.onload = function () { document.querySelector('.hamburger') .onclick = openMenu } function openMenu(x) { x.classList.toggle("change") var search = docum...")
 
(No difference)

Latest revision as of 14:06, 21 November 2018


window.onload = function () {
  document.querySelector('.hamburger')
    .onclick = openMenu
}




function openMenu(x) {
  x.classList.toggle("change")

  var search = document.getElementById('p-search')
  var disp = search.classList.indexOf('block') > -1 ? 'none' : 'block'
  search.style.display = disp
}