MediaWiki:Centralnotice-template-B12 WMFR JIMMY2 FR
<style type="text/css">
#centralNotice.collapsed #{{{banner}}}{ display: none; } div#{{{banner}}} { background: #fff; display: none; font-family: Arial, Helvetica, Verdana, sans-serif; overflow: hidden; position: relative; z-index: 9999; } div#{{{banner}}} ul#{{{banner}}}-facts { background: #404040; border: 0; color: #fff; cursor: pointer; display: block; font-size: 14px; font-weight: bold; line-height: 18px; margin: 0; min-height: 124px; padding: 0 0 0 140px; position: relative; } div#{{{banner}}} ul#{{{banner}}}-facts img { border: 1px solid #ccc; position: absolute; left: 4px; margin: 0; top: 4px; height: 108px; } div#{{{banner}}} ul#{{{banner}}}-facts li { display: inline-block; padding: 5px 2% 5px 0; vertical-align: top; width: 30%; } div#{{{banner}}} span#{{{banner}}}-tab { background: #000 url(//upload.wikimedia.org/wikipedia/foundation/d/d4/Expandable-toggle.png) no-repeat; background-position: 400px -25px; border-radius: 0 0 10px 0; color: #fff; cursor: pointer; display: block; font-size: 13px; font-weight: bold; height: 34px; line-height: 34px; margin: 0; padding: 0; position: relative; text-align: center; text-indent: -18px; width: 425px; z-index: 100; -moz-border-radius: 0 0 10px 0; -webkit-border-radius: 0 0 10px 0; } div#{{{banner}}} span#{{{banner}}}-tab.close { background-position: 400px 10px; text-indent: 0; } div#{{{banner}}} span#{{{banner}}}-close { background: url(//upload.wikimedia.org/wikipedia/foundation/8/8c/Banner-close-clean.png); cursor: pointer; display: block; height: 16px; position: absolute; text-indent: -9999px; right: 10px; top: 10px; width: 16px; } div#{{{banner}}} div#{{{banner}}}-landing { background: #fff; border-bottom: 10px solid #404040; display: none; font-family: Arial, Helvetica, Verdana, sans-serif; padding: 30px 0 40px 0; width: 100%; } div#{{{banner}}} div#{{{banner}}}-landing:after { clear: both; content: ; display: block; height: 0; visibility: hidden; } div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-left { float: left; font-size: 13px; line-height: 18px; margin: 0 2%; padding: 0; width: 70%; } div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-left h3 { border-bottom: 1px solid #000; 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-left img { border-radius: 5px; float: left; margin: 0 20px 10px 0; -moz-border-radius: 5px; -webkit-border-radius: 5px; } div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-left blockquote { margin-bottom: 5px; padding: 0; position: relative; } div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-left blockquote:before { color: #e6e6e6; content: '“'; display: block; font: italic 280px Georgia, 'Times New Roman', Times, serif; left: -30px; position: absolute; top: -50px; } div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-left blockquote:after { bottom: -10px; color: #e6e6e6; content: '”'; display: block; font: italic 280px/1px Georgia, 'Times New Roman', Times, serif; position: absolute; right: 20px; } div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-left blockquote p { font-size: 22px; font-style: italic; font-weight: bold; line-height: 30px; margin: 0; padding: 10px 0 30px 10px; position: relative; z-index: 100; } div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right { background: #eaf3f8; border: 1px solid #acb8c1; border-radius: 10px; float: right; font-size: 13px; line-height: 18px; margin: 15px 2% 0 0; padding: 2%; text-align: left; min-width: 10%; -moz-border-radius: 10px; -webkit-border-radius: 10px; } div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right h4 { font-size: 20px; font-weight: bold; line-height: 22px; margin: -10px 0 15px 0; } div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right p { margin: 0 0 15px 0; } div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right p span { font-size: 10px; line-height: 12px; } div#{{{banner}}} div#{{{banner}}}-landing div#{{{banner}}}-landing-right ul { margin: 0; } 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; margin: 10px 5px 0 5px; padding: 10px; font-size: 1.2em; }
</style>
<script type="text/javascript">
$(document).ready( function () { $('body').prepend($('#centralNotice')); if ( wgCanonicalSpecialPageName != "CentralNotice" && wgCanonicalSpecialPageName != "NoticeTemplate" ){ addBannerSpace(); $(window).resize(function() { addBannerSpace(); }) $('span#{{{banner}}}-close').click(function() { hideBanner(); $('#mw-panel').css('top', '160px'); $('#mw-head').css('top', '0px'); return false; }) $('div#{{{banner}}} ul#{{{banner}}}-facts').click(function() { $('div#{{{banner}}}-landing').slideDown(150); $('span#{{{banner}}}-tab').addClass('close').html('Masquer'); setTimeout(addBannerSpace, 200); return false; }) $('span#{{{banner}}}-tab').click(function() { if ($('div#{{{banner}}} div#{{{banner}}}-landing').is(':visible')){ $('div#{{{banner}}}-landing').slideUp(150); $(this).removeClass('close').html("Lisez l'appel de Jimmy Wales, fondateur de Wikipédia."); } else { $('div#{{{banner}}}-landing').slideDown(150); $(this).addClass('close').html('Masquer'); } setTimeout(addBannerSpace, 250); return false; }) } }); function addBannerSpace() { var expandableBannerHeight = $('div#{{{banner}}}').height(); $('#mw-panel').css('top', expandableBannerHeight+160); $('#mw-head').css('top', expandableBannerHeight); $('#{{{banner}}}').css('display', 'block'); }
</script> <script type="text/javascript" language="javascript">
function validateForm( form ) { var minimums = { 'USD' : 1, 'GBP' : 1, // $1.26 'EUR' : 1, // $1.26 'AUD' : 2, // $1.35 'CAD' : 1, // $0.84 'CHF' : 1, // $0.85 'CZK' : 20, // $1.03 'DKK' : 5, // $0.85 'HKD' : 10, // $1.29 'HUF' : 200, // $0.97 'JPY' : 100, // $1 'NZD' : 2, // $1.18 'NOK' : 10, // $1.44 'PLN' : 5, // $1.78 'SGD' : 2, // $1.35 'SEK' : 10, // $1.28 'ILS' : 5 // $1.39 }; var error = true; // Get amount selection var amount = null; for ( var i = 0; i < form.amount.length; i++ ) { if ( form.amount[i].checked ) { amount = form.amount[i].value; } } 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; } // Check amount is a real number error = ( amount == null || isNaN( amount ) || amount.value <= 0 ); // Check amount is at least the minimum var currency = form.currency_code.value; if ( typeof( minimums[currency] ) == 'undefined' ) { minimums[currency] = 1; } if ( amount < minimums[currency] || error ) { alert( 'You must contribute at least $1'.replace('$1', minimums[currency] + ' ' + currency ) ); error = true; } return !error; } function redirectPayment(i) { //if i == 1 var paymentType ="cc"; var action_url = "https://dons.wikimedia.fr/civicrm/contribute/transact?reset=1&id=32" ; if (i==2) { action_url="https://wikimediafoundation.org/wiki/Special:ContributionTracking/en"; paymentType = "pp"; } document.paypalcontribution.action = action_url; document.paypalcontribution.utm_source.value = '{{{banner}}}.no-LP' + '.' + paymentType; if (validateForm(document.paypalcontribution)) { if(typeof(OWA) !== 'undefined'){OWATracker.shareStateByPost( document.paypalcontribution );} document.paypalcontribution.submit(); } }
</script>