table,h1 { font-family: sans-serif; font-weight: normal; font-size: 3.8mm; line-height: 5.2mm; }
small { font-size: 2.5mm; line-height: 2.5mm; }
small small { font-size: 2mm; line-height: 1.9mm; }
+a { color: dark-grey; text-decoration: none; }
/* table */
table { border-spacing:0px; border-collapse: collapse; }
td:not(:last-child) { border-right: 0px solid red; }
/* wide modules */
-td[colspan="2"] { width: calc(2 * 18mm); counter-increment: module_counter 2; }
-td[colspan="3"] { width: calc(3 * 18mm); counter-increment: module_counter 3; }
-td[colspan="4"] { width: calc(4 * 18mm); counter-increment: module_counter 4; }
-td[colspan="5"] { width: calc(5 * 18mm); counter-increment: module_counter 5; }
-td[colspan="6"] { width: calc(6 * 18mm); counter-increment: module_counter 6; }
-td[colspan="7"] { width: calc(7 * 18mm); counter-increment: module_counter 7; }
-td[colspan="8"] { width: calc(8 * 18mm); counter-increment: module_counter 8; }
-td[colspan="9"] { width: calc(8 * 18mm); counter-increment: module_counter 9; }
-td[colspan="10"] { width: calc(8 * 18mm); counter-increment: module_counter 10; }
-td[colspan="11"] { width: calc(8 * 18mm); counter-increment: module_counter 11; }
-td[colspan="12"] { width: calc(8 * 18mm); counter-increment: module_counter 12; }
-td[colspan="13"] { width: calc(8 * 18mm); counter-increment: module_counter 13; }
-td[colspan="14"] { width: calc(8 * 18mm); counter-increment: module_counter 14; }
-td[colspan="15"] { width: calc(8 * 18mm); counter-increment: module_counter 15; }
-td[colspan="16"] { width: calc(8 * 18mm); counter-increment: module_counter 16; }
+td[colspan="2" ] { width: calc(2 * 18mm); counter-increment: module_counter 2; }
+td[colspan="3" ] { width: calc(3 * 18mm); counter-increment: module_counter 3; }
+td[colspan="4" ] { width: calc(4 * 18mm); counter-increment: module_counter 4; }
+td[colspan="5" ] { width: calc(5 * 18mm); counter-increment: module_counter 5; }
+td[colspan="6" ] { width: calc(6 * 18mm); counter-increment: module_counter 6; }
+td[colspan="7" ] { width: calc(7 * 18mm); counter-increment: module_counter 7; }
+td[colspan="8" ] { width: calc(8 * 18mm); counter-increment: module_counter 8; }
+td[colspan="9" ] { width: calc(9 * 18mm); counter-increment: module_counter 9; }
+td[colspan="10"] { width: calc(10 * 18mm); counter-increment: module_counter 10; }
+td[colspan="11"] { width: calc(11 * 18mm); counter-increment: module_counter 11; }
+td[colspan="12"] { width: calc(12 * 18mm); counter-increment: module_counter 12; }
+td[colspan="13"] { width: calc(13 * 18mm); counter-increment: module_counter 13; }
+td[colspan="14"] { width: calc(14 * 18mm); counter-increment: module_counter 14; }
+td[colspan="15"] { width: calc(15 * 18mm); counter-increment: module_counter 15; }
+td[colspan="16"] { width: calc(16 * 18mm); counter-increment: module_counter 16; }
/* indexing */
tr { counter-reset: module_counter; }
</style>
</head>
<body>
-<h1>Distribution Box Label Generator for DIN Rail Modules ( github.com/harvie )</h1>
+<h1>Distribution Box Label Generator for DIN Rail Circuit Breaker Modules ( <a href="https://github.com/harvie">github.com/harvie</a> )</h1>
<div class="noprint">Copy-paste these icons:</div>
-📡 🌐 🔔 📺 📞 🔌 💧 🔥 ⚡ 💡 🔧 🛠️ 🔑 🔒 🌡️ ⚙️ 🕒 ⏰ 💨 🔋 📹 🔐 🤖 ☀️ 🌒 🌙 🔆 🌞 ⏳ 🛡️ ⚔️ ☠ ☠️ 🛗 🚗 ⭐ ✨ 💫 ❄️ ⚠ ⚠️ 🚨
+<!-- Power --> 🔌 ⚡ 💡 🔋 🔥 💧
+<!-- Telco --> 📡 🌐 📺 📞 🔔 📱 🔊 ☎️
+<!-- Danger --> ⚠ ⚠️ 🚨 💀 ☠️ ☠ 🚫
+<!-- Home --> 🍽️ 🍴 🛏️ 🛀 🚽 🏠 🚗
+<br />
+<!-- Work --> 🔧 🛠️ ⚙️ 🤖 🛗 🖥️ 🪛
+<!-- Elements --> 🌡️ 🕒 ⏰ 💨 ☀️ 🌒 🌙 🔆 🌞 ⏳ ⭐ ✨ 💫 ❄️
+<!-- Security --> 🔑 🔒 🔐 🛡️ ⚔️
+<!-- Multimedia --> 📹 📽️ 🎥
+<!-- Geometry --> ■ ▲ ● ◆
<br />
<div class="noprint">
<textarea id="labeltext" style="width:100%; height: 20em;" oninput="document.getElementById('labeltable').innerHTML=document.getElementById('labeltext').value;"></textarea>
<div id="labeltable">
<table class="">
+<tr>
+<td></td>
+<td>🔌<br />Living Room</td>
+<td>🔌<br />Bedroom</td>
+<td>💧<br />Washing Machine</td>
+<td>💡<br />Hall Lights</td>
+<td>💧<br />Kitchen Counter</td>
+<td>💧<br />Dish Washer</td>
+<td colspan=3>🔥<br />Kitchen Oven</td>
+<td colspan=3>⚡<br />Surge Protector</td>
+<td></td>
+</tr>
+
<tr>
<td></td>
<td>🔌<br />Obývák</td>
<td colspan=3>💡<br />Světla Předsíň<br />Bezdrátové Relé</td>
<td></td>
</tr>
+
</table>
+
+
<table class="indexed">
+
<tr>
<td><small>Very long and tiny text that is really important to have on your breaker box!</small></td>
<td>Warning!<small><small>Very long and tiny text that is really important to have on your breaker box!</small></small></td>
<td></td>
<td></td>
<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
+<td colspan="6">⚠️<br />Colspan is not breaking the numbering scheme</td>
<td></td>
</tr>
<td></td>
<td></td>
</tr>
+
</table>
+
+
<table class="indexed fancyindex">
+
<tr>
<td></td>
<td></td>
</table>
</div>
-<script>document.getElementById('labeltext').value=document.getElementById('labeltable').innerHTML.trim();</script>
+<script>document.getElementById('labeltext').value=document.getElementById('labeltable').innerHTML.replace(/<.?tbody>/g, "").trim();</script>
</body>
</html>