1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-20 01:03:06 +01:00

Merge branch 'wellenvogel:master' into master

This commit is contained in:
Norbert Walter
2025-01-18 19:12:24 +01:00
committed by GitHub
2 changed files with 24 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<script type="module" src="cibuild.js"></script> <script type="module" src="cibuild.js"></script>

View File

@@ -867,5 +867,27 @@ class PipelineInfo{
buildSelectors(ROOT_PATH,structure.config.children,true); buildSelectors(ROOT_PATH,structure.config.children,true);
if (! isRunning()) findPipeline(); if (! isRunning()) findPipeline();
updateStatus(); updateStatus();
const translationCheck=()=>{
const lang = document.documentElement.lang;
if (lang != "en"){
alert(
"This page will not work correctly with translation enabled"
);
}
}
// Works at least for Chrome, Firefox, Safari and probably more. Not Microsoft
// Edge though. They're special.
// Yell at clouds if a translator doesn't change it
const observer = new MutationObserver(() => {
translationCheck();
});
observer.observe(document.documentElement, {
attributes: true,
attributeFilter: ['lang'],
childList: false,
characterData: false,
});
translationCheck();
} }
})(); })();