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

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 67: Zeile 67:
   }
   }
   div#{{{banner}}} #{{{banner}}}-facts {
   div#{{{banner}}} #{{{banner}}}-facts {
     background: #FFCC00 url(//upload.wikimedia.org/wikipedia/donate/c/c0/Information-icon.png) no-repeat 10px 8px;
     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: 17px;
     font-size: 13px;
     font-weight: bold;
     font-weight: bold;
     line-height: 1.2em;
     line-height: 16px;
     margin: 0;
     margin: 0;
     margin: 4px 10px 4px 35px;
     padding: 10px 10px 10px 40px;
     text-align: justify;
     text-align: justify;
    padding-bottom: 2px;
   }
   }


Zeile 95: Zeile 94:
     font-weight: normal;
     font-weight: normal;
     z-index: -10;
     z-index: -10;
     background: #FFCC00;
     background: #ffcc00;
     top: -100px;
     top: -100px;
     text-align: center;
     text-align: center;
Zeile 122: Zeile 121:
   .interval-hidden {
   .interval-hidden {
     display: none;
     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 {
   div#{{{banner}}} span.btext-highlight {
     background-color: yellow;
     background: yellow;
     padding: 1px 5px;
     color: black;
  }
     padding: 1px 0.5em;
  #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>
</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><table style="height: 100%"><tr><td valign="top" style="height: 1%">
       <td>
         <p>{{{banner-text}}}</p>
         <p>{{{banner-text}}}</p>
       </td></tr>
       </td>
      <tr><td>
        <div style="width: inherit; margin: 0 10px 0 35px;">
          <div id="donationMeterWrapper">
            <div id="donationMeter"></div>
            <div id="donationFill">
              <div id="donationText"><span id="donationValue">0,0</span> Mio. &euro;</div>
              <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>
      </td></tr>
      <tr><td style="height: 1%">
        <div id="{{{banner}}}_info">
          <div id="binfo-bank-info">
            <div style="display: inline-block">
              <span class="binfo-ucase binfo-dblue">Spendenkonto</span>
              <span class="binfo-bold binfo-dblue">Wikimedia Fördergesellschaft</span>
              <span class="binfo-label binfo-dblue">Kto</span>
              <span class="binfo-bold binfo-dblue">1194700</span>
              <span class="binfo-label binfo-dblue">BLZ</span>
              <span class="binfo-bold binfo-dblue">10020500</span>
            </div>
            <span class="binfo-sepa-box">SEPA</span>
          </div>
          <div id="binfo-sepa-info" style="display: none;">
            <div style="display: inline-block">
              <span class="binfo-ucase binfo-dblue">Spendenkonto</span>
              <span class="binfo-label binfo-dblue">BIC</span>
              <span class="binfo-bold binfo-dblue">BFSWDE33BER</span>
              <span class="binfo-label binfo-dblue">IBAN</span>
              <span class="binfo-bold binfo-dblue">DE33 1002 0500 0001 1947 00</span>
            </div>
            <span class="binfo-sepa-box" style="margin-left: 21px;">&#x2716;</span>
          </div>
        </div>
      </td></tr></table></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').addClass('interval-hidden');$('#interval_multiple').attr('checked', false);" />
                 <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').removeClass('interval-hidden');$('#interval_onetime').attr('checked', false);" />
                 <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&auml;&szlig;ig</label>
                 <label for="interval_multiple" class="interval-label">regelm&auml;&szlig;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="betrag_auswahl" onclick="document.donationForm.amountGiven.value = ''" id="amount5" value="5" />
                 <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="betrag_auswahl" onclick="document.donationForm.amountGiven.value = ''" id="amount15" value="15" />
                 <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="betrag_auswahl" onclick="document.donationForm.amountGiven.value = ''" id="amount25" value="25" />
                 <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="betrag_auswahl" checked="checked" onclick="document.donationForm.amountGiven.value = ''" id="amount50" value="50" />
                 <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="betrag_auswahl" onclick="document.donationForm.amountGiven.value = ''" id="amount75" value="75" />
                 <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="betrag_auswahl" onclick="document.donationForm.amountGiven.value = ''" id="amount100" value="100" />
                 <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="betrag_auswahl" onclick="document.donationForm.amountGiven.value = ''" id="amount250" value="250" />
                 <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="betrag_auswahl" id="amount_other" value="" />
                 <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="$('#zahlweise').val('BEZ');">Lastschrift</button>
                 <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="$('#zahlweise').val('UEB');">Überweisung</button><br />
                 <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="$('#zahlweise').val('MCP');">Kreditkarte</button>
                 <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="$('#zahlweise').val('PPL');">PayPal</button>
                 <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" name="intervalType" id="intervalType" value="0" />
           <input type="hidden" id="form-page" name="form" value="Formularseite2-Lastschrift" />
           <input type="hidden" id="form-page" name="form" value="10h16_Form2" />
           <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="" />
          <input type="hidden" id="zahlweise" name="zahlweise" value="" />
         </form>
         </form>
       </td>
       </td>
Zeile 371: Zeile 239:
   </table></div>
   </table></div>


   <!--p id="{{{banner}}}-legal">
   <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);


   if ( wgAction === "view" ) {
   setTimeout( addBannerSpace, 15000 );
    setTimeout( addBannerSpace, 7500 );
  }
   if(wgUserName !== null) $('#wikilogin').val('yes');
   if(wgUserName !== null) $('#wikilogin').val('yes');
   $(window).resize(function() {
   $(window).resize(function() {
     animateProgressBar();
     //addBannerSpace();
   });
   });


Zeile 404: Zeile 270:
   });
   });


   $('span.binfo-sepa-box').click( function() {
   $('#{{{banner}}}').mouseenter(function() {
     if ( $( 'div#binfo-sepa-info' ).is( ':visible' ) ) {
     $('p#{{{banner}}}-legal').clearQueue().animate({
      $( 'div#binfo-sepa-info' ).slideUp();
      top: '0px'
     } else {
    });
      $( 'div#binfo-sepa-info' ).slideDown();
  });
     }
  $('#{{{banner}}}').mouseleave(function() {
     $('p#{{{banner}}}-legal').animate({
      top: '-100px'
     });
   });
   });
  $('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() {
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);
  setTimeout(animateProgressBar, 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 {
      $('#intervalType').val( "1" );
       $('#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.betrag_auswahl.length; i++ ) {
   for ( var i = 0; i < form.betrag.length; i++ ) {
     if ( form.betrag_auswahl[i].checked ) {
     if ( form.betrag[i].checked ) {
       amount = form.betrag_auswahl[i].value;
       amount = form.betrag[i].value;
       break;
       break;
     }
     }
5.659

Bearbeitungen