main.parentNode.appendChild(dim);
close.addEventListener("click", (e) => {
- dim.style.opacity = 0;
+ dim.style.backgroundColor = "rgba(51,51,51,0)";
+ dim.style.backdropFilter = "blur(0px)";
+ dim.style.pointerEvents = "none";
+ close.style.pointerEvents = "none";
+ try {
+ let copy = document.getElementById("enlargeCopy");
+ copy.style.opacity = 0;
+ setTimeout(function () { copy.remove() }, 500);
+ } catch {}
+ });
+
+ dim.addEventListener("click", (e) => {
+ dim.style.backgroundColor = "rgba(51,51,51,0)";
+ dim.style.backdropFilter = "blur(0px)";
dim.style.pointerEvents = "none";
close.style.pointerEvents = "none";
try {
for (image of images) {
image.addEventListener("click", (e) => {
// dim the lights
- dim.style.opacity = 0.7;
+ dim.style.backgroundColor = "rgba(51,51,51,0.7)";
+ dim.style.backdropFilter = "blur(2px)";
dim.style.pointerEvents = "auto";
close.style.pointerEvents = "auto";
<p>Requests implemented from emailed document:</p>
<ul>
<li>Changed Riders subheading</li>
+ <li>Added all specified pages</li>
+ <li>Removed phone no. from contact page</li>
</ul>
- <!--
<p>Additional changes:</p>
<ul>
<li>Removed "Overview" page from the nav menu, now accessed by clicking your name as is common with many sites. Page is now effectively the homepage</li>
<li>Actual defocus on the background elements when in focus mode</li>
-
- <li>Added education heading to CV, can remove if you want.</li>
+ <li>Added education and experiance headings to CV.. good/bad?</li>
</ul>
- !-->
</details>`;
main.parentNode.insertBefore(template.content.childNodes[0], main);
bottom: 0;
left: 0;
right: 0;
- background-color: var(--darkgray);
- opacity: 0;
- transition: opacity 0.5s;
+ background-color: rgba(51,51,51,0);
+ backdrop-filter: blur(0px);
+ transition: background-color 0.5s, backdrop-filter 0.5s;
}
#dim span {
position: absolute;
opacity: inherit;
}
#dim span:hover { color: lightgray; }
+#enlargeCopy {
+ pointer-events: none;
+}
/* caption styling */
.caption {