MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
no edit summary
imported>Hb1290 No edit summary |
imported>Hb1290 No edit summary |
||
| Line 363: | Line 363: | ||
function lightsOn() { | function lightsOn() { | ||
$('html').removeClass('nighttime'); | $('html').removeClass('nighttime'); | ||
$('#pt-nightpedia a').text(' | $('#pt-nightpedia a').text('Dark Mode'); | ||
mw.storage.set('nightpedia', 'off'); | mw.storage.set('nightpedia', 'off'); | ||
} | } | ||
| Line 371: | Line 371: | ||
} | } | ||
$('html').addClass('nighttime'); | $('html').addClass('nighttime'); | ||
$('#pt-nightpedia a').text(' | $('#pt-nightpedia a').text('Light Mode'); | ||
mw.storage.set('nightpedia', 'on'); | mw.storage.set('nightpedia', 'on'); | ||
return true; | return true; | ||