0.0.316 add new language flags
This commit is contained in:
@@ -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%'
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user