code lint & clean up

This commit is contained in:
Yueyu 2021-12-09 19:07:30 +08:00
parent ea83529bca
commit 5b15c51217
5 changed files with 7 additions and 11 deletions

View file

@ -369,7 +369,7 @@ div.localizationselect.selected:after {
#footer ul.footer-nav .tab,.tab2 {
position: absolute;
width: 20vw;
width: ${css_vw(20)};
height: ${css_vh(10.15)};
}

View file

@ -103,8 +103,5 @@
<div class="highlight" data-i18n="PRIVACY_CONTACT_HIGHLIGHT"></div>
<div class="description" data-i18n="PRIVACY_CONTACT_DESCRIPTION"></div>
</div>
<div class="description"></div>
</body>
</html>

View file

@ -953,7 +953,7 @@ export default class UI {
var tf = newHTML('div', 'pagetext off', p);
tf.setAttribute('id', 'textbox');
// If the textbox background is clicked or touched, the input loses focus,
// which causes the text input to close unexpectedly
// which causes the text input to close unexpectedly
var eatEvent = function (e) {
e.stopPropagation();
e.preventDefault();

View file

@ -10,11 +10,11 @@ import {homeMain} from './home';
import {editorMain} from './editor';
import {gettingStartedMain} from './gettingstarted';
import {
inappInterfaceGuide,
inappAbout,
inappBlocksGuide,
inappInterfaceGuide,
inappAbout,
inappBlocksGuide,
inappPaintEditorGuide,
inappPrivacyPolicy,
inappPrivacyPolicy
} from './inapp';
function loadSettings (settingsRoot, whenDone) {

View file

@ -205,7 +205,6 @@ export function inappPrivacyPolicy () {
const elements = document.querySelectorAll('[data-i18n]');
elements.forEach(function (item) {
const key = item.getAttribute('data-i18n');
console.log(key);
item.innerHTML = Localization.localize(key);
});
}
}