blob: f050d084b877e2f1ac01e7868016a1f5de6ff725 [file] [log] [blame]
function DOMReady(t){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?t():document.addEventListener("DOMContentLoaded",t)}function addScript(t,e,n){var o=document.createElement("script");o.setAttribute("src",t),o.onload=e,n&&(o.async=!0),document.body.appendChild(o)}DOMReady(function(){var t=".console-output";document.querySelector(t)&&addScript("/userContent/theme/js/ansi_up.js",function(){var e=new AnsiUp,n=document.querySelector(t),o={amp:"&",apos:"'","#x27":"'","#x2F":"/","#39":"'","#47":"/",lt:"<",gt:">",nbsp:" ",quot:'"'},r=function(t){return t.replace(/&([^;]+);/gm,function(t,e){return o[e]||t})},a=function(){n.innerHTML=r(e.ansi_to_html(n.innerHTML))};a(),Ajax.Responders.register({onComplete:function(t,e){-1!=t.body.indexOf("start=")&&200==e.status&&""!=e.responseText&&a()}})},!0)});