User:Seebe: Difference between revisions

From Renesas.info
No edit summary
No edit summary
Line 17: Line 17:
}
}
</script></html>
</script></html>


<html><script>function command_box(text) {
<html><script>function command_box(text) {
if (text.startsWith('$ '))
  text_to_copy = text.substring(2);
else
  text_to_copy = text;
document.write("<table border=0 width=100%><tr><td>");
document.write("<table border=0 width=100%><tr><td>");
document.write("<pre>" + text + "</pre>");
document.write("<pre>" + text + "</pre>");
document.write("</td><td width=1>");
document.write("</td><td width=1>");
document.write("<input type=button value=\"📋Copy\" onclick=\"copy_to_clipboard('" + text + "')\" />");
document.write("<input type=button value=\"📋Copy\" onclick=\"copy_to_clipboard('" + text_to_copy + "')\" />");
document.write("</td></tr></table>");
document.write("</td></tr></table>");
}
}
Line 53: Line 56:
<html><script>command_box("hello bye command box")</script></html>
<html><script>command_box("hello bye command box")</script></html>
<html><script>command_box("dog cat")</script></html>
<html><script>command_box("dog cat")</script></html>
<html><script>command_box("$ dog cat")</script></html>

Revision as of 20:38, 15 September 2022


sudo apt update



sudo apt update