mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
chore: update cv
This commit is contained in:
Vendored
+1
@@ -0,0 +1 @@
|
||||
(()=>{function s(){const e=window.localStorage.getItem("theme"),n=typeof e=="string";if(n)return e;const t=window.matchMedia("(prefers-color-scheme: dark)"),s=typeof t.matches=="boolean";return s?t.matches?"dark":"light":"light"}function n(){t.style.setProperty("--theme",e),t.style.setProperty("--background",e==="light"?"var(--light-background)":"var(--dark-background)"),t.style.setProperty("--header-background",e==="light"?"var(--header-light-background)":"var(--header-dark-background)"),t.style.setProperty("--nav-background",e==="light"?"var(--nav-light-background)":"var(--nav-dark-background)"),t.style.setProperty("--first-action-background",e==="light"?"var(--first-action-light-background)":"var(--first-action-dark-background)"),t.style.setProperty("--second-action-background",e==="light"?"var(--second-action-light-background)":"var(--second-action-dark-background)"),t.style.setProperty("--input-background",e==="light"?"var(--input-light-background)":"var(--input-dark-background)"),t.style.setProperty("--button-background",e==="light"?"var(--button-light-background)":"var(--button-dark-background)"),t.style.setProperty("--card-background",e==="light"?"var(--card-light-background)":"var(--card-dark-background)"),t.style.setProperty("--toc-background",e==="light"?"var(--toc-light-background)":"var(--toc-dark-background)"),t.style.setProperty("--about-card-background",e==="light"?"var(--about-card-light-background)":"var(--about-card-dark-background)"),t.style.setProperty("--footer-background",e==="light"?"var(--footer-light-background)":"var(--footer-dark-background)"),t.style.setProperty("--header-shadow",e==="light"?"var(--shadow)":"none"),t.style.setProperty("--text",e==="light"?"var(--black)":"var(--white)"),t.style.setProperty("--color",e==="light"?"var(--black)":"var(--white)"),document.querySelector(e==="light"?"header .moon":"header .sun").style.display="none",document.querySelector(e==="light"?"nav .moon":"nav .sun").style.display="none",document.querySelector(e==="light"?"header .sun":"header .moon").style.display="block",document.querySelector(e==="light"?"nav .sun":"nav .moon").style.display="block"}function o(){e=e==="light"?"dark":"light",window.localStorage.setItem("theme",e),n()}var t=document.documentElement,i=document.querySelectorAll(".theme-toggler"),e=s();document.addEventListener("DOMContentLoaded",n),i.forEach(e=>e.addEventListener("click",o))})()
|
||||
Reference in New Issue
Block a user