ChatGPT advice
This commit is contained in:
parent
7652f6623c
commit
caeae71203
2 changed files with 10 additions and 10 deletions
|
@ -1,13 +1,12 @@
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
<!DOCTYPE html>
|
||||||
<html>
|
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>fateforge-tools</title>
|
<title>fateforge-tools</title>
|
||||||
<link rel="stylesheet" href="css/water.css" />
|
<link rel="stylesheet" href="css/water.css" />
|
||||||
<link href="css/all.min.css" rel="stylesheet" />
|
<link href="css/all.min.css" rel="stylesheet" />
|
||||||
<link rel="icon" type="image/x-icon" href="/img/FateforgeTool_logo_80.png">
|
<link rel="icon" type="image/png" href="/img/FateforgeTool_logo_80.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -66,7 +65,7 @@
|
||||||
<script type="text/javascript" src="lib/jquery.localize.js"></script>
|
<script type="text/javascript" src="lib/jquery.localize.js"></script>
|
||||||
<script type="text/javascript" src="js/language.js"></script>
|
<script type="text/javascript" src="js/language.js"></script>
|
||||||
|
|
||||||
<script src="https://kit.fontawesome.com/126cdd0e29.js" crossorigin="anonymous"></script>
|
<script rel="preload src="https://kit.fontawesome.com/126cdd0e29.js" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
// This code selects all elements in the HTML document with the "data-localize" attribute // and applies the jQuery "localize" function to them with the "main" localization file and a path prefix of "lang"
|
// this code localizes all elements with a "data-localize" attribute
|
||||||
$("[data-localize]").localize("main", { pathPrefix: "lang" });
|
$("[data-localize]").localize("main", { pathPrefix: "lang" });
|
||||||
|
|
||||||
// This is a function that changes the language to French by calling the "localize" function with a language code of "fr"
|
// You can also override the language detection and specify a language code. This code defines a function that sets the language to French.
|
||||||
function changeLangFR() { $("[data-localize]").localize("main", { pathPrefix: "lang", language: "fr", });
|
function changeLangFR() { $("[data-localize]").localize("main", { pathPrefix: "lang", language: "fr", }); }
|
||||||
}
|
|
||||||
|
|
||||||
// This is a function that changes the language to English by calling the "localize" function with a language code of "en"
|
|
||||||
|
|
||||||
|
// This code defines a function that sets the language to English.
|
||||||
function changeLangEN() {
|
function changeLangEN() {
|
||||||
$("[data-localize]").localize("main", {
|
$("[data-localize]").localize("main", {
|
||||||
pathPrefix: "lang",
|
pathPrefix: "lang",
|
||||||
|
|
Loading…
Reference in a new issue