Compare commits

..

No commits in common. "2c5a66c06906861050d8e910cb11962b0abb0d0a" and "79c98a4b3aa4b210f3ed74aa9e8c1a3a7246dfc5" have entirely different histories.

4 changed files with 6 additions and 9 deletions

View file

@ -14,7 +14,7 @@ markdown -f toc,idanchor "${1}" | sed \
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
-e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|' \
-e '/<h[1234] /s|-2[1789cd]-||g' -e '/<h[1234] /s|--26-amp-3b-||g' \
-e '/^<pre>/s|pre|pre class="code" onclick="CopyToClipboard(this)"|g' \
-e '/^<pre>/s|pre|pre onclick="CopyToClipboard(this)"|g' \
-e '/The above link may be broken on code hosting sites/s|blockquote|blockquote style="display: none;"|'
sed \

View file

@ -31,7 +31,7 @@ instead.</p></blockquote>
<div class="content">
<p id="heading" class="heading">[<span id="hostname">MikroTik</span>] <span id="subject"> Subject</span></p>
<pre id="message">Message</pre>
<p id="link" class="hint">🔗 <span id="link-text" class="link">https://rsc.eworm.de/</span></p>
<p id="link" class="hint">🔗 <span id="link-text" class="link">https://eworm.de/</span></p>
<p id="queued" class="hint">⏰ This message was queued since <i><span id="queued-since">2025-10-29 16:06:18</span></i> and may be obsolete.</p>
<p id="cut" class="hint">✂️ The message was too long and has been truncated, cut off <i><span id="cut-percent">13</span>%</i>!</p>
</div>
@ -40,7 +40,7 @@ instead.</p></blockquote>
<p>Hostname: <input type="text" value="MikroTik" onchange="update(this, 'hostname')"></p>
<p>Subject: <input type="text" size=50 value=" Subject" onchange="update(this, 'subject')"></p>
<p>Message: <textarea id="w3review" name="w3review" rows="4" cols="50" onchange="update(this, 'message')">Message</textarea></p>
<p><input type="checkbox" onclick="visible(this, 'link')"> Show link: <input type="text" value="https://rsc.eworm.de/" onchange="update(this, 'link-text')"></p>
<p><input type="checkbox" onclick="visible(this, 'link')"> Show link: <input type="text" value="https://eworm.de/" onchange="update(this, 'link-text')"></p>
<p><input type="checkbox" onclick="visible(this, 'queued')"> Queued since <input type="text" value="2025-10-29 16:06:18" onchange="update(this, 'queued-since')"></p>
<p><input type="checkbox" onclick="visible(this, 'cut')"> Cut-off with <input type="number" min=1 max=99 value=13 onchange="update(this, 'cut-percent')"> percent</p>

View file

@ -1,7 +1,7 @@
/* copy code to clipboard */
function CopyToClipboard(element) {
element.style.filter = 'invert(1)';
navigator.clipboard.writeText(element.firstElementChild.textContent);
navigator.clipboard.writeText(element.firstElementChild.innerHTML);
setTimeout(function() {
element.style.filter = 'invert(0)';
}, 100);

View file

@ -41,14 +41,13 @@ div.content {
}
img.logo {
float: left;
/* border-radius: 50%; */
border-radius: 50%;
}
p.foot {
color: #777;
text-align: center;
}
p.heading {
font-size: 120%;
margin: 0px;
font-weight: bold;
text-decoration: underline;
@ -59,8 +58,6 @@ p.hint {
pre {
font-family: fira-mono, monospace;
white-space: pre-wrap;
}
pre.code {
background-color: #f8f8f8;
border: 1px solid #ccc;
overflow: auto;
@ -72,7 +69,7 @@ pre code {
padding: 0;
border: 0;
}
pre.code::before {
pre::before {
content: "📋 Copy!";
float: right;
border: 1px solid #ccc;