2020-08-11 16:40:22 +02:00
|
|
|
/**
|
|
|
|
* Help Page
|
|
|
|
* Belongs to LocalCDN (since 2020-02-26)
|
|
|
|
*
|
|
|
|
* @author nobody
|
|
|
|
* @since 2020-05-04
|
|
|
|
*
|
|
|
|
* @license MPL 2.0
|
|
|
|
*
|
|
|
|
* 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/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2021-02-17 07:01:08 +01:00
|
|
|
|
2020-08-11 16:40:22 +02:00
|
|
|
/**
|
|
|
|
* Help
|
|
|
|
*/
|
|
|
|
|
2024-04-28 08:10:21 +02:00
|
|
|
let help = {};
|
2020-08-11 16:40:22 +02:00
|
|
|
|
2021-02-17 07:01:08 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Private Methods
|
|
|
|
*/
|
|
|
|
|
2020-08-11 16:40:22 +02:00
|
|
|
help._onDocumentLoaded = function () {
|
|
|
|
let language = navigator.language;
|
|
|
|
|
|
|
|
help._languageSupported = helpers.languageIsFullySupported(language);
|
|
|
|
help._scriptDirection = helpers.determineScriptDirection(language);
|
|
|
|
|
2021-04-25 07:06:18 +02:00
|
|
|
if (!helpers.insertI18nContentIntoDocument(document)) {
|
|
|
|
document.getElementById('notice-locale').style.display = 'block';
|
|
|
|
}
|
2020-08-11 16:40:22 +02:00
|
|
|
};
|
|
|
|
|
2021-02-17 07:01:08 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Initializations
|
|
|
|
*/
|
|
|
|
|
2020-08-11 16:40:22 +02:00
|
|
|
document.addEventListener('DOMContentLoaded', help._onDocumentLoaded);
|