This repository has been archived on 2023-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
sat-sw-website-legacy/index.js

26 lines
819 B
JavaScript
Raw Normal View History

2023-09-06 19:02:58 +02:00
const fsfw_click = document.getElementById("fsfw-click");
const sat_click = document.getElementById("sat-click");
const sat_content = document.getElementById("sat-rs-content");
const fsfw_content = document.getElementById("fsfw-content");
fsfw_click.addEventListener("click", () => {
2023-09-08 12:19:44 +02:00
fsfw_content.style.display = "flex";
sat_content.style.display = "none";
2023-09-11 21:28:07 +02:00
2023-09-11 22:42:35 +02:00
fsfw_click.style.backgroundColor = "#555";
fsfw_click.style.color = "white";
2023-09-11 21:28:07 +02:00
2023-09-11 22:42:35 +02:00
sat_click.style.backgroundColor = "#f1f1f1";
sat_click.style.color = "#000";
2023-09-06 19:02:58 +02:00
});
sat_click.addEventListener("click", () => {
2023-09-08 12:19:44 +02:00
fsfw_content.style.display = "none";
sat_content.style.display = "flex";
2023-09-11 21:28:07 +02:00
2023-09-11 22:42:35 +02:00
fsfw_click.style.backgroundColor = "#f1f1f1";
fsfw_click.style.color = "#000";
sat_click.style.backgroundColor = "#555";
sat_click.style.color = "white";
2023-09-06 19:02:58 +02:00
});