Improved contact form and responsive aspect

This commit is contained in:
N0Xx committed 2026-10-22 23:30:54 +02:00
1 parent 98d513acb7
commit 3b50843125
16 files changed
+192 -295

No files matched your search

+6 -27
View File
@@ -5,9 +5,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="robots" content="noindex">
<title>Legal notice – Nelson Thomas</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🛰️</text></svg>">
<link rel="stylesheet" href="css/fonts.css">
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<title>Legal notice – Nelson Thomas</title>
<link rel="stylesheet" href="css/fonts.css?v=20261022">
<link rel="stylesheet" href="css/style.css?v=20261022">
<script src="js/theme.js?v=20261022"></script>
</head>
<body>
<main class="legal">
@@ -101,29 +103,6 @@
</article>
</main>
<footer><p>© 2026 Nelson Thomas. Toulouse, France.</p></footer>
<script>
(function(){
try{var t=localStorage.getItem('theme'); if(t)document.documentElement.dataset.theme=t}catch(e){}
// Land at the top, even when the page is shown inside a frame (scrollIntoView also scrolls the parent page)
if('scrollRestoration' in history)history.scrollRestoration='manual';
function toTop(){window.scrollTo(0,0);var m=document.body;if(m&&m.scrollIntoView)m.scrollIntoView({block:'start',behavior:'instant'})}
window.addEventListener('load',function(){if(!/^#(en|fr)-/.test(location.hash))toTop()});
var arts={en:document.getElementById('en'),fr:document.getElementById('fr')};
var links=[].slice.call(document.querySelectorAll('.lang-switch a'));
function show(lang,top){
Object.keys(arts).forEach(function(k){arts[k].hidden=k!==lang});
links.forEach(function(a){a.setAttribute('aria-current',a.getAttribute('href')==='#'+lang)});
document.documentElement.lang=lang;
document.title=lang==='fr'?'Mentions légales – Nelson Thomas':'Legal notice – Nelson Thomas';
if(top)toTop();
}
links.forEach(function(a){a.addEventListener('click',function(e){
e.preventDefault(); var l=a.getAttribute('href').slice(1);
history.replaceState(null,'','#'+l); show(l,true);
})});
var h=location.hash.slice(1,3);
show(h==='fr'||h==='en'?h:(/^fr\b/i.test(navigator.language||'')?'fr':'en'),!/^#(en|fr)-/.test(location.hash));
})();
</script>
<script src="js/legal.js?v=20261022" defer></script>
</body>
</html>