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
 
29
 
30
 <div id="date-1">
30
 <div id="date-1">
31
     <noscript>
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
     </noscript>
35
     </noscript>
34
 </div>
36
 </div>
35
 
37
 
39
         img.src = window.URL.createObjectURL(i);
41
         img.src = window.URL.createObjectURL(i);
40
         img.alt = "Fabrikator Mini V1.5";
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
         var up = document.createElement("p");
48
         var up = document.createElement("p");
43
         up.appendChild(document.createTextNode("Upload Date: " + u));
49
         up.appendChild(document.createTextNode("Upload Date: " + u));
44
 
50
 
45
         var dt = document.getElementById("date-1");
51
         var dt = document.getElementById("date-1");
46
-        dt.appendChild(img);
52
+        dt.appendChild(link);
47
         dt.appendChild(up);
53
         dt.appendChild(up);
48
     });
54
     });
49
 </script>
55
 </script>
54
 
60
 
55
 <div id="date-2">
61
 <div id="date-2">
56
     <noscript>
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
     </noscript>
66
     </noscript>
59
 </div>
67
 </div>
60
 
68
 
64
         img.src = window.URL.createObjectURL(i);
72
         img.src = window.URL.createObjectURL(i);
65
         img.alt = "CTC i3 Pro B";
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
         var up = document.createElement("p");
79
         var up = document.createElement("p");
68
         up.appendChild(document.createTextNode("Upload Date: " + u));
80
         up.appendChild(document.createTextNode("Upload Date: " + u));
69
 
81
 
70
         var dt = document.getElementById("date-2");
82
         var dt = document.getElementById("date-2");
71
-        dt.appendChild(img);
83
+        dt.appendChild(link);
72
         dt.appendChild(up);
84
         dt.appendChild(up);
73
     });
85
     });
74
 </script>
86
 </script>

Loading…
Cancel
Save