script.js 641 B

12345678910111213141516171819
  1. function viewDivBlack(){
  2. document.getElementById("div1").style.display = "flex";
  3. document.getElementById("div2").style.display = "none";
  4. document.getElementById("div3").style.display = "none";
  5. };
  6. function viewDivWhite(){
  7. document.getElementById("div1").style.display = "none";
  8. document.getElementById("div2").style.display = "flex";
  9. document.getElementById("div3").style.display = "none";
  10. };
  11. function viewDivCobalt(){
  12. document.getElementById("div1").style.display = "none";
  13. document.getElementById("div2").style.display = "none";
  14. document.getElementById("div3").style.display = "flex";
  15. };