Skip to content

Commit

Permalink
New screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er committed Jan 30, 2025
1 parent 8b2f228 commit 0f026f7
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
?.*
*~
*.bak
*.exe
*.log
tmp/
.DS_Store
.idea
.vscode
Binary file added images/freelens-logo-with-border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/freelens-screenshot-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/freelens-screenshot-macos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/freelens-screenshot-windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 25 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<script async defer src="https://buttons.github.io/buttons.js"></script>
<!-- Website verification abe7a4da-07a6-4a85-ad59-0c135521ee62 -->
</head>

<body>
<header>
<img src="images/freelens-logo.png" alt="Freelens Logo" class="logo" />
Expand Down Expand Up @@ -49,8 +50,9 @@ <h2>Free Open Source Kubernetes IDE</h2>
</section>
<section class="screenshot">
<img
src="images/freelens-screenshot.png"
src="images/freelens-screenshot-macos.png"
alt="Freelens Application Screenshot"
id="screenshot"
/>
</section>
<section class="download-section">
Expand Down Expand Up @@ -159,9 +161,27 @@ <h2>Free Open Source Kubernetes IDE</h2>
<p>&copy; 2024-2025 Freelens Authors</p>
</footer>
<script>
document
.getElementById("screenshot")
.addEventListener("click", function () {
console.log(this.src);
if (this.src.includes("macos")) {
document.getElementById("screenshot").src =
"images/freelens-screenshot-windows.png";
} else if (this.src.includes("windows")) {
document.getElementById("screenshot").src =
"images/freelens-screenshot-linux.png";
} else if (this.src.includes("linux")) {
document.getElementById("screenshot").src =
"images/freelens-screenshot-macos.png";
}
});

document
.getElementById("macos-download-button")
.addEventListener("click", function () {
document.getElementById("screenshot").src =
"images/freelens-screenshot-macos.png";
var links = document.getElementById("macos-download-links");
if (links.style.display === "none" || links.style.display === "") {
links.style.display = "block";
Expand All @@ -188,6 +208,8 @@ <h2>Free Open Source Kubernetes IDE</h2>
document
.getElementById("windows-download-button")
.addEventListener("click", function () {
document.getElementById("screenshot").src =
"images/freelens-screenshot-windows.png";
var links = document.getElementById("windows-download-links");
if (links.style.display === "none" || links.style.display === "") {
links.style.display = "block";
Expand All @@ -214,6 +236,8 @@ <h2>Free Open Source Kubernetes IDE</h2>
document
.getElementById("linux-download-button")
.addEventListener("click", function () {
document.getElementById("screenshot").src =
"images/freelens-screenshot-linux.png";
var links = document.getElementById("linux-download-links");
if (links.style.display === "none" || links.style.display === "") {
links.style.display = "block";
Expand Down

0 comments on commit 0f026f7

Please sign in to comment.