User:Pcoombe (WMF)/sandbox: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
__NOTOC__
__NOEDITSECTION__
{{DISPLAYTITLE:{{{header}}}}}
<html>
<script src="//bits.wikimedia.org/geoiplookup"></script>
<style>
/* Hide some MobileFrontend clutter */
.skin-minerva .header,
.skin-minerva #page-actions,
.skin-minerva h1,
.skin-minerva #mw-mf-last-modified {
display: none;
}
#firstHeading, #contentSub, #siteSub {
display: none;
}
.ty {
font-size: 1.2em;
}
.ty-header {
font-size: 3em;
font-weight: bold;
line-height: 1.2;
}
.skin-minerva .ty-header {
font-size: 1.8em;
}
/* Can't use normal headers as don't want mobile to collapse them */
.ty-subhead {
font-size: 1.2em;
margin-top: 1em;
font-weight: bold;
color: #006699;
}
.ty-footer {
margin-top: 1em;
font-size: 0.9em;
border-top: 1px solid #ddd;
text-align: center;
}
.country-specific-GB {
display: none;
}
</style>
</html>
<div class="ty plainlinks" {{#if:{{{rtl|}}}|dir="rtl"}}>
<div class="ty-header">{{{header}}}</div>
<div class="ty-banktransfer" style="display: none;">{{{bank-transfer}}}</div>
{{{receipt}}} <span class="ty-bitcoin" style="display: none;">{{{receipt-bitcoin}}}</span>
{{{questions}}}
<div class="ty-subhead">{{{share-header}}}</div>
{{Social bookmarks2
| style = margin: 0; text-align: {{#if:{{{rtl|}}}|right|left}};
| title = {{{share-label}}}
| short-message = {{{share-msg1}}}
| long-message = {{{share-msg2}}}
| more-link-text = {{{share-more}}}
}}
{{#if:{{{match-text|}}}|
<div class="ty-subhead">{{{match-header}}}</div>
{{{match-text}}}
}}
{{#if:{{{survey-text|}}}|
<div class="ty-subhead">{{{survey-header}}}</div>
{{{survey-text}}}
}}
<div class="country-specific-GB">
<div class="ty-subhead">God save the Queen!</div>
Blah blah blah blah
</div>
<div class="ty-footer">
{{{footer-text1}}}
{{{footer-text2}}}
</div>
</div><!-- ty -->
{{Hide banners}}
<html>
<script>
$(document).ready( function () {
var paymentMethod = mw.util.getParamValue("payment_method");
if(paymentMethod === 'bt') {
$('.ty-banktransfer').show();
}
if(paymentMethod === 'bitcoin') {
$('.ty-bitcoin').show();
}
// Allow overriding the country for testing
var Geo = Geo || {};
if(mw.util.getParamValue('country')) {
Geo.country = mw.util.getParamValue('country');
}
if(country === 'GB') {
$('.country-specific-GB').show();
}
});
</script>
</html>
|
Revision as of 18:47, 20 November 2014
<html> <script src="//bits.wikimedia.org/geoiplookup"></script> <style> /* Hide some MobileFrontend clutter */ .skin-minerva .header, .skin-minerva #page-actions, .skin-minerva h1, .skin-minerva #mw-mf-last-modified {
display: none;
}
- firstHeading, #contentSub, #siteSub {
display: none;
} .ty {
font-size: 1.2em;
}
.ty-header {
font-size: 3em; font-weight: bold; line-height: 1.2;
} .skin-minerva .ty-header {
font-size: 1.8em;
}
/* Can't use normal headers as don't want mobile to collapse them */ .ty-subhead {
font-size: 1.2em; margin-top: 1em; font-weight: bold; color: #006699;
}
.ty-footer {
margin-top: 1em; font-size: 0.9em; border-top: 1px solid #ddd; text-align: center;
}
.country-specific-GB {
display: none;
} </style> </html>
{{{header}}}
{{{receipt}}}
{{{questions}}}
{{{share-header}}}
God save the Queen!
Blah blah blah blah
<html> <script> $(document).ready( function () {
var paymentMethod = mw.util.getParamValue("payment_method");
if(paymentMethod === 'bt') { $('.ty-banktransfer').show(); } if(paymentMethod === 'bitcoin') { $('.ty-bitcoin').show(); }
// Allow overriding the country for testing var Geo = Geo || {}; if(mw.util.getParamValue('country')) { Geo.country = mw.util.getParamValue('country'); }
if(country === 'GB') { $('.country-specific-GB').show(); }
}); </script> </html>