Commit 412a9827 authored by sbiego's avatar sbiego

inverted flags, bug fix

parent b433e804
...@@ -6,12 +6,12 @@ function toggleLang() { ...@@ -6,12 +6,12 @@ function toggleLang() {
for (var i = 0; i < elementsIT.length; i++) { for (var i = 0; i < elementsIT.length; i++) {
if (stateIT == "none") { if (stateIT == "none") {
elementsLN[i].className = "lang_select it"; elementsLN[i].className = "lang_select en";
elementsIT[i].style.display = "block"; elementsIT[i].style.display = "block";
elementsEN[i].style.display = "none"; elementsEN[i].style.display = "none";
} }
else { else {
elementsLN[i].className = "lang_select en"; elementsLN[i].className = "lang_select it";
elementsIT[i].style.display = "none"; elementsIT[i].style.display = "none";
elementsEN[i].style.display = "block "; elementsEN[i].style.display = "block ";
} }
......
function toggleLang(){var c=document.getElementsByClassName("desc_it");var a=document.getElementsByClassName("desc_en");var d=document.getElementsByClassName("lang_select");stateIT=c[0].style.display;for(var b=0;b<c.length;b++){if(stateIT=="none"){d[b].className="lang_select it";c[b].style.display="block";a[b].style.display="none"}else{d[b].className="lang_select en";c[b].style.display="none";a[b].style.display="block "}}}; function toggleLang(){var c=document.getElementsByClassName("desc_it");var a=document.getElementsByClassName("desc_en");var d=document.getElementsByClassName("lang_select");stateIT=c[0].style.display;for(var b=0;b<c.length;b++){if(stateIT=="none"){d[b].className="lang_select en";c[b].style.display="block";a[b].style.display="none"}else{d[b].className="lang_select it";c[b].style.display="none";a[b].style.display="block "}}};
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment