Hilfe:Helferlein/Awards/Konfiguration: Unterschied zwischen den Versionen
Aus Stupidedia, der sinnfreien Enzyklopädie!
< Hilfe:Helferlein | Awards
K (Versiegelte Hilfe:Helferlein/Awards/Konfiguration: Geht wohl doch nur so ([Bearbeiten=Nur Diktatoren] (unbeschränkt) [Verschieben=Nur Diktatoren] (unbeschränkt))) |
K |
||
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
Zeile 2: | Zeile 2: | ||
<noscript>Diese Seite benötigt JavaScript.</noscript> | <noscript>Diese Seite benötigt JavaScript.</noscript> | ||
<span class="wait">Bitte warten...</span> | <span class="wait">Bitte warten...</span> | ||
− | <table style="display: none;" id=" | + | <table style="display: none;" id="awardcon"></table> |
<script type="text/javascript"> | <script type="text/javascript"> | ||
Zeile 14: | Zeile 14: | ||
awardcon.init = function() { | awardcon.init = function() { | ||
$( 'span.wait' ).hide(); | $( 'span.wait' ).hide(); | ||
− | $( 'table# | + | $( 'table#awardcon' ).show().after( '<input type=button onclick=awardcon.save(); value="Speichern" /> <input onclick=awardcon.reset(); type=button value="Zurücksetzen" />' ); |
awardcon.comments = gAwards.comments; | awardcon.comments = gAwards.comments; | ||
awardcon.liste(); | awardcon.liste(); | ||
Zeile 27: | Zeile 27: | ||
table += '<tr><td>' + c + '</td><td><input name="' + c.toLowerCase() + '" type="text" value="' + comment + '" style="width: 100%;" /></td></tr>'; | table += '<tr><td>' + c + '</td><td><input name="' + c.toLowerCase() + '" type="text" value="' + comment + '" style="width: 100%;" /></td></tr>'; | ||
}); | }); | ||
− | $( 'table# | + | $( 'table#awardcon' ).html( table ); |
}; | }; | ||
awardcon.change = function (){ | awardcon.change = function (){ | ||
awardcon.comments = { | awardcon.comments = { | ||
− | + | Gold: $( 'table#awardcon input[name="gold"]' ).val(), | |
Silber: $( 'table#awardcon input[name="silber"]' ).val(), | Silber: $( 'table#awardcon input[name="silber"]' ).val(), | ||
− | + | Bronze: $( 'table#awardcon input[name="bronze"]' ).val() | |
}; | }; | ||
console.log(awardcon.comments); | console.log(awardcon.comments); | ||
Zeile 59: | Zeile 59: | ||
</script> | </script> | ||
<style type="text/css"> | <style type="text/css"> | ||
− | table# | + | table#awardcon{ |
width: 100%; | width: 100%; | ||
-webkit-border-radius: 5px; | -webkit-border-radius: 5px; |
Aktuelle Version vom 10. Januar 2016, 16:28 Uhr
Bitte warten...