mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-21 11:41:00 +00:00
static: keep url <pre> at constant rendering height
This commit is contained in:
parent
1ce14cb152
commit
2b9ad7b4a2
2 changed files with 5 additions and 3 deletions
|
@ -50,14 +50,16 @@
|
|||
<div>
|
||||
<input id="tag" len="20" placeholder="tag"/>
|
||||
</div>
|
||||
<pre id="tag-url"></pre>
|
||||
<pre id="tag-url">
|
||||
</pre>
|
||||
</article>
|
||||
<article>
|
||||
<h2>Follow posts by instance</h2>
|
||||
<div>
|
||||
<input id="instance" len="20" placeholder="example.xyz"/>
|
||||
</div>
|
||||
<pre id="instance-url"></pre>
|
||||
<pre id="instance-url">
|
||||
</pre>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
var value = encodeURIComponent(inputEl.value.replace(/^#/, ""));
|
||||
preEl.innerText = value ?
|
||||
"https://" + document.location.host + "/" + id + "/" + value :
|
||||
"";
|
||||
"\n";
|
||||
}, 10);
|
||||
}
|
||||
inputEl.addEventListener('change', onChange);
|
||||
|
|
Loading…
Reference in a new issue