-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
26 lines (24 loc) · 1.49 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
* Search in Sidebar - More useful searching extension than Built-in features.
* Copyright (c) 2018 Soushi Atsumi. All rights reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This Source Code Form is "Incompatible With Secondary Licenses", as
* defined by the Mozilla Public License, v. 2.0.
*/
'use strict';
document.getElementsByTagName('html')[0].lang = browser.i18n.getUILanguage();
document.title = browser.i18n.getMessage('indexHTMLTitle');
document.getElementById('tutorialTitleLabel').innerText = browser.i18n.getMessage('tutorialTitle');
document.getElementById('icon').alt = browser.i18n.getMessage('iconImageAlt');
document.getElementById('heading1').innerText = browser.i18n.getMessage('indexHTMLHeading1');
document.getElementById('heading2').innerText = browser.i18n.getMessage('indexHTMLHeading2');
document.getElementById('heading3').innerText = browser.i18n.getMessage('indexHTMLHeading3');
document.getElementById('heading4').innerText = browser.i18n.getMessage('indexHTMLHeading4');
const tutorialVideoAnchor = document.getElementById('tutorialVideoAnchor');
tutorialVideoAnchor.innerText = browser.i18n.getMessage('watchTheVideo');
tutorialVideoAnchor.href = browser.i18n.getMessage('indexHTMLTutorialVideo');
document.getElementById('informationDivision').innerText = browser.i18n.getMessage('indexHTMLInformation');