Thank You 2020: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
Line 1,030:
 
wmf.subscribe = {
var $form = $('#wmf-subscribe-form');
post: function() {
/* Create the iframe for the form and use it as the form's target */
var frameName = 'subscribeFrame';
var $form = $('#wmf-subscribe-form');
if ( $("iframe[name=" + frameName + "]").length === 0 ) {
var $iframe = $('<iframe style="display: none;" name="' + frameName + '"></iframe>');
Line 1,045:
init: function() {
/* Prep the form */
var $form = $('#wmf-subscribe-form');
$('#wmf-subscribe-submit').click(function() {
if ( mw.util.validateEmail( $form.Email.value ) ) {
wmf.subscribe.post();
$('.wmf-subscribe-ty').show();
Line 1,057 ⟶ 1,059:
});
}
};
 

Revision as of 20:58, 8 January 2020

Explore our best content

The top fifteen images from Wiki Loves Monuments contain a treasure trove of the cultural heritage we all share.

Check it out

Install the Wikipedia app

Get the Wikipedia app today for the quickest way to check a fact and get answers to your questions. Downloading is easy on your phone and only takes a minute. It’s free and ad-free.

Download it now