} catch {}
});
+ dim.addEventListener("click", (e) => {
+ dim.style.opacity = 0;
+ dim.style.pointerEvents = "none";
+ close.style.pointerEvents = "none";
+ try {
+ let copy = document.getElementById("enlargeCopy");
+ copy.style.opacity = 0;
+ setTimeout(function () { copy.remove() }, 500);
+ } catch {}
+ });
+
// sets up the image enlarge
const images = document.getElementsByTagName("img");
for (image of images) {
copy.style.left = `${rect.left}px`;
copy.style.width = `${rect.width}px`;
copy.style.height = `${rect.height}px`;
+ copy.style.pointerEvents = "none";
copy.style.opacity = 1;
copy.style.transition = `
}
#dim span:hover { color: lightgray; }
+/* mobile view */
+@media screen and (orientation: portrait) {
+ main, footer {
+ width: 90%;
+ margin: auto;
+ }
+ .mediaside > * {
+ display: block !important;
+ width: 100% !important;
+ margin: 50px 0 50px 0 !important;
+ padding: 0 !important;
+ }
+ main p.left {
+ width: 100% !important;
+ }
+ main p.right {
+ width: 100% !important;
+ }
+ :root { font-size: 1.8em; }
+ p { text-align: left !important; }
+}
+