5,953
edits
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
function TLPExpandEn(x) { | function TLPExpandEn(x) { | ||
var | var content = document.getElementById('tlp-children-'+x); //outputs something like document.getElementById("tlp-children-1.21") | ||
var button = document.getElementById('tlp-button-text-'+x); //outputs something like document.getElementById("tlp-button-text-1.21") | |||
var | if (content.style.display == "block") { | ||
content.style.display = "none"; | |||
if ( | button.innerHTML = "Expand"; | ||
} else { | } else { | ||
content.style.display = "block"; | |||
button.innerHTML = "Collapse"; | |||
} | } | ||
} | } | ||
function TLPExpandFr(x) { | function TLPExpandFr(x) { | ||
var | var content = document.getElementById('tlp-children-'+x); //outputs something like document.getElementById("tlp-children-1.21") | ||
var button = document.getElementById('tlp-button-text-'+x); //outputs something like document.getElementById("tlp-button-text-1.21") | |||
var | if (content.style.display == "block") { | ||
content.style.display = "none"; | |||
if ( | button.innerHTML = "Afficher"; | ||
} else { | } else { | ||
content.style.display = "block"; | |||
button.innerHTML = "Masquer"; | |||
} | } | ||
} | } | ||
Line 44: | Line 40: | ||
function TLPExpandIt(x) { | function TLPExpandIt(x) { | ||
var | var content = document.getElementById('tlp-children-'+x); //outputs something like document.getElementById("tlp-children-1.21") | ||
var button = document.getElementById('tlp-button-text-'+x); //outputs something like document.getElementById("tlp-button-text-1.21") | |||
var | if (content.style.display == "block") { | ||
content.style.display = "none"; | |||
if ( | button.innerHTML = "Espandi"; | ||
} else { | } else { | ||
content.style.display = "block"; | |||
button.innerHTML = "Comprimi"; | |||
} | } | ||
} | } | ||
function TLPExpandEs(x) { | function TLPExpandEs(x) { | ||
var | var content = document.getElementById('tlp-children-'+x); //outputs something like document.getElementById("tlp-children-1.21") | ||
var button = document.getElementById('tlp-button-text-'+x); //outputs something like document.getElementById("tlp-button-text-1.21") | |||
var | if (content.style.display == "block") { | ||
content.style.display = "none"; | |||
if ( | button.innerHTML = "Mostrar"; | ||
} else { | } else { | ||
content.style.display = "block"; | |||
button.innerHTML = "Ocultar"; | |||
} | } | ||
} | } | ||
Line 74: | Line 66: | ||
var content = document.getElementById("drawer-content-"+x); | var content = document.getElementById("drawer-content-"+x); | ||
var button = document.getElementById("drawer-button-"+x); | var button = document.getElementById("drawer-button-"+x); | ||
if (content.style.display | if (content.style.display == "block") { | ||
content.style.display = "none"; | content.style.display = "none"; | ||
button.innerHTML = "Expand"; | button.innerHTML = "Expand"; |