Jump to content

MediaWiki:Centralnotice-template-WMDE editor campaign summer 2017 a

From Meta, a Wikimedia project coordination wiki

<style>

  1. {{{banner}}}-container {
   position: absolute;
   width: 100%;
   background-color: #0065a4;
   text-align: center;
   box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
   overflow: hidden;
   height: 215px;

}

.{{{banner}}}-inner {

   background-image: url( "//upload.wikimedia.org/wikipedia/commons/6/62/Pyramidengrafik.png" );
   background-position: right 0 bottom 0;
   background-repeat: no-repeat;
   color: #ffffff;
   text-shadow: 0 3px rgba(0, 0, 0, 0.25);
   height: 100%;
   text-align: left;
   width: 86em;
   margin: 0 auto;
   padding-left: 2em;

}

.{{{banner}}}-inner div.title {

   font-size: 2.8em;
   padding: 1em 0 0.2em;

}

.{{{banner}}}-inner div.subtitle {

   font-size: 2em;
   float: left;

}

  1. {{{banner}}}-container img {
   float: left;

}

.{{{banner}}}-button {

   background-color: #ffffff;
   box-shadow: 0.5px 2px 5px 1px rgba(0, 0, 0, 0.25);
   padding: 2px;
   margin: -0.1em 0 0 5em;
   display: inline-block;

}

.{{{banner}}}-button-inner {

   font-weight: bold;
   background-color: #f29400;
   color: #ffffff;
   padding: 0.65em;
   text-shadow: none;

}

.{{{banner}}}-close {

 position: absolute;
 right: 0.5em;
 top: 0.5em;

}

  1. {{{banner}}}-close-tracking {
   display: none;

}

.{{{banner}}}-button-link, .{{{banner}}}-button-link:hover, .{{{banner}}}-button-link:visited {

   color: #ffffff;
   text-decoration: none;

}

</style>

<a href="#" title="Close">
Close
</a>
   <a class="{{{banner}}}-button-link" href="https://de.wikipedia.org/wiki/Wikipedia:Wikimedia_Deutschland/Entdeckungen-sortieren?campaign=wmde2017summer1&wmdesource=bannerclick">
Im Sommer endlich Zeit für deine Interessen?
Teile deine Entdeckungen in Wikipedia
                       JETZT ANFANGEN
   </a>
   <img id="{{{banner}}}-close-tracking" src="" border="0" width="0" height="0" />

<script> $( document ).ready( function () {

 addBannerSpace();
 $( 'body' ).prepend( $( '#centralNotice' ) );
 $( '.{{{banner}}}-close' ).click( function () {
   if ( Math.random() < 0.01 ) {
     $( '#{{{banner}}}-close-tracking' ).attr( 'src', 'https://tracking.wikimedia.de/piwik/piwik.php?idsite=1&url=https://spenden.wikimedia.de/banner-closed/{{{banner}}}&rec=1' );
   }
   $( '#{{{banner}}}-container' ).hide();
   removeBannerSpace();
   return false;
 } );
 $( '#ca-ve-edit, .mw-editsection-visualeditor' ).click( function () {
   $( '#{{{banner}}}-container' ).hide();
   removeBannerSpace();
 } );

} );

function addBannerSpace() {

 var bannerHeight = $( '#{{{banner}}}-container' ).height() + 20;
 switch( mw.config.get( 'skin' ) ) {
   case 'vector':
     $( '#mw-panel' ).css( 'top', bannerHeight + 160 );
     $( '#mw-head' ).css( 'top', bannerHeight );
     $( '#mw-page-base' ).css( 'padding-top', bannerHeight );
     break;
   case 'monobook':
     $( '#globalWrapper' ).css( 'position', 'relative' );
     $( '#globalWrapper' ).css( 'top', bannerHeight );
     $( '#{{{banner}}}' ).css( 'top', '-20px' );
     $( '#{{{banner}}}' ).css( 'background', 'none' );
     break;
 }

}

function removeBannerSpace() {

 switch ( mw.config.get( '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>