mirror of
https://github.com/wah-su/wah-su.github.io.git
synced 2025-05-05 04:19:40 +05:00
feat: page dark mode
This commit is contained in:
parent
40a31ce007
commit
a9c029164f
4 changed files with 72 additions and 12 deletions
|
@ -32,7 +32,7 @@ const cards = [
|
|||
const services = document.getElementById("services");
|
||||
|
||||
function renderCards() {
|
||||
const theme = document.getElementById("body").classList[0];
|
||||
const theme = localStorage.getItem("theme");
|
||||
services.innerHTML = "";
|
||||
for (let index = 0; index < cards.length; index++) {
|
||||
const image_name = cards[index].image.split(".")[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue