MediaWiki:Centralnotice-template-Leichte Sprache Banner iPad

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

<style type="text/css">

 #centralNotice.collapsed #{{{banner}}} {
   display: none;
 }
 div#{{{banner}}} {
   background: transparent;
   display: none;
   font-family: Arial, Helvetica, Verdana, sans-serif;
   overflow: hidden;
   position: absolute;
   left: 0;
   top: 0;
   width: 100%;
   z-index: 9999;
 }
 div#{{{banner}}}-outerWrapper {
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
 }
 div#{{{banner}}} div#{{{banner}}}-wrapper {
   background: #133B06;
   cursor: pointer;
   position: relative;
 }
 div#{{{banner}}} span#{{{banner}}}-tab {
   display: block;
   z-index: 100;
   position: relative;
   margin: 0 auto;
   cursor: pointer;
   background: #133b06 url(//upload.wikimedia.org/wikipedia/foundation/d/d4/Expandable-toggle.png) no-repeat;
   background-position: 105px -31px;
   width: 130px;
   height: 25px;
   color: white;
   font-size: 12px;
   line-height: 25px;
   font-weight: bold;
   text-align: center;
   border: 1px solid #a7a7a7;
   border-top: none;
   border-radius: 0 0 5px 5px;
   -moz-border-radius: 0 0 5px 5px;
   -webkit-border-radius: 0 0 5px 5px;
 }
 div#{{{banner}}} span#{{{banner}}}-tab.close {
   background-position: 105px 4px;
 }
 div#{{{banner}}} span#{{{banner}}}-close {
   background: url(//upload.wikimedia.org/wikipedia/donate/2/27/Small-white-close.png) no-repeat center center black;
   cursor: pointer;
   display: block;
   height: 21px;
   position: absolute;
   text-indent: -9999px;
   right: 0;
   top: 0;
   width: 21px;
 }
 div#{{{banner}}} div#{{{banner}}}-landing {
   background: #133b06;
   color: #FFFFFF;
   display: none;
   font-size: 11pt;
 }
 div#{{{banner}}} div#{{{banner}}}-message {
   margin: 10px 50px 20px 250px;
 }
 div#{{{banner}}}-message h2 {
   color: #FFFFFF;
   border: none;
 }
 div#{{{banner}}}-message a, div#{{{banner}}}_info a {
   color: #EEEEEE;
   text-decoration: underline;
 }
 div#{{{banner}}}-message a:hover, div#{{{banner}}}_info a:hover {
   color: #CCCCCC;
   text-decoration: underline;
 }
 div#{{{banner}}} div#{{{banner}}}-landing span.landing-close {
   color: #3f3f3f;
   cursor: pointer;
   font-size: 12px;
   position: absolute;
   right: 10px;
   top: 10px;
 }
 #{{{banner}}}_info {
   margin: 0;
   font-size: 13px;
   line-height: 16px;
   position: relative;
   padding: 10px;
   background-color: #133B06;
   color: white;
 }
 #{{{banner}}}_info div#binfo-sepa-info {
   position: absolute;
   top: 10px;
   background-color: #133b06;
   height: 20px;
   width: 580px;
 }
 div#{{{banner}}}_info span {
   margin-right: 10px;
 }
 div#{{{banner}}}_info span.binfo-ucase {
   text-transform: uppercase;
 }
 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;
 }
  1. {{{banner}}}-photo { display: inline-block; }
  2. {{{banner}}}-photo img { height: 120px; }
  3. {{{banner}}}-msg { position: absolute; top: 0; left: 250px; color: #FFFFFF; }
  4. {{{banner}}}-msg h1 {
 color: #FFFFFF;
 border: medium none;
 font-weight: bold;
 font-size: 22pt;
 margin: 0px;
 padding: 28px 0px 6px;

}

  1. {{{banner}}}-msg h1 span { border-bottom: 1px solid #FFFFFF; }
  2. {{{banner}}}-msg p { font-size: 11pt; margin-right: 100px; }
  3. {{{banner}}}-logo { position: absolute; bottom: 25px; right: 25px; height: 60px; overflow: hidden; }
  4. {{{banner}}}-logo img { opacity: 0.8; }

</style>

       Foto von Pavel Richter

{{{msg-headline}}}

{{{msg-body}}}

{{{appeal-header}}}

{{{appeal-p1}}}

{{{appeal-p2}}}

{{{appeal-p3}}}

{{{appeal-p4}}}

{{{appeal-p5}}}

<a href="http://meta.wikimedia.org/wiki/Wikimedia_Deutschland/2014_annual_plan/de">Jahresplan 2014</a> | <a href="http://www.wikimedia.de/">Wikimedia Deutschland e. V.</a> | <a href="http://wikimediafoundation.org/wiki/Home">Wikimedia Foundation</a>
           Spendenkonto
           Wikimedia Fördergesellschaft
           Kto
           1194700
           BLZ
           10020500
         SEPA
 {{{btn-text-1}}}
 {{{btn-text-close}}}
 

<script type="text/javascript">

 $(document).ready( function () {
   if ( wgAction === "view" && increaseBannerImpCount() <= parseInt( '{{{banner-max-imp}}}' ) ) {
     $('body').prepend($('#centralNotice'));
     addBannerSpace();
     $('span#{{{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();
       }
     });
     $('div#{{{banner}}}-wrapper, span#{{{banner}}}-tab').click(function(e) {
       if ($('div#{{{banner}}} div#{{{banner}}}-landing').is(':visible')){
         $('div#{{{banner}}}-landing').slideUp(150);
         $('#{{{banner}}}-tab').removeClass('close').html('{{{btn-text-1}}}');
       } 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);
         $('#{{{banner}}}-tab').addClass('close').html('{{{btn-text-close}}}');
       }
     });
     $('div#{{{banner}}} div#{{{banner}}}-landing span.landing-close').click(function() {
       $('div#{{{banner}}}-landing').slideUp(150);
       return false;
     });
   }
 });

function addBannerSpace() {

 var expandableBannerHeight = $( 'div#{{{banner}}}' ).height();
 $('#mw-panel').css( 'top', expandableBannerHeight + 160 );
 $('#mw-head').css( 'top', expandableBannerHeight );
 $('#mw-page-base').css( 'paddingTop', expandableBannerHeight );
 $('#{{{banner}}}').css('display', 'block');

}

function removeBannerSpace() {

 $('#mw-panel').css('top', 160);
 $('#mw-head').css('top', 0);
 $('#mw-page-base').css('padding-top', 0);

}

function increaseBannerImpCount() {

 var impCount = 0;
 if( $.cookie('centralnotice_single_banner_impression_count') && !window.location.search.match( /bReset=1/ ) ) {
   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);

} </script>