Sha256: d394938e4b13c5701c1e6eac109665adcaa1af2bce8a22f884b27d8c33865cd2
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
<script type="text/javascript"> var Footnotes = function() { function hideAll(){ Footnotes.hide(document.getElementById('assigns_debug_info')); Footnotes.hide(document.getElementById('params_debug_info')); Footnotes.hide(document.getElementById('sinatra_routes_debug_info')); Footnotes.hide(document.getElementById('session_debug_info')); Footnotes.hide(document.getElementById('cookies_debug_info')); Footnotes.hide(document.getElementById('env_debug_info')); } function hideAllAndToggle(id) { hideAll(); toggle(id) location.href = '#footnotes_debug'; } function toggle(id){ var el = document.getElementById(id); if (el.style.display == 'none') { Footnotes.show(el); } else { Footnotes.hide(el); } } function show(element) { element.style.display = 'block' } function hide(element) { element.style.display = 'none' } return { show: show, hide: hide, toggle: toggle, hideAllAndToggle: hideAllAndToggle } }(); /* Additional Javascript */ </script>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra-footnotes-0.1.1 | lib/sinatra-footnotes/script.html |
sinatra-footnotes-0.1 | lib/sinatra-footnotes/script.html |