module Roda::RodaPlugins::ExceptionPage

def self.js

Javascript used by the HTML exception page for context toggling
def self.js
  <<END
ntexts = document.getElementsByClassName('context');
m_contexts = contexts.length;
on toggle() {
(var i = 0; i < arguments.length; i++) {
r e = document.getElementById(arguments[i]);
 (e) {
e.style.display = e.style.display == 'none' ? 'block' : 'none';
rn false;
ar j = 0; j < num_contexts; j++) {
exts[j].onclick = function(){toggle('b'+this.id, 'a'+this.id);}
exts[j].onclick();
end