Template:Optin/ConfirmNo: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
Line 15:
</ul>
<div class="optin-no-prompt">
<div class="optin-no-prompt__no">😔 Are you sure? We don't email often. You can change your mind anytime.</div>
<div class="optin-no-prompt__yes">😍 Thanks for changing your mind! We'll respect your inbox.</div>
</div>
<div class="optin-smallprint links-in-new-tab">
Line 24:
<style>
/* --- Opt-in --- */
 
.optin-options ul {
list-style: none;
Line 100 ⟶ 99:
</style>
<script>
/* Called by Common.js */
function initOptin() {
var language = mw.config.get('wgUserLanguage');
Line 110:
optinNoPrompts['en-gb'] = optinNoPrompts['en'];
 
// Only do all this if we have translated prompts
if ( optinNoPrompts[language] ) {
$('.optin-no-prompt__no').text( optinNoPrompts[language].no );
Line 116 ⟶ 117:
$('.optin-options').on('click', function(){
if ( $('#optin-no').is(':checked') ) {
$('.optin-no-prompt').removeClass('is-positive');
if ( !$('.optin-no-prompt').is(':visible') ) {
$('.optin-no-prompt').slideDown();
}
} else {
$('.optin-no-prompt').addClass('is-positive');
}
});