Widget:A2Event
Version vom 7. Juli 2012, 08:13 Uhr von J* (Diskussion | Beiträge)
<script type="text/javascript"> function wait4a2 (f){ if (document.a2 && document.a2.parser) f(); else window.setTimeout(function() { wait4a2(f); }, 100); } wait4a2(function () { if (!window.a2){ importJS("MediaWiki:Skin/Projekt:Adventure2/lib.js"); importJS("MediaWiki:Skin/Projekt:Adventure2/parser.js"); } window.setTimeout(function a2Init(){ var event = {}; var error = ""; try { var event = window.a2.parser.parse(""); } catch (e) { var error = e; } if ("" == "render"){ if (!error) a2.registerEventHandler(event); } else { $pre = $("<pr"+"e/>"); $pre.text("\n"+String(error)); $("#bodyContent").append($pre); } }, 500); }); </script>