Files
ms1inscription-v5/v3/docs/index.html
2026-05-13 09:43:32 -04:00

131 lines
3.0 KiB
HTML

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MS-1 Documentation</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
<style>
.lang-switch {
position: fixed;
top: 12px;
right: 20px;
z-index: 9999;
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 6px 10px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
font-family: Arial, sans-serif;
font-size: 14px;
}
.lang-switch a {
text-decoration: none;
color: #333;
margin: 0 4px;
font-weight: 600;
cursor: pointer;
}
.lang-switch a.active {
color: #42b983;
}
.lang-fr,
.lang-en {
display: none;
}
body.show-fr .lang-fr {
display: inline;
}
body.show-en .lang-en {
display: inline;
}
body.show-fr div.lang-fr,
body.show-fr p.lang-fr,
body.show-fr h1.lang-fr,
body.show-fr h2.lang-fr,
body.show-fr h3.lang-fr,
body.show-fr ul.lang-fr,
body.show-fr li.lang-fr,
body.show-fr pre.lang-fr,
body.show-fr code.lang-fr {
display: block;
}
body.show-en div.lang-en,
body.show-en p.lang-en,
body.show-en h1.lang-en,
body.show-en h2.lang-en,
body.show-en h3.lang-en,
body.show-en ul.lang-en,
body.show-en li.lang-en,
body.show-en pre.lang-en,
body.show-en code.lang-en {
display: block;
}
.sidebar {
padding-top: 20px;
}
.content {
padding-top: 20px;
}
</style>
<script>
(function () {
var lang = localStorage.getItem('docs_lang') || 'fr';
document.addEventListener('DOMContentLoaded', function () {
document.body.classList.add(lang === 'en' ? 'show-en' : 'show-fr');
});
window.setDocsLang = function(lang) {
localStorage.setItem('docs_lang', lang);
document.body.classList.remove('show-fr', 'show-en');
document.body.classList.add(lang === 'en' ? 'show-en' : 'show-fr');
var frBtn = document.getElementById('btn-fr');
var enBtn = document.getElementById('btn-en');
if (frBtn && enBtn) {
frBtn.classList.toggle('active', lang === 'fr');
enBtn.classList.toggle('active', lang === 'en');
}
};
window.$docsify = {
name: 'MS1 Documentation',
homepage: 'README.md',
loadSidebar: '_sidebar.md',
auto2top: true,
subMaxLevel: 2
};
})();
</script>
</head>
<body>
<div class="lang-switch">
<a id="btn-fr" href="javascript:void(0)" onclick="setDocsLang('fr')">FR</a> |
<a id="btn-en" href="javascript:void(0)" onclick="setDocsLang('en')">EN</a>
</div>
<div id="app"></div>
<script src="https://cdn.jsdelivr.net/npm/docsify@4"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
var lang = localStorage.getItem('docs_lang') || 'fr';
setDocsLang(lang);
});
</script>
</body>
</html>