Widget:A2Event
Version vom 6. Juli 2012, 19:02 Uhr von J* (Diskussion | Beiträge)
<script type="text/javascript">
$(function () { if (!window.a2){ importJS("MediaWiki:Skin/Projekt:Adventure2/lib.js"); importJS("MediaWiki:Skin/Projekt:Adventure2/parser.js"); } a2WaitForInit() }); function a2WaitForInit() { if (window.a2 && window.a2.parser) a2Init(); else window.setTimeout(a2WaitForInit, 500); } 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 = $("
");
$pre.text("\n"+String(error)); $("#bodyContent").append($pre); } } </script>