Przeglądaj źródła

add am8 to webcam page

Thomas Buck 1 rok temu
rodzic
commit
413f0c13c6

+ 1
- 0
input/projects/3d-printing/octoprint.md Wyświetl plik

@@ -226,6 +226,7 @@ Now, create a new script somewhere:
226 226
 <pre class="sh_sh">
227 227
 mkdir ~/foto-script
228 228
 vim ~/foto-script/upload.sh
229
+chmod a+x ~/foto-script/upload.sh
229 230
 </pre>
230 231
 
231 232
 and fill it with the following contents:

+ 28
- 0
input/unlisted/printer.md Wyświetl plik

@@ -9,6 +9,18 @@ noheader: true
9 9
 
10 10
 This page contains photos from the Webcams on my 3D printers, live-updated every 5 minutes.
11 11
 
12
+## i3 AM8
13
+
14
+<div id="date-am8">
15
+    <noscript>
16
+        <a href="//www.xythobuz.de/printer-am8.jpg">
17
+            <img src="//www.xythobuz.de/printer-am8.jpg" alt="i3 AM8">
18
+        </a>
19
+    </noscript>
20
+</div>
21
+
22
+<hr>
23
+
12 24
 ## CTC i3 Pro B
13 25
 
14 26
 <div id="date-2">
@@ -46,6 +58,22 @@ This page contains photos from the Webcams on my 3D printers, live-updated every
46 58
             x.send();
47 59
         } catch(y) {}
48 60
     }
61
+    LastModUsingHeader("//www.xythobuz.de/printer-am8.jpg", function(i, u) {
62
+        var img = document.createElement("img");
63
+        img.src = window.URL.createObjectURL(i);
64
+        img.alt = "CTC i3 Pro B";
65
+
66
+        var link = document.createElement("a");
67
+        link.href = "//www.xythobuz.de/printer-am8.jpg";
68
+        link.appendChild(img);
69
+
70
+        var up = document.createElement("p");
71
+        up.appendChild(document.createTextNode("Upload Date: " + u));
72
+
73
+        var dt = document.getElementById("date-am8");
74
+        dt.appendChild(link);
75
+        dt.appendChild(up);
76
+    });
49 77
     LastModUsingHeader("//www.xythobuz.de/printer-2.jpg", function(i, u) {
50 78
         var img = document.createElement("img");
51 79
         img.src = window.URL.createObjectURL(i);

Ładowanie…
Anuluj
Zapisz