5.659
Bearbeitungen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 67: | Zeile 67: | ||
} | } | ||
div#{{{banner}}} #{{{banner}}}-facts { | div#{{{banner}}} #{{{banner}}}-facts { | ||
background: # | background: #ffcc00 url(//upload.wikimedia.org/wikipedia/donate/c/c0/Information-icon.png) no-repeat 10px 8px; | ||
min-height: 65px; | min-height: 65px; | ||
padding: 0; | padding: 0; | ||
Zeile 77: | Zeile 77: | ||
div#{{{banner}}} #{{{banner}}}-facts p { | div#{{{banner}}} #{{{banner}}}-facts p { | ||
color: #000; | color: #000; | ||
font-size: | font-size: 13px; | ||
font-weight: bold; | font-weight: bold; | ||
line-height: | line-height: 16px; | ||
margin: 0; | margin: 0; | ||
padding: 10px 10px 10px 40px; | |||
text-align: justify; | text-align: justify; | ||
} | } | ||
Zeile 95: | Zeile 94: | ||
font-weight: normal; | font-weight: normal; | ||
z-index: -10; | z-index: -10; | ||
background: # | background: #ffcc00; | ||
top: -100px; | top: -100px; | ||
text-align: center; | text-align: center; | ||
Zeile 122: | Zeile 121: | ||
.interval-hidden { | .interval-hidden { | ||
display: none; | display: none; | ||
} | } | ||
div#{{{banner}}} span.btext-highlight { | div#{{{banner}}} span.btext-highlight { | ||
background | background: yellow; | ||
color: black; | |||
padding: 1px 0.5em; | |||
} | } | ||
</style> | </style> | ||
Zeile 221: | Zeile 132: | ||
<table id="{{{banner}}}-facts" style="height: 100%;"><!-- table height must be defined for height 100% to work on elements within it --> | <table id="{{{banner}}}-facts" style="height: 100%;"><!-- table height must be defined for height 100% to work on elements within it --> | ||
<tr> | <tr> | ||
<td | <td> | ||
<p>{{{banner-text}}}</p> | <p>{{{banner-text}}}</p> | ||
</td> | |||
<td id="{{{banner}}}-form-wrapper"> | <td id="{{{banner}}}-form-wrapper"> | ||
Zeile 271: | Zeile 141: | ||
<tr class="frequency-options"> | <tr class="frequency-options"> | ||
<td colspan="2"> | <td colspan="2"> | ||
<input type="radio" checked="checked" class="amount-radio" id="interval_onetime" onclick="$('.interval-options'). | <input type="radio" checked="checked" class="amount-radio" id="interval_onetime" onclick="$('.interval-options').toggleClass('interval-hidden');$('#interval_multiple').attr('checked', false);" /> | ||
<label for="interval_onetime" class="interval-label">einmalig</label> | <label for="interval_onetime" class="interval-label">einmalig</label> | ||
</td> | </td> | ||
<td colspan="2"> | <td colspan="2"> | ||
<input type="radio" class="amount-radio" id="interval_multiple" onclick="$('.interval-options'). | <input type="radio" class="amount-radio" id="interval_multiple" onclick="$('.interval-options').toggleClass('interval-hidden');$('#interval_onetime').attr('checked', false);" /> | ||
<label for="interval_multiple" class="interval-label">regelmäßig</label> | <label for="interval_multiple" class="interval-label">regelmäßig</label> | ||
</td> | </td> | ||
Zeile 304: | Zeile 174: | ||
<tr class="amount-options"> | <tr class="amount-options"> | ||
<td> | <td> | ||
<input type="radio" class="amount-radio" name=" | <input type="radio" class="amount-radio" name="betrag" onclick="document.donationForm.amountGiven.value = ''" id="amount5" value="5" /> | ||
<label class="amount-label" style="width: 30px;" for="amount5">5 €</label> | <label class="amount-label" style="width: 30px;" for="amount5">5 €</label> | ||
</td> | </td> | ||
<td> | <td> | ||
<input type="radio" class="amount-radio" name=" | <input type="radio" class="amount-radio" name="betrag" onclick="document.donationForm.amountGiven.value = ''" id="amount15" value="15" /> | ||
<label class="amount-label" style="width: 36px;" for="amount15">15 €</label> | <label class="amount-label" style="width: 36px;" for="amount15">15 €</label> | ||
</td> | </td> | ||
<td> | <td> | ||
<input type="radio" class="amount-radio" name=" | <input type="radio" class="amount-radio" name="betrag" onclick="document.donationForm.amountGiven.value = ''" id="amount25" value="25" /> | ||
<label class="amount-label" style="width: 36px;" for="amount25">25 €</label> | <label class="amount-label" style="width: 36px;" for="amount25">25 €</label> | ||
</td> | </td> | ||
<td> | <td> | ||
<input type="radio" class="amount-radio" name=" | <input type="radio" class="amount-radio" name="betrag" checked="checked" onclick="document.donationForm.amountGiven.value = ''" id="amount50" value="50" /> | ||
<label class="amount-label" style="width: 36px;" for="amount50">50 €</label><br /> | <label class="amount-label" style="width: 36px;" for="amount50">50 €</label><br /> | ||
</td> | </td> | ||
Zeile 322: | Zeile 192: | ||
<tr class="amount-options"> | <tr class="amount-options"> | ||
<td> | <td> | ||
<input type="radio" class="amount-radio" name=" | <input type="radio" class="amount-radio" name="betrag" onclick="document.donationForm.amountGiven.value = ''" id="amount75" value="75" /> | ||
<label class="amount-label" style="width: 30px;" for="amount75">75 €</label> | <label class="amount-label" style="width: 30px;" for="amount75">75 €</label> | ||
</td> | </td> | ||
<td> | <td> | ||
<input type="radio" class="amount-radio" name=" | <input type="radio" class="amount-radio" name="betrag" onclick="document.donationForm.amountGiven.value = ''" id="amount100" value="100" /> | ||
<label class="amount-label" style="width: 36px;" for="amount100">100 €</label> | <label class="amount-label" style="width: 36px;" for="amount100">100 €</label> | ||
</td> | </td> | ||
<td> | <td> | ||
<input type="radio" class="amount-radio" name=" | <input type="radio" class="amount-radio" name="betrag" onclick="document.donationForm.amountGiven.value = ''" id="amount250" value="250" /> | ||
<label class="amount-label" style="width: 36px;" for="amount250">250 €</label> | <label class="amount-label" style="width: 36px;" for="amount250">250 €</label> | ||
</td> | </td> | ||
<td> | <td> | ||
<input type="radio" class="amount-radio" name=" | <input type="radio" class="amount-radio" name="betrag" id="amount_other" value="" /> | ||
<input type="text" onfocus="$('#amount_other').attr('checked', 'checked');" autocomplete="off" size="3" name="amountGiven" /><br /> | <input type="text" onfocus="$('#amount_other').attr('checked', 'checked');" autocomplete="off" size="3" name="amountGiven" /><br /> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="2" style="text-align: right"> | <td colspan="2" style="text-align: right"> | ||
<button class="send" onclick="$('# | <button class="send" onclick="$('#form-page').val('Formularseite2-Lastschrift');">Lastschrift</button> | ||
</td> | </td> | ||
<td colspan="2" style="text-align: left"> | <td colspan="2" style="text-align: left"> | ||
<button class="send" onclick="$('# | <button class="send" onclick="$('#form-page').val('Formularseite2-Überweisung');">Überweisung</button><br /> | ||
</td> | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="2" style="text-align: right"> | <td colspan="2" style="text-align: right"> | ||
<button class="send" onclick="$('# | <button class="send" onclick="$('#form-page').val('Formularseite2-Micropayment');">Kreditkarte</button> | ||
</td> | </td> | ||
<td colspan="2" style="text-align: left"> | <td colspan="2" style="text-align: left"> | ||
<button id="btn-ppl" class="send" onclick="$('# | <button id="btn-ppl" class="send" onclick="$('#form-page').val('Formularseite2-PayPal');">PayPal</button> | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
<input type="hidden" name="periode" id="periode" value="" /> | <input type="hidden" name="periode" id="periode" value="" /> | ||
<input type="hidden" id="form-page" name="form" value="Formularseite2-Lastschrift" /> | |||
<input type="hidden" id="form-page" name="form" value=" | |||
<input type="hidden" id="wikilogin" name="wikilogin" value="no" /> | <input type="hidden" id="wikilogin" name="wikilogin" value="no" /> | ||
<input type="hidden" id="impCount" name="impCount" value="" /> | <input type="hidden" id="impCount" name="impCount" value="" /> | ||
<input type="hidden" id="bImpCount" name="bImpCount" value="" /> | <input type="hidden" id="bImpCount" name="bImpCount" value="" /> | ||
</form> | </form> | ||
</td> | </td> | ||
Zeile 371: | Zeile 239: | ||
</table></div> | </table></div> | ||
< | <p id="{{{banner}}}-legal"> | ||
<strong style="color: #0078FF;">Spendenkonto:</strong> Wikimedia Fördergesellschaft - Kontonummer <strong style="color: #0078FF">1194700</strong> - Bankleitzahl <strong style="color: #0078FF">10020500</strong> - BIC BFSWDE33BER - IBAN DE33 1002 0500 0001 1947 00 | <strong style="color: #0078FF;">Spendenkonto:</strong> Wikimedia Fördergesellschaft - Kontonummer <strong style="color: #0078FF">1194700</strong> - Bankleitzahl <strong style="color: #0078FF">10020500</strong> - BIC BFSWDE33BER - IBAN DE33 1002 0500 0001 1947 00 | ||
</p | </p> | ||
</div> | </div> | ||
Zeile 386: | Zeile 254: | ||
$("#bImpCount").val(bannerImpCount); | $("#bImpCount").val(bannerImpCount); | ||
setTimeout( addBannerSpace, 15000 ); | |||
if(wgUserName !== null) $('#wikilogin').val('yes'); | if(wgUserName !== null) $('#wikilogin').val('yes'); | ||
$(window).resize(function() { | $(window).resize(function() { | ||
//addBannerSpace(); | |||
}); | }); | ||
Zeile 404: | Zeile 270: | ||
}); | }); | ||
$(' | $('#{{{banner}}}').mouseenter(function() { | ||
$('p#{{{banner}}}-legal').clearQueue().animate({ | |||
top: '0px' | |||
}); | |||
}); | |||
} | $('#{{{banner}}}').mouseleave(function() { | ||
$('p#{{{banner}}}-legal').animate({ | |||
top: '-100px' | |||
}); | |||
}); | }); | ||
}); | }); | ||
function addBannerSpace() { | function addBannerSpace() { | ||
var expandableBannerHeight = $('div#{{{banner}}}').height() + 44; | var expandableBannerHeight = $('div#{{{banner}}}').height() + 44 + $('div#{{{banner}}}-legal').height(); | ||
switch(skin) { | switch(skin) { | ||
case 'vector': | case 'vector': | ||
Zeile 476: | Zeile 300: | ||
$('#{{{banner}}}').css('display', 'block'); | $('#{{{banner}}}').css('display', 'block'); | ||
$('#{{{banner}}}').animate({top: 0}, 1000); | $('#{{{banner}}}').animate({top: 0}, 1000); | ||
} | } | ||
function removeBannerSpace() { | function removeBannerSpace() { | ||
Zeile 513: | Zeile 336: | ||
function validateForm() { | function validateForm() { | ||
var chkdPayment = $( 'input[name=pay]:checked', '#{{{banner}}}-form' ).val(); | |||
switch( chkdPayment ) { | |||
case "BEZ": | |||
$( '#form-page' ).val( 'Formularseite2-Lastschrift' ); | |||
break; | |||
case "UEB": | |||
$( '#form-page' ).val( 'Formularseite2-Überweisung' ); | |||
break; | |||
case "PPL": | |||
$( '#form-page' ).val( 'Formularseite2-PayPal' ); | |||
break; | |||
case "MCP": | |||
$( '#form-page' ).val( 'Formularseite2-Micropayment' ); | |||
break; | |||
} | |||
var form = document.donationForm; | var form = document.donationForm; | ||
var error = false; | var error = false; | ||
Zeile 521: | Zeile 359: | ||
return false; | return false; | ||
} else { | } else { | ||
$('#periode').val($('input[name=interval]:checked', form).val()); | $('#periode').val($('input[name=interval]:checked', form).val()); | ||
} | } | ||
Zeile 530: | Zeile 367: | ||
// Get amount selection | // Get amount selection | ||
var amount = null; | var amount = null; | ||
for ( var i = 0; i < form. | for ( var i = 0; i < form.betrag.length; i++ ) { | ||
if ( form. | if ( form.betrag[i].checked ) { | ||
amount = form. | amount = form.betrag[i].value; | ||
break; | break; | ||
} | } |