text: function has_class(e,s){return e.classList?e.classList.contains(s):new RegExp("(^| )"+s+"( |$)","gi").test(e.className)}function add_class(e,s){e.classList?e.classList.add(s):e.className+=" "+s}function toggle_class(e,s){if(e.classList)e.classList.toggle(s);else{var a=e.className.split(" "),t=a.indexOf(s);t>=0?a.splice(t,1):a.push(s),e.className=a.join(" ")}}function wrap(e,s){e.parentNode.insertBefore(s,e),s.appendChild(e)}function add_event(e,s,a,t){s&&(e.addEventListener?e.addEventListener(s,a,!!t):e.attachEvent("on"+s,a))}var i=0,tables=document.querySelectorAll("table.docutils");for(i=0;i<tables.length;i++)if(!has_class(tables[i],"footnote")&&!has_class(tables[i],"field-list")){var wrapper=document.createElement("div");wrapper.className="jast-responsive-table",wrap(tables[i],wrapper)}var nav_toggle=document.getElementById("js-navigation-toggle"),nav=document.getElementById("js-sidebar");add_event(nav_toggle,"click",function(){toggle_class(document.body,"mobile-menu-open")});