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> | |
48fc3365 | 73 | <h1>Distribution Box Label Generator for DIN Rail Modules ( <a href="https://github.com/harvie">github.com/harvie</a> )</h1> |
91bfe157 | 74 | <div class="noprint">Copy-paste these icons:</div> |
f9df5dda | 75 | 📡 🌐 🔔 📺 📞 🔌 💧 🔥 ⚡ 💡 🔧 🛠️ 🔑 🔒 🌡️ ⚙️ 🕒 ⏰ 💨 🔋 📹 🔐 🤖 ☀️ 🌒 🌙 🔆 🌞 ⏳ 🛡️ ⚔️ ☠ ☠️ 🛗 🚗 ⭐ ✨ 💫 ❄️ ⚠ ⚠️ 🚨 🖥️ 📽️ 🎥 📱 🪛 🍽️ 🍴 🛏️ 💀 🛀 🚽 🏠 🔊 ☎️ |
29590143 | 76 | <br /> |
5c8f383f | 77 | <div class="noprint"> |
b6d6a802 | 78 | <textarea id="labeltext" style="width:100%; height: 20em;" oninput="document.getElementById('labeltable').innerHTML=document.getElementById('labeltext').value;"></textarea> |
a19f9396 | 79 | Use CTRL+S to save whole tool including your changes to your computer. CTRL+P to print.<br /> |
5c8f383f TM |
80 | <button onclick="document.getElementById('labeltable').innerHTML=document.getElementById('labeltext').value;">Generate</button> |
81 | <button onclick="window.print();return false;">Print</button> | |
b733060c | 82 | </div> |
5c8f383f | 83 | <br /> |
5c8f383f | 84 | |
6a37a200 TM |
85 | <div id="labeltable"> |
86 | <table class=""> | |
5bb08111 | 87 | |
65206571 TM |
88 | <tr> |
89 | <td></td> | |
90 | <td>🔌<br />Living Room</td> | |
91 | <td>🔌<br />Bedroom</td> | |
92 | <td>💧<br />Washing Machine</td> | |
93 | <td>💡<br />Hall Lights</td> | |
94 | <td>💧<br />Kitchen Counter</td> | |
95 | <td>💧<br />Dish Washer</td> | |
96 | <td colspan=3>🔥<br />Kitchen Oven</td> | |
ff65ad0c | 97 | <td colspan=3>⚡<br />Surge Protector</td> |
65206571 TM |
98 | <td></td> |
99 | </tr> | |
100 | ||
5bb08111 | 101 | <tr> |
3432350e | 102 | <td></td> |
0798dac0 | 103 | <td>🔌<br />Obývák</td> |
1b9cbe22 | 104 | <td>🔌<br />Pokoje</td> |
0798dac0 | 105 | <td>💧<br />Koupelna Pračka</td> |
3432350e | 106 | <td></td> |
37483e27 TM |
107 | <td>💧<br />Kuchyně Linka</td> |
108 | <td>💧<br />Kuchyně Myčka</td> | |
1b9cbe22 | 109 | <td colspan=3>🔥<br />Kuchyně Sporák</td> |
18f916cc | 110 | <td colspan=3>⚡<br />Svodič přepětí</td> |
3432350e TM |
111 | <td></td> |
112 | </tr> | |
113 | ||
3432350e TM |
114 | <tr> |
115 | <td></td> | |
116 | <td></td> | |
0798dac0 TM |
117 | <td>🔌<br />Vchod</td> |
118 | <td>🔌<br />Předsíň</td> | |
6a37a200 | 119 | <td>🛠️<br />Režie</td> |
b665bd20 TM |
120 | <td>💡<br />Světla Kuchyně</td> |
121 | <td>💡<br />Světla Koupelna</td> | |
122 | <td>💡<br />Světla Obývák</td> | |
123 | <td>💡<br />Světla Pokoje</td> | |
124 | <td>💡<br />Světla Předsíň</td> | |
1e31524f | 125 | <td colspan=3>💡<br />Světla Předsíň<br />Bezdrátové Relé</td> |
3432350e TM |
126 | <td></td> |
127 | </tr> | |
bc5f5a29 | 128 | |
6a37a200 | 129 | </table> |
3432350e | 130 | |
bc5f5a29 TM |
131 | |
132 | ||
6a37a200 | 133 | <table class="indexed"> |
bc5f5a29 | 134 | |
3432350e | 135 | <tr> |
c2eb7b9f TM |
136 | <td><small>Very long and tiny text that is really important to have on your breaker box!</small></td> |
137 | <td>Warning!<small><small>Very long and tiny text that is really important to have on your breaker box!</small></small></td> | |
138 | <td><b>Bold</b> <i>Italic</i> <u>Under</u></td> | |
3432350e TM |
139 | <td></td> |
140 | <td></td> | |
141 | <td></td> | |
142 | <td></td> | |
aaa4a7c3 | 143 | <td colspan="6">⚠️<br />Colspan is not breaking the numbering scheme</td> |
3432350e | 144 | <td></td> |
5bb08111 TM |
145 | </tr> |
146 | ||
147 | <tr> | |
148 | <td></td> | |
149 | <td></td> | |
150 | <td></td> | |
151 | <td></td> | |
152 | <td></td> | |
153 | <td></td> | |
154 | <td></td> | |
155 | <td></td> | |
156 | <td></td> | |
157 | <td></td> | |
158 | <td></td> | |
159 | <td></td> | |
160 | <td></td> | |
161 | <td></td> | |
162 | </tr> | |
bc5f5a29 | 163 | |
6a37a200 | 164 | </table> |
5bb08111 | 165 | |
bc5f5a29 TM |
166 | |
167 | ||
6a37a200 | 168 | <table class="indexed fancyindex"> |
bc5f5a29 | 169 | |
5bb08111 TM |
170 | <tr> |
171 | <td></td> | |
172 | <td></td> | |
173 | <td></td> | |
174 | <td></td> | |
175 | <td></td> | |
176 | <td></td> | |
177 | <td></td> | |
178 | <td></td> | |
179 | <td></td> | |
180 | <td></td> | |
181 | <td></td> | |
182 | <td></td> | |
183 | <td></td> | |
184 | <td></td> | |
185 | </tr> | |
186 | ||
187 | </table> | |
6a37a200 | 188 | </div> |
3432350e | 189 | |
bc5f5a29 | 190 | <script>document.getElementById('labeltext').value=document.getElementById('labeltable').innerHTML.replace(/<.?tbody>/g, "").trim();</script> |
3432350e TM |
191 | |
192 | </body> | |
193 | </html> |