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

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 207: Zeile 207:
         BFSWDE33BER - IBAN DE33 1002 0500 0001 1947 00 </p>
         BFSWDE33BER - IBAN DE33 1002 0500 0001 1947 00 </p>
     </div>
     </div>
 
    <script type="text/javascript">
$( document ).ready( function() {
  $('body').prepend($('#centralNotice'));
 
  var impCount = increaseImpCount();
  $("#impCount").val(impCount);
  var bannerImpCount = increaseBannerImpCount();
  $("#bImpCount").val(bannerImpCount);
 
  setTimeout( addBannerSpace, 15000 );
  if(wgUserName !== null) $('#wikilogin').val('yes');
  $(window).resize(function() {
    //addBannerSpace();
  });
 
  $( ".send" ).click( function( e ) {
    return validateForm();
  });
 
  $('#{{{banner}}}-close').click(function() {
    hideBanner();
    removeBannerSpace();
    return false;
  });
 
  $('#{{{banner}}}').mouseenter(function() {
    $('p#{{{banner}}}-legal').clearQueue().animate({
      top: '0px'
    });
  });
  $('#{{{banner}}}').mouseleave(function() {
    $('p#{{{banner}}}-legal').animate({
      top: '-100px'
    });
  });
});
 
function addBannerSpace() {
  var expandableBannerHeight = $('div#{{{banner}}}').height() + 44 + $('div#{{{banner}}}-legal').height();
  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);
}
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>
   </body>
   </body>
</html>
</html>
5.651

Bearbeitungen