Initial commit
Build and Push Docker Images / build (push) Successful in 29s

This commit is contained in:
2026-05-02 21:31:31 +03:00
commit fc2dd721e4
78 changed files with 5002 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
(function(){
function browserLang(){
var lang = (navigator.language || navigator.userLanguage || 'en').toLowerCase();
return lang.indexOf('ro') === 0 ? 'ro' : 'en';
}
function targetPage(current, lang){
if(current.indexOf('-ro.html') !== -1) return current.replace('-ro.html', '-' + lang + '.html');
if(current.indexOf('-en.html') !== -1) return current.replace('-en.html', '-' + lang + '.html');
return current;
}
var links = document.querySelectorAll('.lang-link');
for(var i=0;i<links.length;i++){
links[i].addEventListener('click', function(e){
e.preventDefault();
localStorage.setItem('legalLang', this.getAttribute('data-lang'));
window.location.href = targetPage(window.location.pathname, this.getAttribute('data-lang'));
});
}
if(!localStorage.getItem('legalLang')){
localStorage.setItem('legalLang', browserLang());
}
})();