Files
Voice-Cloning-App/application/static/advanced.js
2021-04-23 11:44:20 +01:00

12 lines
351 B
JavaScript

// Advanced settings
var col = document.getElementById("advanced");
col.addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.maxHeight){
content.style.maxHeight = null;
} else {
content.style.maxHeight = content.scrollHeight + "px";
}
});