MediaWiki:Centralnotice-template-Wikimania2014Submissions

From Meta, a Wikimedia project coordination wiki

<style type="text/css">

  1. mw-wmscholnotice {
display: none;

}

  1. centralNotice.collapsed .mw-wmscholnotice {
display: none !important;

}

.mw-wmscholnotice {

position: relative;
margin-bottom: 0.5em;
background: #eee url(//upload.wikimedia.org/wikipedia/commons/0/0d/Gray-gradient1.png) repeat-x;
border: solid 1px #000; 
height: 65px;

}

.mw-wmscholnotice:hover {

cursor: pointer;

}

.mw-wmscholnotice-logo {

position: absolute;
top: 15px;
left: 15px;
width: 30px;
height: 40px;
background: url(//upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Wikimania_2014_London_Shard_Logo.svg/30px-Wikimania_2014_London_Shard_Logo.svg.png) no-repeat;

}

.mw-wmscholnotice-content {

position: relative;
padding: 14px 40px 0 60px;
text-align: center;
line-height: 1.4;

}

.mw-wmscholnotice-text {

font-size: 14px;
font-weight: bold;

}

  1. mw-wmscholnotice-close {
position: absolute;
top: 0;
right: 0;
width: 27px;
height: 32px;
background: url(//bits.wikimedia.org/skins/common/images/closewindow19x19.png) no-repeat 50% 40%;
z-index: 98;

}

.mw-wmscholnotice-trans-box {

position: absolute;
right: 5px;
bottom: 5px;
font-size: 0.8em;
white-space: nowrap;

}

.rtl .mw-wmscholnotice-trans-box {

   text-align: left;

} </style>

     <a href="//wikimania2014.wikimedia.org/wiki/Submissions">{{{text1}}}
{{{text2}}}</a>
[<a href="//meta.wikimedia.org/wiki/Wikimania_2014/CentralNotice">Help with translations!</a>]

<script> $('#mw-wmscholnotice').click(function () { window.location = "//wikimania2014.wikimedia.org/wiki/Submissions"; }); $('#mw-wmscholnotice-close').click(function () { hideBanner(); return false; // stop (im)propagation and any default }); </script>

<script type="text/javascript"> function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; }

var wgHideWikimaniaSubNotice = { /********* ** Initialize script *********/ 'initialize':function() { /* get elements */ this.notice = document.getElementById('mw-wmscholnotice'); if( !this.notice ) return this.log( 'could not locate #mw-wmscholnotice' );

var x = readCookie('mw-wmsubnotice-shown'); if(x) { hideBanner(); return false; } else { document.cookie = 'mw-wmsubnotice-shown=yes; expires=Tue, 1 Apr 2014 00:00:01 UTC; path='; this.notice.style.display = 'block'; } } }; wgHideWikimaniaSubNotice.initialize(); </script>