Sha256: 9883cedf480784fa945d6852d1af1bcaacf23f70888c7337accd21f1ce6d59de
Contents?: true
Size: 392 Bytes
Versions: 2
Compression:
Stored size: 392 Bytes
Contents
function toggle(element) { if(displayStyle(element) === 'none') { element.style.display = 'block'; } else { element.style.display = 'none'; } } function displayStyle(element) { return getComputedStyle(element, null).display; } window.onload = function() { document.getElementById("toggle-bis").onclick = function fun() { toggle(document.getElementById("bis")); } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coco-0.15.0 | template/js/coco.js |
coco-0.14.0 | template/js/coco.js |