standard.js 678 B

12345678910111213141516171819
  1. function show_ASPO(){
  2. document.getElementById("mapping_ASPO").style.display = "block";
  3. document.getElementById("mapping_MPP").style.display = "none";
  4. }
  5. function show_MPP(){
  6. document.getElementById("mapping_ASPO").style.display = "none";
  7. document.getElementById("mapping_MPP").style.display = "block";
  8. }
  9. var header = document.getElementById("mapping_buttons");
  10. var btns = header.getElementsByClassName("btn");
  11. for (var i = 0; i < btns.length; i++) {
  12. btns[i].addEventListener("click", function() {
  13. var current = document.getElementsByClassName("active");
  14. current[0].className = current[0].className.replace(" active", "");
  15. this.className += " active";
  16. });
  17. }