Widget:A2debugger: Unterschied zwischen den Versionen

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
<form>
+
<form>
  <select id="a2dbgSwitch">
+
  <select id="a2dbgSwitch">
    <option value="a2dbgState">Spielstand</option>
+
    <option value="a2dbgState">Spielstand</option>
    <option value="a2dbgEventLog">Event-Log</option>
+
    <option value="a2dbgEventLog">Event-Log</option>
  </select>
+
  </select>
  <div style="height: 300px;">
+
  <div style="height: 300px;">
    <div class="a2dbgWindow" id="a2dbgState">
+
    <div class="a2dbgWindow" id="a2dbgState">
      <input type="text" id="a2dbgGoto" maxlength="3" /><input type="button" value="Los!" id="a2dbgGotoBtn"><br/>
+
      <input type="text" id="a2dbgGoto" maxlength="3" /><input type="button" value="Los!" id="a2dbgGotoBtn"><br/>
      <textarea id="a2dbgItems"></textarea><input type="button" value="Setze!" id="a2dbgItemBtn">
+
      <textarea id="a2dbgItems"></textarea><input type="button" value="Setze!" id="a2dbgItemBtn">
    </div>
+
    </div>
    <ul class="a2dbgWindow" id="a2dbgEventLog">
+
    <ul class="a2dbgWindow" id="a2dbgEventLog">
    </ul>
+
    </ul>
  </div>
+
  </div>
</form>
+
</form>
 
+
<script type="text/javascript">
+
<script type="text/javascript">
$("#a2dbgSwitch").click(function(){
+
$("#a2dbgSwitch").click(function(){
  $(".a2dbgWindow").hide();
+
  $(".a2dbgWindow").hide();
  $("#"+$(this).val()).show();
+
  $("#"+$(this).val()).show();
});
+
});
 
+
$("#a2dbgState").click();
+
$("#a2dbgSwitch").click();
</script>
+
</script>

Version vom 12. Juli 2012, 16:22 Uhr

<form>
  <select id="a2dbgSwitch">
    <option value="a2dbgState">Spielstand</option>
    <option value="a2dbgEventLog">Event-Log</option>
  </select>
      <input type="text" id="a2dbgGoto" maxlength="3" /><input type="button" value="Los!" id="a2dbgGotoBtn">
<textarea id="a2dbgItems"></textarea><input type="button" value="Setze!" id="a2dbgItemBtn">
</form>

<script type="text/javascript">
$("#a2dbgSwitch").click(function(){
  $(".a2dbgWindow").hide();
  $("#"+$(this).val()).show();
});

$("#a2dbgSwitch").click();
</script>