mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-28 17:18:46 +00:00
Improve translations and add experimental warning
This commit is contained in:
@@ -9,7 +9,7 @@ changeTheme(localStorage.getItem('theme'))
|
||||
function changeTheme(theme) {
|
||||
console.log(theme);
|
||||
if (theme === null) {
|
||||
theme = 'light';
|
||||
theme = 'dark';
|
||||
}
|
||||
$('body').attr('data-style', theme);
|
||||
localStorage.setItem('theme', theme);
|
||||
@@ -21,6 +21,9 @@ function updateView() {
|
||||
$('#structure').removeClass('d-none').html('');
|
||||
$('#descriptionSpan').attr('data-i18n', structure.description);
|
||||
$('title').attr('data-i18n', structure.title);
|
||||
if (structure.id === 'worldgen') {
|
||||
$('#structure').append('<div class="alert alert-danger" role="alert"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 000 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 00.01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"></path></svg><span data-i18n="worldgen.warning"></span></div>')
|
||||
}
|
||||
$('#structure').append($component);
|
||||
if (structure.id === 'worldgen') {
|
||||
$('#versionLabel').addClass('d-none')
|
||||
|
||||
Reference in New Issue
Block a user