MediaWiki:Centralnotice-template-Leichte Sprache Banner iPad

Aus Hurraki - Wörterbuch für Leichte Sprache
Wechseln zu: Navigation, Suche

<style type="text/css">MediaWiki:WMDE FR2014/Resources/DesktopBanner.css</style> <script type="text/javascript">MediaWiki:WMDE FR2014/Resources/DesktopBanner.js </script>


{{{banner-text}}}

0,0 Mio. €
                                   
es fehlen 6,1 Mio. €
                               Spendenkonto
                               Wikimedia Foerdergesellschaft
                               BIC
                               BFSWDE33BER
                               IBAN
                               DE33 1002 0500 0001 1947 00
               <form id="WMDE_FR2014_Banner-form" method="post" name="donationForm" action="https://spenden.wikimedia.de/spenden/?page={{{landing-page}}}&skin={{{page-skin}}}&piwik_campaign={{{CampaignName}}}&piwik_kwd={{{BannerName}}}">
                               <input type="radio" checked="checked" class="amount-radio" id="interval_onetime" onclick="$('.interval-options').addClass('interval-hidden');$('#interval_multiple').attr('checked', false);" />
                               
                               <input type="radio" class="amount-radio" id="interval_multiple" onclick="$('.interval-options').removeClass('interval-hidden');$('#interval_onetime').attr('checked', false);" />
                               
                               <input type="radio" name="interval" class="amount-radio" id="interval1" value="1" />
                               
                               <input type="radio" name="interval" class="amount-radio" id="interval3" value="3" />
                               
                               <input type="radio" name="interval" class="amount-radio" id="interval6" value="6" />
                               
                               <input type="radio" name="interval" class="amount-radio" id="interval12" value="12" />
                               

                               <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = " id="amount5" value="5" />
                               
                               <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = " id="amount15" value="15" />
                               
                               <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = " id="amount25" value="25" />
                               
                               <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = " id="amount50" value="50" />
                               
                               <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = " id="amount75" value="75" />
                               
                               <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = " id="amount100" value="100" />
                               
                               <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = " id="amount250" value="250" />
                               
                               <input type="radio" class="amount-radio" name="betrag" id="amount_other" value="" />
                               <input type="tel" id="amount-other-input" onfocus="$('#amount_other').attr('checked', 'checked');" autocomplete="off" size="3" name="amountGiven" />
                               <button class="send" onclick="$$('#zahlweise').val('BEZ');">Lastschrift</button>
                               <button class="send" onclick="$('#zahlweise').val('UEB');">Überweisung</button>
                               <button class="send" onclick="$('#zahlweise').val('MCP');">Kreditkarte</button>
                               <button id="btn-ppl" class="send" onclick="$('#zahlweise').val('PPL');">PayPal</button>
                   <input type="hidden" name="periode" id="periode" value="" />
                   <input type="hidden" name="intervalType" id="intervalType" value="0" />
                   <input type="hidden" id="form-page" name="form" value="{{{form-name}}}" />
                   <input type="hidden" id="wikilogin" name="wikilogin" value="no" />
                   <input type="hidden" id="impCount" name="impCount" value="" />
                   <input type="hidden" id="bImpCount" name="bImpCount" value="" />
                   <input type="hidden" id="zahlweise" name="zahlweise" value="" />
               </form>
                
   

<script type="text/javascript">

   $( document ).ready( function() {
       $('body').prepend($('#centralNotice'));
       var impCount = increaseImpCount();
       $("#impCount").val(impCount);
       var bannerImpCount = increaseBannerImpCount( "{{{banner}}}" );
       $("#bImpCount").val(bannerImpCount);
       if ( wgAction === "view" ) {
           setTimeout( addBannerSpace, 7500 );
       }
       if(wgUserName !== null) $('#wikilogin').val('yes');
       $(window).resize(function() {
           animateProgressBar();
       });
       $( ".send" ).click( function( e ) {
           return validateForm();
       });
       $('#WMDE_FR2014_Banner-close').click(function() {
           if( Math.random() < 0.01 ) {
               $( '#banner-close-ct' ).attr( 'src', 'https://spenden.wikimedia.de/piwik/piwik.php?idsite=1&url=https://spenden.wikimedia.de/banner-closed/{{{BannerName}}}&rec=1' );
           }
           hideBanner();
           removeBannerSpace();
           return false;
       });
       $("span#numDaysLeft").text( getDaysRemaining() );
       $("span#weekday").text( getCurrentGermanDay() );
       $("span#donorsValue").html( addPointsToNum( Math.floor (getApprDonatorsRaw() ) ) );
   });
   function animateProgressBar() {
       var donationFillElement = $( "#donationFill" );
       var preFillValue = 0;
       donationFillElement.clearQueue();
       donationFillElement.stop();
       donationFillElement.width( preFillValue + "px" );
       $( '#daysLeft' ).hide();
       var barWidth = $( '#donationMeter' ).width();
       var dTarget = parseInt( "{{{donation-target}}}" );
       var dCollected = getApprDonationsRaw();
       var dRemaining = dTarget - dCollected;
       var widthToFill = dCollected / dTarget * barWidth;
       widthToFill += preFillValue;
       donationFillElement.animate( { width: widthToFill + 'px' }, {
           duration: 2500,
           progress: function () {
               var dFill = donationFillElement.width() - preFillValue;
               var pFill = dFill / barWidth;
               var dColl = dTarget * pFill / 1000000;
               var vRem = ( dTarget - ( dTarget * pFill ) ) / 1000000;
               dColl = dColl.toFixed( 1 );
               dColl = dColl.replace( ".", "," );
               vRem = vRem.toFixed( 1 );
               vRem = vRem.replace( ".", "," );
               $( "#donationValue" ).html( dColl );
               $( "#valRem" ).html( vRem );
           },
           complete: function () {
               $( 'div#daysLeft' ).show();
           }
       } );
   }
   function addBannerSpace() {
       var expandableBannerHeight = $( 'div#WMDE_FR2014_Banner' ).height() + 44;
       var bannerDivElement = $( '#WMDE_FR2014_Banner' );
       switch ( skin ) {
           case 'vector':
               bannerDivElement.css( 'top', 0 - expandableBannerHeight );
               $( '#mw-panel' ).animate( { top: expandableBannerHeight + 160 }, 1000 );
               $( '#mw-head' ).animate( { top: expandableBannerHeight }, 1000 );
               $( '#mw-page-base' ).animate( { paddingTop: expandableBannerHeight }, 1000 );
               break;
           case 'monobook':
               $( '#globalWrapper' ).css( 'position', 'relative' );
               $( '#globalWrapper' ).css( 'top', expandableBannerHeight );
               bannerDivElement.css( 'top', '-20px' );
               bannerDivElement.css( 'background', 'none' );
               break;
       }
       bannerDivElement.css( 'display', 'block' );
       bannerDivElement.animate( { top: 0 }, 1000 );
       setTimeout( animateProgressBar, 1000 );
   }
   function removeBannerSpace() {
       switch(skin) {
           case 'vector':
               $('#mw-panel').css('top', 160);
               $('#mw-head').css('top', 0);
               $('#mw-page-base').css('padding-top', 0);
               break;
           case 'monobook':
               $('#globalWrapper').css('position', 'relative');
               $('#globalWrapper').css('top', 0);
               break;
       }
   }

</script>