Sha256: 7739fcee4d608198ebab1285c840b7079d6164323b2fe3f954b5b8a5a732dbd7
Contents?: true
Size: 367 Bytes
Versions: 3
Compression:
Stored size: 367 Bytes
Contents
ready = ()-> toggles = document.getElementsByClassName('toggle') Array.prototype.forEach.call(toggles, (t)-> collapse_id = t.dataset.collapse collapse = document.getElementById(collapse_id) t.onclick = -> $(collapse).toggleClass('rolled-down') $(t).toggleClass('rotated') ) $(document).on 'page:load', ready $(document).ready ready
Version data entries
3 entries across 3 versions & 2 rubygems