4 <title>⚡ Distribution Board Label Generator for DIN Rail Modules
</title>
6 /* DIN Rail Modules are
17.5mm wide, but mounted with
18mm pitch to accomodate differences */
8 table,h1 { font-family: sans-serif; font-weight: normal; font-size:
3.8mm; line-height:
5.2mm; }
9 small { font-size:
2.5mm; line-height:
2.5mm; }
10 small small { font-size:
2mm; line-height:
1.9mm; }
11 td * { display: block; }
13 border:
1px solid black; width:
18mm; height:
16mm;
14 text-align: center; padding:
0; overflow: hidden;
15 display: flex-wrap; float: left; margin-bottom:
10mm; box-sizing: border-box;
16 justify-content: center; /* align-items: center; */
17 white-space: pre-line;
19 td:not(:last-child) { border-right:
0px solid red; }
20 td[
colspan=
"2"] { width: calc(
2 *
18mm); }
21 td[
colspan=
"3"] { width: calc(
3 *
18mm); }
22 td[
colspan=
"4"] { width: calc(
4 *
18mm); }
23 td[
colspan=
"5"] { width: calc(
5 *
18mm); }
24 td[
colspan=
"6"] { width: calc(
6 *
18mm); }
25 td[
colspan=
"7"] { width: calc(
7 *
18mm); }
26 td[
colspan=
"8"] { width: calc(
8 *
18mm); }
27 tr { margin-bottom:
10mm; }
28 table { border-spacing:
0px; border-collapse: collapse; }
30 .noprint * { display: none; }
31 @page { size: landscape; }
36 <h1>Distribution Box Label Generator for DIN Rail Modules ( github.com/harvie )
</h1>
37 Copy-paste these icons:
📡 🌐 🔔 📺 📞 🔌 💧 🔥 ⚡ 💡 🔧 🔑 🔒 🌡 ⚙ 🕒 ⏰ 💨 🔋 📹 🔐 🤖 ☀ 🌒 🌙 🔆 🌞 ⏳
40 <textarea id=
"labeltext" style=
"width:100%; height: 20em;" oninput=
"document.getElementById('labeltable').innerHTML=document.getElementById('labeltext').value;"></textarea>
41 <button onclick=
"document.getElementById('labeltable').innerHTML=document.getElementById('labeltext').value;">Generate
</button>
42 <button onclick=
"window.print();return false;">Print
</button>
47 <table id=
"labeltable">
51 <td>🔌<br />Obývák
</td>
52 <td>🔌<br />Pokoje
</td>
53 <td>💧<br />Koupelna Pračka
</td>
55 <td>💧<br />Kuchyně Linka
</td>
56 <td>💧<br />Kuchyně Myčka
</td>
57 <td colspan=
3>🔥<br />Kuchyně Sporák
</td>
58 <td colspan=
3>⚡<br />Svodič přepětí
</td>
65 <td>🔌<br />Vchod
</td>
66 <td>🔌<br />Předsíň
</td>
67 <td>🔧<br />Režie
</td>
68 <td>💡<br />Světla Kuchyně
</td>
69 <td>💡<br />Světla Koupelna
</td>
70 <td>💡<br />Světla Obývák
</td>
71 <td>💡<br />Světla Pokoje
</td>
72 <td>💡<br />Světla Předsíň
</td>
73 <td colspan=
3>💡<br />Světla Předsíň
<br />Bezdrátové Relé
</td>
78 <td><small>Very long and tiny text that is really important to have on your breaker box!
</small></td>
79 <td>Warning!
<small><small>Very long and tiny text that is really important to have on your breaker box!
</small></small></td>
80 <td><b>Bold
</b> <i>Italic
</i> <u>Under
</u></td>
130 <script>document.getElementById('labeltext').value=document.getElementById('labeltable').innerHTML.trim();
</script>