MediaWiki:Centralnotice-template-Leichte Sprache Banner iPad: Unterschied zwischen den Versionen

Aus Hurraki - Wörterbuch für Leichte Sprache
Wechseln zu: Navigation, Suche
Zeile 1: Zeile 1:
<style type="text/css">
+
<style>
 
   #centralNotice.collapsed #{{{banner}}}{
 
   #centralNotice.collapsed #{{{banner}}}{
 
     display: none;
 
     display: none;
Zeile 7: Zeile 7:
 
     display: none;
 
     display: none;
 
     font-family: Arial, Helvetica, Verdana, sans-serif;
 
     font-family: Arial, Helvetica, Verdana, sans-serif;
     overflow: hidden;
+
     left: 0;
 
     position: fixed;
 
     position: fixed;
    left: 0;
 
 
     top: 0;
 
     top: 0;
 
     width: 100%;
 
     width: 100%;
 
     z-index: 9999;
 
     z-index: 9999;
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-facts {
+
   #{{{banner}}}-form-wrapper {
     cursor: pointer;
+
    background: #eef0fc;
     padding: 3px 0;
+
    box-shadow: 3px 0 5px rgba(0, 0, 0, 0.5);
     position: relative;
+
    padding: 4px 8px;
     text-align: center;
+
  }
 +
  #{{{banner}}}-form {
 +
     height: 100%;
 +
  }
 +
  #{{{banner}}}-form table {
 +
    border: none;
 +
    border-collapse: collapse;
 +
    width: 100%;
 +
     height: 100%;
 +
  }
 +
  #{{{banner}}}-form td {
 +
    font-size: 12px;
 +
    font-weight: bold;
 +
    min-width: 55px;
 +
    white-space: nowrap;
 +
    margin: 0;
 +
     vertical-align: middle;
 +
    padding: 2px;
 +
  }
 +
  #{{{banner}}}-form span label {
 +
     margin-left: 2px;
 
   }
 
   }
   div.{{{banner}}}-facts-bg {
+
   #{{{banner}}}-form .amount-options {
     background: #FFCC00 url(//upload.wikimedia.org/wikipedia/donate/c/c0/Information-icon.png) no-repeat 10px 16px;
+
     height: 20%;
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-facts p {
+
   #{{{banner}}}-form .paymentmethod-options td {
 
     text-align: center;
 
     text-align: center;
     padding: 2px 5px;
+
     padding: 4px 4px 8px 4px;
     margin: 0;
+
  }
     color: #000;
+
  #{{{banner}}}-form button {
    font-size: 18px;
+
     cursor: pointer;
 +
     display: inline-block;
 
     font-weight: bold;
 
     font-weight: bold;
     line-height: 20pt;
+
     width: 110px;
     display: inline-block;
+
    border: 3px double #ddd;
 +
    border-radius: 8px;
 +
     background: #ffffff; /* Old browsers */
 +
    background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */
 +
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */
 +
    background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */
 +
    background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera 11.10+ */
 +
    background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */
 +
    background: linear-gradient(to bottom, #ffffff 0%,rgb(240, 240, 240) 100%);
 +
    box-shadow: 0 1px 1px #ddd;
 +
    margin: 0 1px;
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-facts p span.{{{banner}}}-highlight {
+
   #{{{banner}}}-form button:hover {
     background-color: yellow;
+
     color: #0645ad;
    padding: 5px;
 
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-facts p img {
+
   div#{{{banner}}} #{{{banner}}}-facts {
     margin-right: 40px;
+
     background: #FFCC00 url(//upload.wikimedia.org/wikipedia/donate/c/c0/Information-icon.png) no-repeat 10px 8px;
 +
    min-height: 65px;
 +
    padding: 0;
 +
    position: relative;
 +
    width: 100%;
 +
    border: none;
 +
    border-collapse: collapse;
 
   }
 
   }
   div#{{{banner}}} span#{{{banner}}}-tab {
+
   div#{{{banner}}} #{{{banner}}}-facts p {
    background: #FFCC00 url(//upload.wikimedia.org/wikipedia/foundation/d/d4/Expandable-toggle.png) no-repeat;
 
    background-position: 423px -31px;
 
    border: 1px solid #a7a7a7;
 
    border-top: none;
 
    border-radius: 0 0 5px 5px;
 
 
     color: #000;
 
     color: #000;
    cursor: pointer;
+
     font-size: 17px;
    display: block;
 
     font-size: 12px;
 
 
     font-weight: bold;
 
     font-weight: bold;
     height: 25px;
+
     line-height: 1.2em;
     line-height: 25px;
+
    margin: 0;
     margin: 0 auto;
+
    margin: 4px 10px 4px 35px;
 +
    text-align: justify;
 +
     padding-bottom: 2px;
 +
  }
 +
 
 +
  div#{{{banner}}} p#{{{banner}}}-legal {
 +
     font-family: Arial, Helvetica, Verdana, sans-serif;
 
     position: relative;
 
     position: relative;
 +
    margin: 0;
 +
    padding: 10px 40px 10px 40px;
 +
    font-size: 13px;
 +
    line-height: 16px;
 +
    font-weight: normal;
 +
    z-index: -10;
 +
    background: #FFCC00;
 +
    top: -100px;
 
     text-align: center;
 
     text-align: center;
    width: 446px;
 
    z-index: 100;
 
    -moz-border-radius: 0 0 5px 5px;
 
    -webkit-border-radius: 0 0 5px 5px;
 
 
   }
 
   }
   div#{{{banner}}} span#{{{banner}}}-tab.close {
+
 
     background-position: 423px 4px;
+
   #{{{banner}}}-close-wrapper {
 +
     width: 20px;
 
   }
 
   }
 +
 
   div#{{{banner}}} span#{{{banner}}}-close {
 
   div#{{{banner}}} span#{{{banner}}}-close {
     background: url(//upload.wikimedia.org/wikipedia/donate/2/27/Small-white-close.png) no-repeat center center black;
+
     background: url(//upload.wikimedia.org/wikipedia/donate/2/27/Small-white-close.png) no-repeat center center;
 +
    background-color: black;
 
     cursor: pointer;
 
     cursor: pointer;
 
     display: block;
 
     display: block;
 
     height: 21px;
 
     height: 21px;
 
     position: absolute;
 
     position: absolute;
    text-indent: -9999px;
+
     right: 0px;
     right: 0;
+
     top: 0px;
     top: 0;
 
 
     width: 21px;
 
     width: 21px;
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-landing {
+
   div#{{{banner}}} #{{{banner}}}-facts p b {
     background: #fff;
+
     background: yellow;
     border-bottom: 10px solid #FFCC00;
+
    color: black;
 +
     padding: 1px 0.5em;
 +
  }
 +
  .interval-hidden {
 
     display: none;
 
     display: none;
    font-family: Arial, Helvetica, Verdana, sans-serif;
 
    padding: 30px 0 40px 0;
 
    width: 100%;
 
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-landing:after {
+
   #{{{banner}}}_info {
     clear: both;
+
    margin: 0 10px 0 40px;
     content: '';
+
     font-size: 13px;
     display: block;
+
     line-height: 16px;
     height: 0;
+
     position: relative;
     visibility: hidden;
+
     border-top: 1px solid #988A00;
 +
     padding-top: 2px;
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-landing span.landing-close {
+
   #{{{banner}}}_info div#binfo-sepa-info {
    color: #3f3f3f;
 
    cursor: pointer;
 
    font-size: 12px;
 
 
     position: absolute;
 
     position: absolute;
     right: 10px;
+
     top: 2px;
     top: 10px;
+
    background-color: #FFCC00;
 +
    height: 20px;
 +
     width: 600px;
 +
  }
 +
  div#{{{banner}}}_info span {
 +
    margin-right: 10px;
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-left {
+
   div#{{{banner}}}_info span.binfo-ucase {
     float: left;
+
     text-transform: uppercase;
    font-size: 13px;
 
    line-height: 18px;
 
    margin: 0 2%;
 
    padding: 0;
 
    width: 56%;
 
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-left h3 {
+
   div#{{{banner}}}_info span.binfo-lblue {
     border-bottom: 1px solid #000;
+
     color: #96A0AA;
    font-size: 20px;
 
    font-weight: bold;
 
    line-height: 22px;
 
    margin: 0 0 10px 0;
 
    padding: 0 0 10px 0;
 
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right {
+
   div#{{{banner}}}_info span.binfo-dblue {
     background: #CCE7CD;
+
     color: #000000;
    border: 1px solid #a3bfb1;
 
    border-radius: 10px;
 
    float: right;
 
    font-size: 13px;
 
    line-height: 18px;
 
    margin: 0 2% 0 0;
 
    padding: 2%;
 
    text-align: left;
 
    width: 33%;
 
    -moz-border-radius: 10px;
 
    -webkit-border-radius: 10px;
 
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right h4 {
+
   div#{{{banner}}}_info span.binfo-bold {
    font-size: 20px;
 
 
     font-weight: bold;
 
     font-weight: bold;
    line-height: 22px;
 
    margin: -20px 0 0;
 
  }
 
  div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right p {
 
    margin: 0 0 5px 0;
 
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right p span {
+
   div#{{{banner}}}_info span.binfo-sepa-box {
 
     font-size: 10px;
 
     font-size: 10px;
     line-height: 12px;
+
     border-radius: 5px;
  }
+
     background-color: white;
  div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right span {
+
     padding: 2px 5px;
     font-size: 0.8em;
 
    line-height: 0.8em;
 
  }
 
  div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right ul {
 
    margin: 0;
 
     padding-top: 2px;
 
  }
 
  div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right ul li {
 
    display: inline-block;
 
    font-size: 10px;
 
    line-height: 14px;
 
  }
 
  div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right form span {
 
    white-space: nowrap;
 
  }
 
  div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right form label {
 
    /* font-weight: bold; */
 
    margin: 0 10px 0 3px;
 
  }
 
  div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right form button {
 
 
     cursor: pointer;
 
     cursor: pointer;
     margin: 10px 5px 0 5px;
+
     color: #000000;
    display: block;
 
 
   }
 
   }
   div#{{{banner}}} div#{{{banner}}}-facts p b {
+
   div#{{{banner}}} span.btext-highlight {
    color: black;
+
     background-color: yellow;
  }
+
     padding: 1px 5px;
  div#{{{banner}}}:hover div#{{{banner}}}-facts p b {
 
    text-decoration: none;
 
  }
 
  label.lblInterval {
 
    display: inline-block;
 
    width: 70px;
 
    font-size: 1.2em;
 
  }
 
  label.lblAmount {
 
     display: inline-block;
 
    width: 40px;
 
     font-size: 1.2em;
 
 
   }
 
   }
 
   #donationMeterWrapper {
 
   #donationMeterWrapper {
 
     position: relative;
 
     position: relative;
     width: 800px;
+
     margin: 0 auto 4px auto;
     margin: 0 auto 16px auto;
+
     max-width: 1200px;
 
   }
 
   }
 
   #donationMeter {
 
   #donationMeter {
 
     margin: 0 auto;
 
     margin: 0 auto;
    width: 800px;
+
     height: 20px;
     height: 32px;
 
 
     background: #FF6C00;
 
     background: #FF6C00;
 +
    border: 2px solid #FF6C00;
 
     border-radius: 8px;
 
     border-radius: 8px;
    border: 2px solid #FF6C00;
 
 
   }
 
   }
 
   #donationFill {
 
   #donationFill {
Zeile 200: Zeile 182:
 
     left: 2px;
 
     left: 2px;
 
     width: 90px;
 
     width: 90px;
     height: 32px;
+
     height: 20px;
 
     background: #FFFFFF;
 
     background: #FFFFFF;
     border-radius: 5px;
+
     border-top-left-radius: 5px;
 +
    border-bottom-left-radius: 5px;
 
   }
 
   }
 
   #donationText {
 
   #donationText {
Zeile 209: Zeile 192:
 
     width: 100%;
 
     width: 100%;
 
     text-align: right;
 
     text-align: right;
     margin: 8px -16px;
+
     /*margin: 8px -16px;*/
 +
    top: 2px;
 
     font-size: 14px;
 
     font-size: 14px;
 
     font-weight: bold;
 
     font-weight: bold;
Zeile 217: Zeile 201:
 
   #donationRemaining {
 
   #donationRemaining {
 
     position: absolute;
 
     position: absolute;
     top: 9px;
+
     top: 3px;
 
     right: 10px;
 
     right: 10px;
     font-size: 16px;
+
     font-size: 15px;
 
     color: white;
 
     color: white;
 
     font-weight: bold;
 
     font-weight: bold;
 +
  }
 +
  #daysLeft {
 +
    display: none;
 +
    font-size: 14px;
 +
    color: #FF6C00;
 +
    font-weight: bold;
 +
    top: 2px;
 +
    position: absolute;
 +
    left: 5px;
 
   }
 
   }
 
</style>
 
</style>
  
<div id="{{{banner}}}" class="sticky">
+
<div id="{{{banner}}}"><div style="box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);">
   <div id="{{{banner}}}-facts" class="{{{banner}}}-facts-bg">
+
   <table id="{{{banner}}}-facts" style="height: 100%;"><!-- table height must be defined for height 100% to work on elements within it -->
     <p style="margin: 8px 16px; text-align: left">
+
     <tr>
      <span class="{{{banner}}}-highlight">Nur noch 12 Tage:</span><br />
+
      <td><table style="height: 100%"><tr><td valign="top" style="height: 1%">
       <span style="padding-left: 5px;">Wenn jeder Leser 5 Euro spenden würde, wäre unsere Spendenkampagne in einer Stunde vorüber.</span>
+
        <p>{{{banner-text}}}</p>
    </p>
+
      </td></tr>
    <div style="width: 100%;">
+
       <tr><td>
      <div id="donationMeterWrapper">
+
        <div style="width: inherit; margin: 0 10px 0 35px;">
        <div id="donationMeter"></div>
+
          <div id="donationMeterWrapper">
        <div id="donationFill">
+
            <div id="donationMeter"></div>
          <div id="donationText" class="textShadow"><span id="donationValue">0,0</span> Mio. &euro;</div>
+
            <div id="donationFill">
          <div style="position: absolute; top:0; right: 0">
+
              <div id="donationText"><span id="donationValue">0,0</span> Mio. &euro;</div>
            <img src="//upload.wikimedia.org/wikipedia/commons/2/20/Pmeter-tip.png">
+
              <div id="daysLeft">Nur noch <span id="numDaysLeft">11 Tage</span></div>
 +
              <div style="position: absolute; bottom: 0; right: 0">
 +
                <img src="//upload.wikimedia.org/wikipedia/commons/8/89/Pbar-tip-small.png">
 +
              </div>
 +
            </div>
 +
            <div id="donationRemaining">es fehlen <span id="valRem">6,1</span> Mio.</div>
 +
            <div id="donationMessage"></div>
 
           </div>
 
           </div>
 
         </div>
 
         </div>
        <div id="donationRemaining">noch fehlen <span id="valRem">6,1</span> Mio. &euro;</div>
+
      </td></tr>
        <div id="donationMessage"></div>
+
      <tr><td style="height: 1%">
      </div>
+
        <div id="{{{banner}}}_info">
    </div>
+
          <div id="binfo-bank-info">
  </div>
+
            <div style="display: inline-block">
  <div id="{{{banner}}}-landing">
+
              <span class="binfo-ucase binfo-dblue">Spendenkonto</span>
    <div id="{{{banner}}}-landing-left">
+
              <span class="binfo-bold binfo-dblue">Wikimedia Fördergesellschaft</span>
      <h3>{{{appeal-header}}}</h3>
+
              <span class="binfo-label binfo-dblue">Kto</span>
      <div style="float:left; margin: 0.2em 0.5em 0 0; padding: 0.2em; border: 1px solid silver;">
+
              <span class="binfo-bold binfo-dblue">1194700</span>
        <img alt="Dr. Peter Cueppers" src="//upload.wikimedia.org/wikipedia/commons/f/fd/Cueppers_small.jpg">
+
              <span class="binfo-label binfo-dblue">BLZ</span>
      </div>
+
              <span class="binfo-bold binfo-dblue">10020500</span>
      <p>{{{appeal-p1}}}</p>
+
            </div>
      <p>{{{appeal-p2}}}</p>
+
            <span class="binfo-sepa-box">SEPA</span>
      <p>{{{appeal-p3}}}</p>
+
          </div>
      <p>{{{appeal-p4}}}</p>
+
          <div id="binfo-sepa-info" style="display: none;">
      <p>{{{appeal-p5}}}</p>
+
            <div style="display: inline-block">
      <p>{{{appeal-p6}}}</p>
+
              <span class="binfo-ucase binfo-dblue">Spendenkonto</span>
      <p>{{{appeal-p10}}}</p>
+
              <span class="binfo-label binfo-dblue">BIC</span>
      {{{appeal-foot}}}
+
              <span class="binfo-bold binfo-dblue">BFSWDE33BER</span>
    </div>
+
              <span class="binfo-label binfo-dblue">IBAN</span>
    <div id="{{{banner}}}-landing-right">
+
              <span class="binfo-bold binfo-dblue">DE33 1002 0500 0001 1947 00</span>
      <form id="{{{banner}}}-form" method="post" name="donationForm" action="https://spenden.wikimedia.de/spenden/?page={{{landing-page}}}&skin={{{page-skin}}}&piwik_campaign={{{CampaignName}}}&piwik_kwd={{{BannerName}}}">
+
            </div>
      <h5>Ich spende</h5>
+
            <span class="binfo-sepa-box" style="margin-left: 21px;">&#x2716;</span>
        <span>
+
          </div>
          <input id="periode_0" type="radio" onclick="handleInterval()" value="0" checked="checked" name="periode" />
+
        </div>
          <label for="periode_0" class="lblInterval">einmalig</label>
+
      </td></tr></table></td>
        </span>
+
 
        <span>
+
      <td id="{{{banner}}}-form-wrapper">      
          <input id="periode_1" type="radio" onclick="handleInterval()" value="1" name="periode" />
+
        <form id="{{{banner}}}-form" method="post" name="donationForm" action="https://spenden.wikimedia.de/spenden/?page={{{landing-page}}}&skin={{{page-skin}}}&piwik_campaign={{{CampaignName}}}&piwik_kwd={{{BannerName}}}">
          <label for="periode_1" class="lblInterval">monatlich</label>
+
          <table>
        </span>
+
            <tr class="frequency-options">
        <span>
+
              <td colspan="2">
          <input id="periode_2" type="radio" onclick="handleInterval()" value="3" name="periode" />
+
                <input type="radio" checked="checked" class="amount-radio" id="interval_onetime" onclick="$('.interval-options').addClass('interval-hidden');$('#interval_multiple').attr('checked', false);" />
          <label for="periode_2" class="lblInterval">vierteljährlich</label>
+
                <label for="interval_onetime" class="interval-label">einmalig</label>
        </span>
+
              </td>
        <span>
+
              <td colspan="2">
          <input id="periode_3" type="radio" onclick="handleInterval()" value="6" name="periode" />
+
                <input type="radio" class="amount-radio" id="interval_multiple" onclick="$('.interval-options').removeClass('interval-hidden');$('#interval_onetime').attr('checked', false);" />
          <label for="periode_3" class="lblInterval">halbjährlich</label>
+
                <label for="interval_multiple" class="interval-label">regelm&auml;&szlig;ig</label>
        </span>
+
              </td>
        <span>
+
            </tr>
          <input id="periode_4" type="radio" onclick="handleInterval()" value="12" name="periode" />
+
            <tr class="interval-options interval-hidden">
          <label for="periode_4" class="lblInterval">jährlich</label>
+
              <td colspan="2">
        </span>
+
                <input type="radio" name="interval" class="amount-radio" id="interval1" value="1" />
        <p id="intervalHint" style="display: none;">
+
                <label for="interval1" class="interval-label">monatlich</label>
          <span style="white-space: normal;">Hinweis: Periodische Spenden können wir nur per Lastschrift, Überweisung oder Kreditkarte entgegennehmen.</span>
+
              </td>
        </p>
+
              <td colspan="2">
      <h5>einen Betrag von</h5>
+
                <input type="radio" name="interval" class="amount-radio" id="interval3" value="3" />
        <span><input type="radio" name="betrag_auswahl" id="input_amount_0" onclick="document.donationForm.amountGiven.value = ''" value="5"><label for="input_amount_0" class="lblAmount">5 €</label></span>
+
                <label for="interval3" class="interval-label">vierteljährlich</label><br />
        <span><input type="radio" name="betrag_auswahl" id="input_amount_1" onclick="document.donationForm.amountGiven.value = ''" value="15"><label for="input_amount_1" class="lblAmount">15 €</label></span>
+
              </td>
        <span><input type="radio" name="betrag_auswahl" id="input_amount_2" onclick="document.donationForm.amountGiven.value = ''" value="25"><label for="input_amount_2" class="lblAmount">25 €</label></span>
+
            </tr>
        <span><input type="radio" name="betrag_auswahl" id="input_amount_3" onfehler. Als ich heraus bekam, wie man den beseitigt, war es passiert. Gleich am ersten Tag. Denn dann fing ich an, systematisch nach Fehlerclick="document.donationForm.amountGiven.value = ''" value="50" checked="checked"><label for="input_amount_3" class="lblAmount">50 €</label></span>
+
            <tr class="interval-options interval-hidden">
        <span><input type="radio" name="betrag_auswahl" id="input_amount_4" onclick="document.donationForm.amountGiven.value = ''" value="75"><label for="input_amount_4" class="lblAmount">75 €</label></span>
+
              <td colspan="2">
        <span><input type="radio" name="betrag_auswahl" id="input_amount_5" onclick="document.donationForm.amountGiven.value = ''" value="100"><label for="input_amount_5" class="lblAmount">100 €</label></span>
+
                <input type="radio" name="interval" class="amount-radio" id="interval6" value="6" />
        <span><input type="radio" name="betrag_auswahl" id="input_amount_6" onclick="document.donationForm.amountGiven.value = ''" value="250"><label for="input_amount_6" class="lblAmount">250 €</label></span>
+
                <label for="interval6" class="interval-label">halbjährlich</label>
        <span><input type="radio" name="betrag_auswahl" id="input_amount_other" value=""><input type="text" style="width: 120px;" placeholder="Anderer Betrag" name="amountGiven" size="4" autocomplete="off" onfocus="this.form.input_amount_other.checked=true;"></span>
+
              </td>
        <br />
+
              <td colspan="2">
      <h5>und bezahle per</h5>
+
                <input type="radio" name="interval" class="amount-radio" id="interval12" value="12" />
        <span>
+
                <label for="interval12" class="interval-label">jährlich</label>
          <input id="pay_0" type="radio" onclick="handleMethod();" checked="checked" value="BEZ" name="pay" />
+
              </td>
          <label for="pay_0" class="lblInterval">Lastschrift</label>
+
            </tr>
        </span>
+
            <tr>
        <span>
+
              <td colspan="4" style="height: 1px;"><hr /></td>
          <input id="pay_1" type="radio" onclick="handleMethod();" value="UEB" name="pay" />
+
            </tr>
          <label for="pay_1" class="lblInterval">Überweisung</label>
+
            <tr class="amount-options">
        </span>
+
              <td>
        <span>
+
                <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = ''" id="amount5" value="5" />
          <input id="pay_3" type="radio" onclick="handleMethod();" value="MCP" name="pay" />
+
                <label class="amount-label" style="width: 30px;" for="amount5">5 €</label>
          <label for="pay_3" class="lblInterval">Kreditkarte</label>
+
              </td>
        </span>
+
              <td>
        <span>
+
                <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = ''" id="amount15" value="15" />
           <input id="pay_2" type="radio" onclick="handleMethod();" value="PPL" name="pay" />
+
                <label class="amount-label" style="width: 36px;" for="amount15">15 €</label>
           <label for="pay_2" class="lblInterval">Paypal</label>
+
              </td>
        </span>
+
              <td>
        <p id="paymentHint" style="display: none;">
+
                <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = ''" id="amount25" value="25" />
           <span style="white-space: normal;">Hinweis: Die Zahlung per PayPal ist nur für einmalige Spenden möglich.</span>
+
                <label class="amount-label" style="width: 36px;" for="amount25">25 €</label>
        </p>
+
              </td>
        <input type="hidden" id="form-page" name="form" value="Formularseite2-Lastschrift" />
+
              <td>
        <input type="hidden" id="wikilogin" name="wikilogin" value="no" />
+
                <input type="radio" class="amount-radio" name="betrag_auswahl" checked="checked" onclick="document.donationForm.amountGiven.value = ''" id="amount50" value="50" />
        <input type="hidden" id="impCount" name="impCount" value="" />
+
                <label class="amount-label" style="width: 36px;" for="amount50">50 €</label><br />
        <button onclick="return validateForm();"><strong>Jetzt spenden</strong></button>
+
              </td>
         <br />
+
            </tr>
       </form>
+
            <tr class="amount-options">
       <div style="width: 100%;">
+
              <td>
         <br>Die Wikimedia Fördergesellschaft mbH ist in Deutschland als gemeinnützig anerkannt. Ihre Spende ist steuerlich absetzbar.
+
                <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = ''" id="amount75" value="75" />
        <ul>
+
                <label class="amount-label" style="width: 30px;" for="amount75">75 €</label>
          <li><a href="https://spenden.wikimedia.de/spenden/Ihre_Spende_wirkt" target="_blank">Wohin Ihre Spende geht</a> | </li>
+
              </td>
          <li><a href="https://spenden.wikimedia.de/spenden/Fragen_und_Antworten#Kann_ich_Wikipedia_mit_einer_SMS_unterst.C3.BCtzen.3F" target="_blank">Unterstützen per SMS | </a></li>
+
              <td>
          <li><a href="https://spenden.wikimedia.de/spenden/Kontaktformular" target="_blank">Kontakt</a></li>
+
                <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = ''" id="amount100" value="100" />
        </ul>
+
                <label class="amount-label" style="width: 36px;" for="amount100">100 €</label>
        <div style="margin-top: 8px;"><strong>Spendenkonto</strong> | Kontonummer:&nbsp;<strong>11&nbsp;94&nbsp;700</strong> | Bankleitzahl:&nbsp;<strong>100&nbsp;205&nbsp;00</strong> | Bank&nbsp;für&nbsp;Sozialwirtschaft</div>
+
              </td>
        <div>BIC:&nbsp;<strong>BFSW DE33 BER</strong> | IBAN:&nbsp;<strong>DE 3310 0205 0000 0119 4700</strong></div>
+
              <td>
      </div>
+
                <input type="radio" class="amount-radio" name="betrag_auswahl" onclick="document.donationForm.amountGiven.value = ''" id="amount250" value="250" />
    </div>
+
                <label class="amount-label" style="width: 36px;" for="amount250">250 €</label>
  </div>
+
              </td>
  <span id="{{{banner}}}-tab">{{{btn-text-1}}}</span>
+
              <td>
  <span id="{{{banner}}}-close">{{{btn-text-close}}}</span>
+
                <input type="radio" class="amount-radio" name="betrag_auswahl" id="amount_other" value="" />
   <img src="" id="wmde-expand-track" border="0" height="0" width="0" />
+
                <input type="text" onfocus="$('#amount_other').attr('checked', 'checked');" autocomplete="off" size="3" name="amountGiven" /><br />
 +
            </tr>
 +
            <tr>
 +
              <td colspan="2" style="text-align: right">
 +
                <button class="send" onclick="$('#zahlweise').val('BEZ');">Lastschrift</button>
 +
              </td>
 +
              <td colspan="2" style="text-align: left">
 +
                <button class="send" onclick="$('#zahlweise').val('UEB');">Überweisung</button><br />
 +
              </td>
 +
            </tr>
 +
            <tr>
 +
              <td colspan="2" style="text-align: right">
 +
                <button class="send" onclick="$('#zahlweise').val('MCP');">Kreditkarte</button>
 +
              </td>
 +
              <td colspan="2" style="text-align: left">
 +
                <button id="btn-ppl" class="send" onclick="$('#zahlweise').val('PPL');">PayPal</button>
 +
              </td>
 +
            </tr>
 +
          </table>
 +
           <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="10h16_Form2" />
 +
          <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>
 +
       </td>
 +
 
 +
       <td id="{{{banner}}}-close-wrapper">
 +
         <span id="{{{banner}}}-close">&nbsp;</span>
 +
      </td>
 +
 
 +
    </tr>
 +
  </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
 +
   </p-->
 +
 
 
</div>
 
</div>
  
 
<script type="text/javascript">
 
<script type="text/javascript">
var facts = '';
+
$( document ).ready( function() {
var appeal = '';
+
  $('body').prepend($('#centralNotice'));
   $(document).ready( function () {
+
 
    var facts = '<p style="font-weight: bold; text-align: left; background: url(//upload.wikimedia.org/wikipedia/donate/c/c0/Information-icon.png) no-repeat 10px 8px; padding: 7px 28px 7px 40px; color: white; font-size: 11pt; text-shadow: 1px 1px 1px #000000;">500 Millionen Menschen nutzen Wikipedia im Monat. Sie ist die Nr. 5 der am häufigsten besuchten Webseiten der Welt und hat Kosten wie jede andere Top-Seite: Server, Strom, Programme, Personal. Nur knapp 250 Angestellte arbeiten in der gemeinnützigen Organisation hinter Wikipedia. Um Wikipedias Unabhängigkeit zu schützen, gibt es keine Werbung. Wir finanzieren uns durch Spenden von durchschnittlich 20 €. Heute bitten wir Sie um einen Beitrag. Wenn jeder nur einen kleinen Beitrag leisten würde, wäre unsere Spendenkampagne in einer Stunde vorüber. Finden Sie Wikipedia nützlich? Dann nehmen Sie sich 1 Minute Zeit, damit Wikipedia ein weiteres Jahr werbefrei und für uns alle da sein kann. Bitte helfen Sie mit.</p>';
+
  var impCount = increaseImpCount();
    var appeal = $('#{{{banner}}}-facts').html();
+
   $("#impCount").val(impCount);
    $('body').prepend($('#centralNotice'));
+
  var bannerImpCount = increaseBannerImpCount();
    if ( wgCanonicalSpecialPageName != "CentralNotice" && wgCanonicalSpecialPageName != "NoticeTemplate" ){
+
  $("#bImpCount").val(bannerImpCount);
      var impCount = increaseImpCount();
+
 
      $("#impCount").val(impCount);
+
  if ( wgAction === "view" ) {
 +
    setTimeout( addBannerSpace, 7500 );
 +
  }
 +
  if(wgUserName !== null) $('#wikilogin').val('yes');
 +
  $(window).resize(function() {
 +
    animateProgressBar();
 +
  });
 +
 
 +
  $( ".send" ).click( function( e ) {
 +
    return validateForm();
 +
  });
 +
 
 +
  $('#{{{banner}}}-close').click(function() {
 +
    hideBanner();
 +
    removeBannerSpace();
 +
    return false;
 +
  });
  
      if ( wgAction === "view" ) {
+
  $('span.binfo-sepa-box').click( function() {
        setTimeout( addBannerSpace, 7500 );
+
    if ( $( 'div#binfo-sepa-info' ).is( ':visible' ) ) {
      }
+
       $( 'div#binfo-sepa-info' ).slideUp();
      if(wgUserName !== null) $('#wikilogin').val('yes');
+
    } else {
      $('span#{{{banner}}}-close').click(function() {
+
       $( 'div#binfo-sepa-info' ).slideDown();
        hideBanner();
 
        removeBannerSpace();
 
        return false;
 
      });
 
      $('div#{{{banner}}} div#{{{banner}}}-facts').click(function() {
 
        if (!$('div#{{{banner}}} div#{{{banner}}}-landing').is(':visible')){
 
          if ($("#wmde-expand-track").attr("src") == "") {
 
            $("#wmde-expand-track").attr("src", encodeURI("https://spenden.wikimedia.de/piwik/piwik.php?idsite=1&url=https://spenden.wikimedia.de/banner-expanded/{{{BannerName}}}&rec=1"));
 
          }
 
          $('div#{{{banner}}}-landing').slideDown(150);
 
          $('span#{{{banner}}}-tab').addClass('close').html('{{{btn-text-close}}}');
 
          $('div#{{{banner}}}').css('position', 'absolute');
 
          $('#{{{banner}}}-facts').removeClass('{{{banner}}}-facts-bg');
 
          $('html, body').animate({ scrollTop: 0 }, 0);
 
          $('#{{{banner}}}-facts').html(facts);
 
          switchColor('#FF6C00', '#FFFFFF');
 
        }
 
        return false;
 
      });
 
       $('span#{{{banner}}}-tab').click(function() {
 
        if ($('div#{{{banner}}} div#{{{banner}}}-landing').is(':visible')){
 
          $('div#{{{banner}}}-landing').slideUp(150);
 
          $(this).removeClass('close').html('{{{btn-text-1}}}');
 
          $('div#{{{banner}}} div#{{{banner}}}-facts span').css('display', 'none');
 
          $('#{{{banner}}}-facts').html(appeal);
 
          $('div#{{{banner}}}').css('position', 'fixed');
 
          $('#{{{banner}}}-facts').addClass('{{{banner}}}-facts-bg');
 
          switchColor('#FFCC00', '#000000');
 
          setTimeout( animateProgressBar, 500 );
 
        } else {
 
          if ($("#wmde-expand-track").attr("src") == "") {
 
            $("#wmde-expand-track").attr("src", encodeURI("https://spenden.wikimedia.de/piwik/piwik.php?idsite=1&url=https://spenden.wikimedia.de/banner-expanded/{{{BannerName}}}&rec=1"));
 
          }
 
          $('div#{{{banner}}}-landing').slideDown(150);
 
          $(this).addClass('close').html('{{{btn-text-close}}}');
 
          $('html, body').animate({ scrollTop: 0 }, 0);
 
          $('#{{{banner}}}-facts').html(facts);
 
          $('div#{{{banner}}}').css('position', 'absolute');
 
          $('#{{{banner}}}-facts').removeClass('{{{banner}}}-facts-bg');
 
          switchColor('#FF6C00', '#FFFFFF');
 
        }
 
        return false;
 
      });
 
       $('div#{{{banner}}} div#{{{banner}}}-landing span.landing-close').click(function() {
 
        $('div#{{{banner}}}-landing').slideUp(150);
 
        return false;
 
      });
 
 
     }
 
     }
 
   });
 
   });
 +
 +
  $('span#numDaysLeft').text( getDaysRemaining() );
 +
});
 +
 +
function getDaysRemaining() {
 +
  daysRemaining = Math.floor( new Date( new Date( 2014, 0, 1, 5, 0, 0 ) - new Date() ) / 1000 / 60 / 60 / 24 );
 +
  return ( daysRemaining > 1 ) ? daysRemaining + " Tage" : "1 Tag";
 +
}
  
 
function animateProgressBar() {
 
function animateProgressBar() {
 +
  $("#donationFill").clearQueue();
 +
  $("#donationFill").stop();
 +
  $('#daysLeft').hide();
 +
  $('#donationFill').width('90px');
 +
 +
  var barWidth = $('#donationMeter').width();
 
   var dTarget = {{{donation-target}}};
 
   var dTarget = {{{donation-target}}};
 
   var dCollected = {{{donations-collected}}};
 
   var dCollected = {{{donations-collected}}};
 
   var dRemaining = dTarget - dCollected;
 
   var dRemaining = dTarget - dCollected;
   var widthToFill = dCollected / dTarget * 800;
+
   var fWidth = dCollected / dTarget * barWidth;
   $("#donationFill").animate(
+
  var maxFillWidth = barWidth - $('#donationRemaining').width() - 16;
    { width: widthToFill + 'px' },
+
  widthToFill = (fWidth > maxFillWidth) ? maxFillWidth : fWidth;
     {
+
 
      duration: 2500,  
+
   $("#donationFill").animate( { width: widthToFill + 'px' }, {
      progress: function() {
+
     duration: 2500,  
        var dFill = $("#donationFill").width();
+
    progress: function() {
        var pFill = dFill / 800;
+
      var dFill = $("#donationFill").width() / widthToFill * fWidth;
 +
      var pFill = dFill / barWidth;
  
        var dColl = dTarget * pFill / 1000000;
+
      var dColl = dTarget * pFill / 1000000;
        var vRem = ( dTarget - ( dTarget * pFill ) ) / 1000000;
+
      var vRem = ( dTarget - ( dTarget * pFill ) ) / 1000000;
  
        dColl = dColl.toFixed( 1 );
+
      dColl = dColl.toFixed( 1 );
        dColl = dColl.replace( ".", "," );
+
      dColl = dColl.replace( ".", "," );
  
        vRem = vRem.toFixed( 1 );
+
      vRem = vRem.toFixed( 1 );
        vRem = vRem.replace( ".", "," );
+
      vRem = vRem.replace( ".", "," );
  
        $("#donationValue").html( dColl );
+
      $("#donationValue").html( dColl );
        $("#valRem").html( vRem );
+
      $("#valRem").html( vRem );
    }
+
    },
 +
    complete: function() {
 +
      $('div#daysLeft').show();
 +
    }
 
   });
 
   });
 
}
 
}
  
 
function addBannerSpace() {
 
function addBannerSpace() {
   var expandableBannerHeight = $('div#{{{banner}}}').height();
+
   var expandableBannerHeight = $('div#{{{banner}}}').height() + 44;
 
   switch(skin) {
 
   switch(skin) {
 
     case 'vector':
 
     case 'vector':
Zeile 451: Zeile 476:
 
   $('#{{{banner}}}').css('display', 'block');
 
   $('#{{{banner}}}').css('display', 'block');
 
   $('#{{{banner}}}').animate({top: 0}, 1000);
 
   $('#{{{banner}}}').animate({top: 0}, 1000);
   setTimeout( animateProgressBar , 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;
 +
  }
 +
}
 +
 
 +
function increaseImpCount() {
 +
  impCount = parseInt($.cookie('centralnotice_banner_impression_count')) | 0;
 +
  $.cookie('centralnotice_banner_impression_count', impCount + 1, { expires: 7, path: '/' });
 +
  return impCount + 1;
 
}
 
}
  function removeBannerSpace() {
+
 
    switch(skin) {
+
function increaseBannerImpCount() {
      case 'vector':
+
  var impCount = 0;
        $('#mw-panel').css('top', 160);
+
 
        $('#mw-head').css('top', 0);
+
  if($.cookie('centralnotice_single_banner_impression_count')) {
        $('#mw-page-base').css('padding-top', 0);
+
    var impCountCookie = $.cookie('centralnotice_single_banner_impression_count');
        break;
+
    var bannerImpCount = impCountCookie.split("|");
      case 'monobook':
+
    if(bannerImpCount[0] === '{{{banner}}}') {
        $('#globalWrapper').css('position', 'relative');
+
      impCount = parseInt(bannerImpCount[1]);
        $('#globalWrapper').css('top', 0);
 
        break;
 
 
     }
 
     }
 
   }
 
   }
   function switchColor( bgColor, txtColor ) {
+
   $.cookie('centralnotice_single_banner_impression_count', '{{{banner}}}|' + (impCount + 1), { expires: 7, path: '/' });
    $('#{{{banner}}}-facts').css('background-color', bgColor);
+
  return (impCount + 1);
    $('#{{{banner}}}-facts').css('color', txtColor);
+
}
    //$('#{{{banner}}}-landing').css('border-color', bgColor);
 
    //$('#{{{banner}}}-tab').css('background-color', bgColor);
 
  
    //$('#{{{banner}}}-tab').css('color', txtColor);
+
function validateForm() {
    //$('#{{{banner}}}-tab').css('background-color', bgColor);
+
   var form = document.donationForm;
    //$('#{{{banner}}}-landing').css('border-color', bgColor);
+
   var error = false;
   }
+
 
  function increaseImpCount() {
+
  if($('#interval_multiple').attr('checked') === 'checked') {
    impCount = parseInt($.cookie('centralnotice_banner_impression_count')) | 0;
+
     if($('input[name=interval]:checked', form).length !== 1) {
    $.cookie('centralnotice_banner_impression_count', impCount + 1, { expires: 365, path: '/' });
+
       alert("Es wurde kein Zahlungsintervall ausgewählt.");
    return impCount + 1;
 
  }
 
</script>
 
<script type="text/javascript" language="javascript">
 
   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 error = false;
 
    // Get amount selection
 
    var amount = null;
 
    for ( var i = 0; i < form.betrag_auswahl.length; i++ ) {
 
      if ( form.betrag_auswahl[i].checked ) {
 
        amount = form.betrag_auswahl[i].value;
 
        break;
 
      }
 
    }
 
     if ( form.amountGiven.value != "" ) {
 
      var otherAmount = form.amountGiven.value;
 
      otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10');
 
      otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, '\:$1$2');
 
      otherAmount = otherAmount.replace(/[\$,.]/g, '');
 
      otherAmount = otherAmount.replace(/:/, '.');
 
      form.amountGiven.value = otherAmount;
 
      amount = otherAmount;
 
      $('#input_amount_other').val( otherAmount );
 
    }
 
    // Check amount is a real number
 
    error = ( amount == null || isNaN( amount ) || amount.value <= 0 );
 
    // Check amount is at least the minimum
 
    if ( amount < 1 || error ) {
 
       alert( 'Der Mindestbetrag beträgt 1 Euro.');
 
      return false;
 
    } else if ( amount > 99999 ) {
 
      alert( 'Der Spendenbetrag ist zu hoch.' );
 
 
       return false;
 
       return false;
 +
    } else {
 +
      $('#intervalType').val( "1" );
 +
      $('#periode').val($('input[name=interval]:checked', form).val());
 
     }
 
     }
     return !error;
+
  } else {
 +
     $('#periode').val("0");
 
   }
 
   }
  
var handleInterval = function() {
+
  // Get amount selection
  var chkdInterval = $( 'input[name=periode]:checked', '#{{{banner}}}-form' ).val();
+
  var amount = null;
   if( chkdInterval > 0 ) {
+
  for ( var i = 0; i < form.betrag_auswahl.length; i++ ) {
     $( '#pay_2' ).attr( 'disabled', 'disabled' );
+
    if ( form.betrag_auswahl[i].checked ) {
     $( '#intervalHint' ).css( 'display', 'block' );
+
      amount = form.betrag_auswahl[i].value;
  } else {
+
      break;
     $( '#pay_2' ).removeAttr( 'disabled' );
+
    }
     $( '#intervalHint' ).css( 'display', 'none' );
+
  }
 +
   if ( form.amountGiven.value != "" ) {
 +
     var otherAmount = form.amountGiven.value;
 +
    otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10');
 +
     otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, '\:$1$2');
 +
     otherAmount = otherAmount.replace(/[\$,.]/g, '');
 +
    otherAmount = otherAmount.replace(/:/, '.');
 +
    form.amountGiven.value = otherAmount;
 +
    amount = otherAmount;
 +
     $('#input_amount_other').val( otherAmount );
 
   }
 
   }
}
+
  // Check amount is a real number
 
+
  error = ( amount == null || isNaN( amount ) || amount.value <= 0 );
var handleMethod = function() {
+
  // Check amount is at least the minimum
  var chkdMethod = $( 'input[name=pay]:checked', '#{{{banner}}}-form' ).val();
+
   if ( amount < 1 || error ) {
   if( chkdMethod === 'PPL' ) {
+
     alert( 'Der Mindestbetrag beträgt 1 Euro.');
     $( '#periode_1' ).attr( 'disabled', 'disabled' );
+
     return false;
    $( '#periode_2' ).attr( 'disabled', 'disabled' );
+
   } else if ( amount > 99999 ) {
    $( '#periode_3' ).attr( 'disabled', 'disabled' );
+
     alert( 'Der Spendenbetrag ist zu hoch.' );
    $( '#periode_4' ).attr( 'disabled', 'disabled' );
+
     return false;
     $( '#paymentHint' ).css( 'display', 'block' );
 
   } else {
 
    $( '#periode_1' ).removeAttr( 'disabled' );
 
    $( '#periode_2' ).removeAttr( 'disabled' );
 
     $( '#periode_3' ).removeAttr( 'disabled' );
 
     $( '#periode_4' ).removeAttr( 'disabled' );
 
    $( '#paymentHint' ).css( 'display', 'none' );
 
 
   }
 
   }
 +
  return !error;
 
}
 
}
 
</script>
 
</script>

Version vom 10. September 2018, 16:12 Uhr

<style>

 #centralNotice.collapsed #{{{banner}}}{
   display: none;
 }
 div#{{{banner}}} {
   background: transparent;
   display: none;
   font-family: Arial, Helvetica, Verdana, sans-serif;
   left: 0;
   position: fixed;
   top: 0;
   width: 100%;
   z-index: 9999;
 }
 #{{{banner}}}-form-wrapper {
   background: #eef0fc;
   box-shadow: 3px 0 5px rgba(0, 0, 0, 0.5);
   padding: 4px 8px;
 }
 #{{{banner}}}-form {
   height: 100%;
 }
 #{{{banner}}}-form table {
   border: none;
   border-collapse: collapse;
   width: 100%;
   height: 100%;
 }
 #{{{banner}}}-form td {
   font-size: 12px;
   font-weight: bold;
   min-width: 55px;
   white-space: nowrap;
   margin: 0;
   vertical-align: middle;
   padding: 2px;
 }
 #{{{banner}}}-form span label {
   margin-left: 2px;
 }
 #{{{banner}}}-form .amount-options {
   height: 20%;
 }
 #{{{banner}}}-form .paymentmethod-options td {
   text-align: center;
   padding: 4px 4px 8px 4px;
 }
 #{{{banner}}}-form button {
   cursor: pointer;
   display: inline-block;
   font-weight: bold;
   width: 110px;
   border: 3px double #ddd;
   border-radius: 8px;
   background: #ffffff; /* Old browsers */
   background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */
   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */
   background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */
   background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera 11.10+ */
   background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */
   background: linear-gradient(to bottom, #ffffff 0%,rgb(240, 240, 240) 100%);
   box-shadow: 0 1px 1px #ddd;
   margin: 0 1px;
 }
 #{{{banner}}}-form button:hover {
   color: #0645ad;
 }
 div#{{{banner}}} #{{{banner}}}-facts {
   background: #FFCC00 url(//upload.wikimedia.org/wikipedia/donate/c/c0/Information-icon.png) no-repeat 10px 8px;
   min-height: 65px;
   padding: 0;
   position: relative;
   width: 100%;
   border: none;
   border-collapse: collapse;
 }
 div#{{{banner}}} #{{{banner}}}-facts p {
   color: #000;
   font-size: 17px;
   font-weight: bold;
   line-height: 1.2em;
   margin: 0;
   margin: 4px 10px 4px 35px;
   text-align: justify;
   padding-bottom: 2px;
 }
 div#{{{banner}}} p#{{{banner}}}-legal {
   font-family: Arial, Helvetica, Verdana, sans-serif;
   position: relative;
   margin: 0;
   padding: 10px 40px 10px 40px;
   font-size: 13px;
   line-height: 16px;
   font-weight: normal;
   z-index: -10;
   background: #FFCC00;
   top: -100px;
   text-align: center;
 }
 #{{{banner}}}-close-wrapper {
   width: 20px;
 }
 div#{{{banner}}} span#{{{banner}}}-close {
   background: url(//upload.wikimedia.org/wikipedia/donate/2/27/Small-white-close.png) no-repeat center center;
   background-color: black;
   cursor: pointer;
   display: block;
   height: 21px;
   position: absolute;
   right: 0px;
   top: 0px;
   width: 21px;
 }
 div#{{{banner}}} #{{{banner}}}-facts p b {
   background: yellow;
   color: black;
   padding: 1px 0.5em;
 }
 .interval-hidden {
   display: none;
 }
 #{{{banner}}}_info {
   margin: 0 10px 0 40px;
   font-size: 13px;
   line-height: 16px;
   position: relative;
   border-top: 1px solid #988A00;
   padding-top: 2px;
 }
 #{{{banner}}}_info div#binfo-sepa-info {
   position: absolute;
   top: 2px;
   background-color: #FFCC00;
   height: 20px;
   width: 600px;
 }
 div#{{{banner}}}_info span {
   margin-right: 10px;
 }
 div#{{{banner}}}_info span.binfo-ucase {
   text-transform: uppercase;
 }
 div#{{{banner}}}_info span.binfo-lblue {
   color: #96A0AA;
 }
 div#{{{banner}}}_info span.binfo-dblue {
   color: #000000;
 }
 div#{{{banner}}}_info span.binfo-bold {
   font-weight: bold;
 }
 div#{{{banner}}}_info span.binfo-sepa-box {
   font-size: 10px;
   border-radius: 5px;
   background-color: white;
   padding: 2px 5px;
   cursor: pointer;
   color: #000000;
 }
 div#{{{banner}}} span.btext-highlight {
   background-color: yellow;
   padding: 1px 5px;
 }
 #donationMeterWrapper {
   position: relative;
   margin: 0 auto 4px auto;
   max-width: 1200px;
 }
 #donationMeter {
   margin: 0 auto;
   height: 20px;
   background: #FF6C00;
   border: 2px solid #FF6C00;
   border-radius: 8px;
 }
 #donationFill {
   position: absolute;
   top: 2px;
   left: 2px;
   width: 90px;
   height: 20px;
   background: #FFFFFF;
   border-top-left-radius: 5px;
   border-bottom-left-radius: 5px;
 }
 #donationText {
   position: absolute;
   height: 100%;
   width: 100%;	
   text-align: right;
   /*margin: 8px -16px;*/
   top: 2px;
   font-size: 14px;
   font-weight: bold;
   color: #B2B2B2;
   overflow: hidden;
 }
 #donationRemaining {
   position: absolute;
   top: 3px;
   right: 10px;
   font-size: 15px;
   color: white;
   font-weight: bold;
 }
 #daysLeft {
   display: none;
   font-size: 14px;
   color: #FF6C00;
   font-weight: bold;
   top: 2px;
   position: absolute;
   left: 5px;
 }

</style>

{{{banner-text}}}

0,0 Mio. €
Nur noch 11 Tage
               
es fehlen 6,1 Mio.
             Spendenkonto
             Wikimedia Fördergesellschaft
             Kto
             1194700
             BLZ
             10020500
           SEPA
       <form id="{{{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" checked="checked" 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_auswahl" id="amount_other" value="" />
               <input type="text" 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="10h16_Form2" />
         <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();
 $("#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();
 });
 $('#{{{banner}}}-close').click(function() {
   hideBanner();
   removeBannerSpace();
   return false;
 });
 $('span.binfo-sepa-box').click( function() {
   if ( $( 'div#binfo-sepa-info' ).is( ':visible' ) ) {
     $( 'div#binfo-sepa-info' ).slideUp();
   } else {
     $( 'div#binfo-sepa-info' ).slideDown();
   }
 });
 $('span#numDaysLeft').text( getDaysRemaining() );

});

function getDaysRemaining() {

 daysRemaining = Math.floor( new Date( new Date( 2014, 0, 1, 5, 0, 0 ) - new Date() ) / 1000 / 60 / 60 / 24 );
 return ( daysRemaining > 1 ) ? daysRemaining + " Tage" : "1 Tag";

}

function animateProgressBar() {

 $("#donationFill").clearQueue();
 $("#donationFill").stop();
 $('#daysLeft').hide();
 $('#donationFill').width('90px');
 var barWidth = $('#donationMeter').width();
 var dTarget = {{{donation-target}}};
 var dCollected = {{{donations-collected}}};
 var dRemaining = dTarget - dCollected;
 var fWidth = dCollected / dTarget * barWidth;
 var maxFillWidth = barWidth - $('#donationRemaining').width() - 16;
 widthToFill = (fWidth > maxFillWidth) ? maxFillWidth : fWidth;
 $("#donationFill").animate( { width: widthToFill + 'px' }, {
   duration: 2500, 
   progress: function() {
     var dFill = $("#donationFill").width() / widthToFill * fWidth;
     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#{{{banner}}}').height() + 44;
 switch(skin) {
   case 'vector':
     $('#{{{banner}}}').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);
     $('#{{{banner}}}').css('top', '-20px');
     $('#{{{banner}}}').css('background', 'none');
     break;
 }
 $('#{{{banner}}}').css('display', 'block');
 $('#{{{banner}}}').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;
 }

}

function increaseImpCount() {

 impCount = parseInt($.cookie('centralnotice_banner_impression_count')) | 0;
 $.cookie('centralnotice_banner_impression_count', impCount + 1, { expires: 7, path: '/' });
 return impCount + 1;

}

function increaseBannerImpCount() {

 var impCount = 0;
 if($.cookie('centralnotice_single_banner_impression_count')) {
   var impCountCookie = $.cookie('centralnotice_single_banner_impression_count');
   var bannerImpCount = impCountCookie.split("|");
   if(bannerImpCount[0] === '{{{banner}}}') {
     impCount = parseInt(bannerImpCount[1]);
   }
 }
 $.cookie('centralnotice_single_banner_impression_count', '{{{banner}}}|' + (impCount + 1), { expires: 7, path: '/' });
 return (impCount + 1);

}

function validateForm() {

 var form = document.donationForm;
 var error = false;
 
 if($('#interval_multiple').attr('checked') === 'checked') {
   if($('input[name=interval]:checked', form).length !== 1) {
     alert("Es wurde kein Zahlungsintervall ausgewählt.");
     return false;
   } else {
     $('#intervalType').val( "1" );
     $('#periode').val($('input[name=interval]:checked', form).val());
   }
 } else {
   $('#periode').val("0");
 }
 // Get amount selection
 var amount = null;
 for ( var i = 0; i < form.betrag_auswahl.length; i++ ) {
   if ( form.betrag_auswahl[i].checked ) {
     amount = form.betrag_auswahl[i].value;
     break;
   }
 }
 if ( form.amountGiven.value != "" ) {
   var otherAmount = form.amountGiven.value;
   otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10');
   otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, '\:$1$2');
   otherAmount = otherAmount.replace(/[\$,.]/g, );
   otherAmount = otherAmount.replace(/:/, '.');
   form.amountGiven.value = otherAmount;
   amount = otherAmount;
   $('#input_amount_other').val( otherAmount );
 }
 // Check amount is a real number
 error = ( amount == null || isNaN( amount ) || amount.value <= 0 );
 // Check amount is at least the minimum
 if ( amount < 1 || error ) {
   alert( 'Der Mindestbetrag beträgt 1 Euro.');
   return false;
 } else if ( amount > 99999 ) {
   alert( 'Der Spendenbetrag ist zu hoch.' );
   return false;
 }
 return !error;

} </script>