mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Updated: Help page
This commit is contained in:
33
pages/help/help.js
Normal file
33
pages/help/help.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Help
|
||||
*/
|
||||
|
||||
var help = {};
|
||||
|
||||
help._onDocumentLoaded = function () {
|
||||
|
||||
let language = navigator.language;
|
||||
|
||||
help._languageSupported = helpers.languageIsFullySupported(language);
|
||||
help._scriptDirection = helpers.determineScriptDirection(language);
|
||||
|
||||
helpers.insertI18nContentIntoDocument(document);
|
||||
};
|
||||
|
||||
document.addEventListener('DOMContentLoaded', help._onDocumentLoaded);
|
Reference in New Issue
Block a user