User:Pcoombe (WMF)/sandbox: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
code cleanup. hoping to get something that works on mobile
No edit summary
Line 10: Line 10:
<!-- donor comments box -->
<!-- donor comments box -->
<div style="background:#fbfbfb; border:1px solid #bbbbbb; min-height: 100px; margin-bottom: 10px; font-size: 145%; text-align: center; padding: 0.5em 2em;">
<div style="background:#fbfbfb; border:1px solid #bbbbbb; min-height: 100px; margin-bottom: 10px; font-size: 145%; text-align: center; padding: 0.5em 2em;">

<p id="std-message">
<p id="std-message">
{{{comments-text|'''[[Stories2/en|Read]]''' about why other donors around the world support Wikipedia and its sister projects, or find out if your company has a [[Donate/Match Your Gift/en|corporate matching]] gift program. <br /> Tell the world that you support Wikimedia: tweet it with hashtag #keepitfree!}}}
{{{comments-text|'''[[Stories2/en|Read]]''' about why other donors around the world support Wikipedia and its sister projects, or find out if your company has a [[Donate/Match Your Gift/en|corporate matching]] gift program. <br /> Tell the world that you support Wikimedia: tweet it with hashtag #keepitfree!}}}
Line 20: Line 19:
{{FRLocalize|2011FR/Thanks-DD}}
{{FRLocalize|2011FR/Thanks-DD}}
</p>
</p>

<html>
<script>
function getQuerystring( key ) {
key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' );
var regex = new RegExp( '[\\?&]' + key + '=([a-zA-Z0-9\_\-]*)' );
var qs = regex.exec( window.location.search );
return qs == null ? '' : qs[1];
}

var paymentMethod = getQuerystring("payment_method");

if(paymentMethod == "bt")
{
//$("#std-message").hide();
$("#bt-message").show();
}
//else if(paymentMethod == "dd")
//{
// //$("#std-message").hide();
// $("#dd-message").show();
//}

</script>
</html>

</div>
</div>


Line 102: Line 75:
</td><td></td><td></td></tr></table></html>
</td><td></td><td></td></tr></table></html>
{{Hide banners}}
{{Hide banners}}

<html>
<script>
$(document).ready( function () {
var paymentMethod = mw.util.getParamValue("payment_method");

if(paymentMethod == "bt") {
$("#bt-message").show();
}
if(paymentMethod == "dd") {
$("#dd-message").show();
}
});
</script>
</html>

Revision as of 20:46, 20 November 2013

<html> <style> p {

 line-height: 1.2em;

} </style> </html>

Read about why other donors around the world support Wikipedia and its sister projects, or find out if your company has a corporate matching gift program.
Tell the world that you support Wikimedia: tweet it with hashtag #keepitfree!

Meet a few of the volunteer editors who write and maintain Wikipedia

Template:FRLocalizePass

<html>

</html>Please tell us your Wikipedia story (Optional)<html>

<form style="padding: 6px;" name='stories' method='post' action='</html>/wiki/Special:Contact<html>'> <input type="hidden" name="returnto" value="Support/en">

</html>Read other Wikipedia stories.<html>

</html>What does Wikipedia mean to you?<html>

</html>Name: <html> <input style="width: 400px;" type="text" name="name" id="name" maxlength="200" size="30" />
</html>Age:<html> <input style="width:50px;" type="text" name="age" id="age" maxlength="3" size="3" />
       </html>City: <html>
<input style="width: 320px;" type="text" name="location" id="location" maxlength="200" size="30" />
</html>Email:<html> <input style="width: 400px;" type="text" name="email" id="email" maxlength="200" size="30" />
</html>Your story:<html> <textarea style="width: 400px;" name="story" id="story" cols="25" rows="6"></textarea>
<input type="submit" value="</html>Submit<html>" />
<input type="checkbox" name="followup" id="followup" value="story-permission"/>  <label for="follow-up"></html>By checking this box, you grant the Wikimedia Foundation permission to follow-up with you directly regarding your story, and to use it to publicize the Wikimedia Foundation and its projects. <html></label>

</form>

</html><html>


</html>

Template:Hide banners

<html> <script> $(document).ready( function () {

   var paymentMethod = mw.util.getParamValue("payment_method");
   if(paymentMethod == "bt") {
     $("#bt-message").show();
   }
   if(paymentMethod == "dd") {
     $("#dd-message").show();
   }

}); </script> </html>