Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions web/assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ a {
background-color: #ffffff1f;
}

.fav-logo {
max-width: 100%;
max-height: 100%;
height: auto;
}

.share-url__container {
display: none;
height: 40px;
Expand Down
Binary file added web/assets/img/fav.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions web/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,13 @@ toggleBtn.addEventListener("click", function () {

function toggleMode(theme) {
let toggleIcon = document.getElementsByClassName("toggle-theme__icon")[0];
let exprLogo = document.getElementsByClassName("expr-logo")[0];
let copyIcon = document.querySelectorAll(".editor-copy-icon");

if (theme === "dark") {
document.body.classList.add("dark");
toggleIcon.src = "./assets/img/moon.svg";
exprEditor.editor.setTheme("ace/theme/tomorrow_night");
dataEditor.editor.setTheme("ace/theme/tomorrow_night");
exprLogo.src = "./assets/img/logo-dark.svg";
copyIcon[0].src = "./assets/img/copy-dark.svg";
copyIcon[1].src = "./assets/img/copy-dark.svg";
localStorage.setItem("theme", "dark");
Expand All @@ -87,7 +85,6 @@ function toggleMode(theme) {
toggleIcon.src = "./assets/img/sun.svg";
exprEditor.editor.setTheme("ace/theme/clouds");
dataEditor.editor.setTheme("ace/theme/clouds");
exprLogo.src = "./assets/img/logo.svg";
copyIcon[0].src = "./assets/img/copy.svg";
copyIcon[1].src = "./assets/img/copy.svg";
localStorage.setItem("theme", "light");
Expand Down
3 changes: 2 additions & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
<body>
<nav class="navbar">
<div href="/" class="logo">
<img class="expr-logo" src="assets/img/logo.svg" alt="Logo" />
<img class="fav-logo" src="assets/img/fav.png" alt="Logo" />
<span>Expr Playground</span>
<div class="divider"></div>
<span>Quickly test Expr</span>
</div>
Expand Down