MediaWiki:Centralnotice-template-20101218 SLQ2: Difference between revisions
Content deleted Content added
No edit summary |
m Bot: Protocol-relative URLs per https://meta.wikimedia.org/?oldid=3015241#Https_security_compromised_by_global_message. |
||
(3 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
<style type="text/css"> |
<style type="text/css"> |
||
#centralNotice.collapsed # |
#centralNotice.collapsed #SLQ2{ |
||
display: none; |
display: none; |
||
} |
} |
||
# |
#SLQ2{ |
||
position: relative; |
position: relative; |
||
overflow: hidden; |
overflow: hidden; |
||
Line 12: | Line 12: | ||
background-color: #000000; |
background-color: #000000; |
||
height: 172px; |
height: 172px; |
||
background-image: url( |
background-image: url(//upload.wikimedia.org/wikipedia/commons/c/cc/StateLibQld_1_101584_banner.jpg); |
||
background-position: right top; |
background-position: right top; |
||
background-repeat: no-repeat; |
background-repeat: no-repeat; |
||
Line 18: | Line 18: | ||
} |
} |
||
# |
#SLQ2-text { |
||
padding: 1.25em 1.5em !important; |
padding: 1.25em 1.5em !important; |
||
overflow: hidden; |
overflow: hidden; |
||
Line 38: | Line 38: | ||
} |
} |
||
# |
#SLQ2 a:hover { |
||
text-decoration: none; |
text-decoration: none; |
||
} |
} |
||
# |
#SLQ2-text:hover { |
||
text-decoration: underline; |
text-decoration: underline; |
||
color: #FFFFFF; |
color: #FFFFFF; |
||
Line 58: | Line 58: | ||
} |
} |
||
url+= "?utm_medium=sitenotice&utm_campaign={{{campaign}}}&utm_source={{{banner}}}&country_code="+Geo.country; |
url+= "?utm_medium=sitenotice&utm_campaign={{{campaign}}}&utm_source={{{banner}}}&country_code="+Geo.country; |
||
$j("div# |
$j("div#SLQ2 a.variable_lp").attr("href",url); |
||
} |
} |
||
if($j){ |
if($j){ |
||
Line 65: | Line 65: | ||
</script> |
</script> |
||
<div id=" |
<div id="SLQ2"> |
||
<a class="variable_lp cn-full-banner-click" href=""> |
<a class="variable_lp cn-full-banner-click" href=""> |
||
<div id=" |
<div id="SLQ2-text"> |
||
{{{SLQ1-text1}}}<br />{{{SLQ1-text2}}} |
{{{SLQ1-text1}}}<br />{{{SLQ1-text2}}} |
||
Latest revision as of 14:58, 26 October 2011
<style type="text/css">
/* Common style for 2010 banners */ /* Hide the collapsed banner */ #centralNotice.collapsed .cn-fundraiser-banner { display: none; }
/* Suppress lock icon for secure links in the banner */ #centralNotice a[href^="https://"], .link-https { background-image: none !important; padding: 0 !important; }
/* Set a grey border, grey background, etc. */ .cn-fundraiser-banner { position: relative; border: 1px solid silver; background-color: #fbfbfb; margin-bottom: 0.5em !important; padding-top: 1em; padding-bottom: 1em; text-align:center; }
/* Put the little X in the top-right corner */ #cn-toggle-box { position: absolute; top: .2em; right: .2em; }
/* Bold, blue text */ .cn-blue-text { font-weight: bold; font-family: Helvetica, Verdana, sans-serif; color: #6e98c2; text-align: center; font-size: 1.3em; }
/* Bigger bold, blue text */ .cn-bold-blue-text { font-size: 2.25em; font-weight: bold; font-family: Helvetica, Arial, sans-serif; color: navy; text-align: center; padding: 0.5em !important; line-height: 1em; }
/* For buttons in the lower right corner */ .cn-bottom-right-float { position: absolute; right: 1em; bottom: 1em; }
/* To make the entire banner clickable */ a.cn-full-banner-click { display:block; position:relative; height:100%; width:100%; }
</style>
<style type="text/css">
#centralNotice.collapsed #SLQ2{ display: none; }
#SLQ2{ position: relative; overflow: hidden; border: solid 1px silver; background-color: #000000; height: 172px; background-image: url(//upload.wikimedia.org/wikipedia/commons/c/cc/StateLibQld_1_101584_banner.jpg); background-position: right top; background-repeat: no-repeat; margin-bottom: 0.5em !important; }
#SLQ2-text { padding: 1.25em 1.5em !important; overflow: hidden; color: #FFFFFF; font-family: helvetica, arial, sans-serif; font-weight: normal; text-align: left; font-size: 2.25em; line-height: 1.125em; cursor: pointer; background-color: transparent; }
#cn-toggle-box { position: absolute; z-index: 1000; top: .2em; right: .2em; }
#SLQ2 a:hover { text-decoration: none; }
#SLQ2-text:hover { text-decoration: underline; color: #FFFFFF; }
</style>
<script type="text/javascript">
var cn_rewrite_url = function() {
var url = '{{{banner-url-2010}}}'; var targets = String( '{{{targets}}}' ).split(','); if ( targets.length ) { url += "/" + targets[Math.floor( Math.random() * targets.length )].replace(/^\s+|\s+$/, ); } url+= "?utm_medium=sitenotice&utm_campaign={{{campaign}}}&utm_source={{{banner}}}&country_code="+Geo.country; $j("div#SLQ2 a.variable_lp").attr("href",url);
} if($j){
$j(document).ready(cn_rewrite_url);
} </script>
<a class="variable_lp cn-full-banner-click" href="">
{{{SLQ1-text1}}}
{{{SLQ1-text2}}}
</a>
<a href="#" onclick="toggleNotice();return false"><img border="0" src="//upload.wikimedia.org/wikipedia/foundation/2/20/CloseWindow19x19.png" width="19" height="19" alt="Close" /></a>