Commit | Line | Data |
---|---|---|
5c8f383f | 1 | <!DOCTYPE html> |
3432350e TM |
2 | <html> |
3 | <head> | |
e83b3e7b | 4 | <title>⚡ Distribution Board Label Generator for DIN Rail Modules</title> |
3432350e | 5 | <style> |
5b5e7001 TM |
6 | /* DIN Rail Modules are 17.5mm wide, but mounted with 18mm pitch to accomodate differences */ |
7 | ||
6a37a200 | 8 | /* fonts */ |
c2eb7b9f TM |
9 | table,h1 { font-family: sans-serif; font-weight: normal; font-size: 3.8mm; line-height: 5.2mm; } |
10 | small { font-size: 2.5mm; line-height: 2.5mm; } | |
11 | small small { font-size: 2mm; line-height: 1.9mm; } | |
48fc3365 | 12 | a { color: dark-grey; text-decoration: none; } |
6a37a200 TM |
13 | |
14 | /* table */ | |
15 | table { border-spacing:0px; border-collapse: collapse; } | |
16 | tr { margin-bottom: 10mm; } | |
c2eb7b9f | 17 | td * { display: block; } |
3432350e | 18 | td { |
5b5e7001 | 19 | border: 1px solid black; width: 18mm; height: 16mm; |
3432350e | 20 | text-align: center; padding: 0; overflow: hidden; |
6a37a200 | 21 | display: flex-wrap; float: left; margin-bottom: 5mm; box-sizing: border-box; |
9dce371e | 22 | justify-content: center; /* align-items: center; */ |
09fb3f72 | 23 | white-space: pre-line; |
6a37a200 | 24 | position: relative; |
3432350e TM |
25 | } |
26 | td:not(:last-child) { border-right: 0px solid red; } | |
6a37a200 TM |
27 | |
28 | /* wide modules */ | |
0d866561 TM |
29 | td[colspan="2" ] { width: calc(2 * 18mm); counter-increment: module_counter 2; } |
30 | td[colspan="3" ] { width: calc(3 * 18mm); counter-increment: module_counter 3; } | |
31 | td[colspan="4" ] { width: calc(4 * 18mm); counter-increment: module_counter 4; } | |
32 | td[colspan="5" ] { width: calc(5 * 18mm); counter-increment: module_counter 5; } | |
33 | td[colspan="6" ] { width: calc(6 * 18mm); counter-increment: module_counter 6; } | |
34 | td[colspan="7" ] { width: calc(7 * 18mm); counter-increment: module_counter 7; } | |
35 | td[colspan="8" ] { width: calc(8 * 18mm); counter-increment: module_counter 8; } | |
36 | td[colspan="9" ] { width: calc(9 * 18mm); counter-increment: module_counter 9; } | |
37 | td[colspan="10"] { width: calc(10 * 18mm); counter-increment: module_counter 10; } | |
38 | td[colspan="11"] { width: calc(11 * 18mm); counter-increment: module_counter 11; } | |
39 | td[colspan="12"] { width: calc(12 * 18mm); counter-increment: module_counter 12; } | |
40 | td[colspan="13"] { width: calc(13 * 18mm); counter-increment: module_counter 13; } | |
41 | td[colspan="14"] { width: calc(14 * 18mm); counter-increment: module_counter 14; } | |
42 | td[colspan="15"] { width: calc(15 * 18mm); counter-increment: module_counter 15; } | |
43 | td[colspan="16"] { width: calc(16 * 18mm); counter-increment: module_counter 16; } | |
6a37a200 TM |
44 | |
45 | /* indexing */ | |
46 | tr { counter-reset: module_counter; } | |
47 | td { counter-increment: module_counter 1; } | |
48 | table.indexed * td::after { | |
49 | content: counter(module_counter); | |
50 | font-size: 1.8mm; line-height: 1.9mm; | |
51 | top: 0px; | |
52 | right: 0px; | |
53 | position: absolute; | |
54 | ||
55 | padding: 0px 1px 2px 1px; | |
56 | } | |
57 | table.fancyindex * td::after { | |
58 | background-color: black; color: white; | |
59 | width: 1.2em; | |
60 | border-bottom-left-radius: 5px; | |
61 | } | |
62 | ||
63 | /* print layout */ | |
9299f5a2 | 64 | @media print { |
6a37a200 | 65 | * { print-color-adjust: exact; -webkit-print-color-adjust: exact; } |
91bfe157 | 66 | .noprint, .noprint * { display: none; } |
9299f5a2 TM |
67 | @page { size: landscape; } |
68 | } | |
6a37a200 | 69 | |
3432350e TM |
70 | </style> |
71 | </head> | |
72 | <body> | |
9b55af68 | 73 | <h1>Distribution Box Label Generator for DIN Rail Circuit Breaker Modules with 18mm pitch ( <a href="https://github.com/harvie">github.com/harvie</a> )</h1> |
91bfe157 | 74 | <div class="noprint">Copy-paste these icons:</div> |
120005c3 TM |
75 | <!-- Power --> 🔌 ⚡ 💡 🔋 🔥 💧 |
76 | <!-- Telco --> 📡 🌐 📺 📞 🔔 📱 🔊 ☎️ | |
76d4c8fe | 77 | <!-- Danger --> ⚠ ⚠️ 🚨 💀 ☠️ ☠ 🚫 |
120005c3 | 78 | <!-- Home --> 🍽️ 🍴 🛏️ 🛀 🚽 🏠 🚗 |
76d4c8fe | 79 | <br /> |
120005c3 TM |
80 | <!-- Work --> 🔧 🛠️ ⚙️ 🤖 🛗 🖥️ 🪛 |
81 | <!-- Elements --> 🌡️ 🕒 ⏰ 💨 ☀️ 🌒 🌙 🔆 🌞 ⏳ ⭐ ✨ 💫 ❄️ | |
82 | <!-- Security --> 🔑 🔒 🔐 🛡️ ⚔️ | |
83 | <!-- Multimedia --> 📹 📽️ 🎥 | |
84 | <!-- Geometry --> ■ ▲ ● ◆ | |
29590143 | 85 | <br /> |
5c8f383f | 86 | <div class="noprint"> |
b6d6a802 | 87 | <textarea id="labeltext" style="width:100%; height: 20em;" oninput="document.getElementById('labeltable').innerHTML=document.getElementById('labeltext').value;"></textarea> |
a19f9396 | 88 | Use CTRL+S to save whole tool including your changes to your computer. CTRL+P to print.<br /> |
5c8f383f TM |
89 | <button onclick="document.getElementById('labeltable').innerHTML=document.getElementById('labeltext').value;">Generate</button> |
90 | <button onclick="window.print();return false;">Print</button> | |
b733060c | 91 | </div> |
5c8f383f | 92 | <br /> |
5c8f383f | 93 | |
6a37a200 TM |
94 | <div id="labeltable"> |
95 | <table class=""> | |
5bb08111 | 96 | |
65206571 TM |
97 | <tr> |
98 | <td></td> | |
99 | <td>🔌<br />Living Room</td> | |
100 | <td>🔌<br />Bedroom</td> | |
101 | <td>💧<br />Washing Machine</td> | |
102 | <td>💡<br />Hall Lights</td> | |
103 | <td>💧<br />Kitchen Counter</td> | |
104 | <td>💧<br />Dish Washer</td> | |
105 | <td colspan=3>🔥<br />Kitchen Oven</td> | |
ff65ad0c | 106 | <td colspan=3>⚡<br />Surge Protector</td> |
65206571 TM |
107 | <td></td> |
108 | </tr> | |
109 | ||
5bb08111 | 110 | <tr> |
3432350e | 111 | <td></td> |
0798dac0 | 112 | <td>🔌<br />Obývák</td> |
1b9cbe22 | 113 | <td>🔌<br />Pokoje</td> |
0798dac0 | 114 | <td>💧<br />Koupelna Pračka</td> |
3432350e | 115 | <td></td> |
37483e27 TM |
116 | <td>💧<br />Kuchyně Linka</td> |
117 | <td>💧<br />Kuchyně Myčka</td> | |
1b9cbe22 | 118 | <td colspan=3>🔥<br />Kuchyně Sporák</td> |
18f916cc | 119 | <td colspan=3>⚡<br />Svodič přepětí</td> |
3432350e TM |
120 | <td></td> |
121 | </tr> | |
122 | ||
3432350e TM |
123 | <tr> |
124 | <td></td> | |
125 | <td></td> | |
0798dac0 TM |
126 | <td>🔌<br />Vchod</td> |
127 | <td>🔌<br />Předsíň</td> | |
6a37a200 | 128 | <td>🛠️<br />Režie</td> |
b665bd20 TM |
129 | <td>💡<br />Světla Kuchyně</td> |
130 | <td>💡<br />Světla Koupelna</td> | |
131 | <td>💡<br />Světla Obývák</td> | |
132 | <td>💡<br />Světla Pokoje</td> | |
133 | <td>💡<br />Světla Předsíň</td> | |
1e31524f | 134 | <td colspan=3>💡<br />Světla Předsíň<br />Bezdrátové Relé</td> |
3432350e TM |
135 | <td></td> |
136 | </tr> | |
bc5f5a29 | 137 | |
6a37a200 | 138 | </table> |
3432350e | 139 | |
bc5f5a29 TM |
140 | |
141 | ||
6a37a200 | 142 | <table class="indexed"> |
bc5f5a29 | 143 | |
3432350e | 144 | <tr> |
c2eb7b9f TM |
145 | <td><small>Very long and tiny text that is really important to have on your breaker box!</small></td> |
146 | <td>Warning!<small><small>Very long and tiny text that is really important to have on your breaker box!</small></small></td> | |
147 | <td><b>Bold</b> <i>Italic</i> <u>Under</u></td> | |
3432350e TM |
148 | <td></td> |
149 | <td></td> | |
150 | <td></td> | |
151 | <td></td> | |
aaa4a7c3 | 152 | <td colspan="6">⚠️<br />Colspan is not breaking the numbering scheme</td> |
3432350e | 153 | <td></td> |
5bb08111 TM |
154 | </tr> |
155 | ||
156 | <tr> | |
157 | <td></td> | |
158 | <td></td> | |
159 | <td></td> | |
160 | <td></td> | |
161 | <td></td> | |
162 | <td></td> | |
163 | <td></td> | |
164 | <td></td> | |
165 | <td></td> | |
166 | <td></td> | |
167 | <td></td> | |
168 | <td></td> | |
169 | <td></td> | |
170 | <td></td> | |
171 | </tr> | |
bc5f5a29 | 172 | |
6a37a200 | 173 | </table> |
5bb08111 | 174 | |
bc5f5a29 TM |
175 | |
176 | ||
6a37a200 | 177 | <table class="indexed fancyindex"> |
bc5f5a29 | 178 | |
5bb08111 TM |
179 | <tr> |
180 | <td></td> | |
181 | <td></td> | |
182 | <td></td> | |
183 | <td></td> | |
184 | <td></td> | |
185 | <td></td> | |
186 | <td></td> | |
187 | <td></td> | |
188 | <td></td> | |
189 | <td></td> | |
190 | <td></td> | |
191 | <td></td> | |
192 | <td></td> | |
193 | <td></td> | |
194 | </tr> | |
195 | ||
196 | </table> | |
6a37a200 | 197 | </div> |
3432350e | 198 | |
bc5f5a29 | 199 | <script>document.getElementById('labeltext').value=document.getElementById('labeltable').innerHTML.replace(/<.?tbody>/g, "").trim();</script> |
3432350e TM |
200 | |
201 | </body> | |
202 | </html> |