temwp-kea/funcions.js

26 líneas
429 B
JavaScript

var show = function (elem) {
elem.style.display = 'block';
};
var hide = function (elem) {
elem.style.display = 'none';
};
var toggle = function (elem) {
// If the element is visible, hide it
if (window.getComputedStyle(elem).display === 'block') {
hide(elem);
return;
}
// Otherwise, show it
show(elem);
};
var montruMenuo = function () {
var objekto = document.querySelector('#menupral');
toggle(objekto);
}