User:Seebe: Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
//btn.style.color = 'white'; | //btn.style.color = 'white'; | ||
btn.style.color = 'blue'; | btn.style.color = 'blue'; | ||
}</script></html> | }</script> | ||
</html> | |||
<html><script>function code_box(text) { | |||
document.write("<pre>"); | |||
document.write(text); | |||
document.write("</pre>"); | |||
document.write("<br/>"); | |||
} | |||
</script></html> | |||
<html><script>function command_box(text) { | |||
document.write("<table border=0 width=100%><tr><td>"); | |||
document.write("<pre>" + text + "</pre>"); | |||
document.write("</td><td width=1>"); | |||
document.write("<input type=button value=\"📋Copy\" onclick=\"copy_to_clipboard('" + text + "')\" />"); | |||
document.write("</td></tr></table>"); | |||
} | |||
</script></html> | |||
<pre> | |||
sudo apt update | |||
</pre> | |||
<html><input type="button" value="📋Copy" onclick="copy_to_clipboard('sudo apt update')" /></html> | |||
<br> | |||
<hr> | |||
<table border=0 width=100%><tr><td> | |||
<pre> | <pre> | ||
sudo apt update | sudo apt update | ||
</pre> | </pre> | ||
</td><td width=1> | |||
<html><input type="button" value="📋Copy" onclick="copy_to_clipboard('sudo apt update')" /></html> | <html><input type="button" value="📋Copy" onclick="copy_to_clipboard('sudo apt update')" /></html> | ||
</td></tr></table> | |||
<hr> | |||
<html><script>code_box("hello bye")</script></html> | |||
<hr> | |||
<html><script>command_box("hello bye command box")</script></html> | |||
<html><script>command_box("dog cat")</script></html> |
Revision as of 22:48, 14 September 2022
sudo apt update
sudo apt update |
|