Browse Source

Make 3d printer status images clickable

Thomas Buck 4 years ago
parent
commit
5b3c04b8da
1 changed files with 16 additions and 4 deletions
  1. 16
    4
      input/unlisted/printer.md

+ 16
- 4
input/unlisted/printer.md View File

@@ -29,7 +29,9 @@ This page contains photos from the Webcams on my 3D printers, live-updated every
29 29
 
30 30
 <div id="date-1">
31 31
     <noscript>
32
-        <img src="//www.xythobuz.de/printer.jpg" alt="Fabrikator Mini V1.5">
32
+        <a href="//www.xythobuz.de/printer.jpg">
33
+            <img src="//www.xythobuz.de/printer.jpg" alt="Fabrikator Mini V1.5">
34
+        </a>
33 35
     </noscript>
34 36
 </div>
35 37
 
@@ -39,11 +41,15 @@ This page contains photos from the Webcams on my 3D printers, live-updated every
39 41
         img.src = window.URL.createObjectURL(i);
40 42
         img.alt = "Fabrikator Mini V1.5";
41 43
 
44
+        var link = document.createElement("a");
45
+        link.href = "//www.xythobuz.de/printer.jpg";
46
+        link.appendChild(img);
47
+
42 48
         var up = document.createElement("p");
43 49
         up.appendChild(document.createTextNode("Upload Date: " + u));
44 50
 
45 51
         var dt = document.getElementById("date-1");
46
-        dt.appendChild(img);
52
+        dt.appendChild(link);
47 53
         dt.appendChild(up);
48 54
     });
49 55
 </script>
@@ -54,7 +60,9 @@ This page contains photos from the Webcams on my 3D printers, live-updated every
54 60
 
55 61
 <div id="date-2">
56 62
     <noscript>
57
-        <img src="//www.xythobuz.de/printer-2.jpg" alt="CTC i3 Pro B">
63
+        <a href="//www.xythobuz.de/printer-2.jpg">
64
+            <img src="//www.xythobuz.de/printer-2.jpg" alt="CTC i3 Pro B">
65
+        </a>
58 66
     </noscript>
59 67
 </div>
60 68
 
@@ -64,11 +72,15 @@ This page contains photos from the Webcams on my 3D printers, live-updated every
64 72
         img.src = window.URL.createObjectURL(i);
65 73
         img.alt = "CTC i3 Pro B";
66 74
 
75
+        var link = document.createElement("a");
76
+        link.href = "//www.xythobuz.de/printer-2.jpg";
77
+        link.appendChild(img);
78
+
67 79
         var up = document.createElement("p");
68 80
         up.appendChild(document.createTextNode("Upload Date: " + u));
69 81
 
70 82
         var dt = document.getElementById("date-2");
71
-        dt.appendChild(img);
83
+        dt.appendChild(link);
72 84
         dt.appendChild(up);
73 85
     });
74 86
 </script>

Loading…
Cancel
Save