0.0.316 add new language flags

This commit is contained in:
2023-12-05 16:58:32 +03:00
parent c25942a6ca
commit 87e90d7152
5 changed files with 42 additions and 12 deletions

View File

@@ -49,14 +49,16 @@ function getInfoAboutUser (){
document.addEventListener('DOMContentLoaded', function() {
let img = document.getElementById('dropbtn_lang')
if (window.location.href.indexOf("ru") > -1){
img.style.background = "url('/static/img/png/ru.png')"
img.style.background = "url('/static/img/svg/ru.svg')"
img.style.backgroundRepeat = "no-repeat"
img.style.backgroundPosition = "left center"
img.style.backgroundPosition = "center"
// img.style.backgroundSize = '50%'
}else if(window.location.href.indexOf("en") > -1){
img.style.background = "url('/static/img/png/en.png')"
img.style.background = "url('/static/img/svg/gb.svg')"
img.style.backgroundRepeat = "no-repeat"
img.style.backgroundPosition = "left center"
img.style.backgroundPosition = "center"
// img.style.backgroundSize = '50%'
}
});