Embed Experiments
On this page
Text to Clipboard
The code below was taken from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_copy_clipboard and was embedded here using the Embed Code tool.
<!DOCTYPE html>
<html>
<body>
<p>Click on the button to copy the text from the text field. Try to paste the text (e.g. ctrl+v) afterwards in a different window, to see the effect.</p>
<input type="text" value="Hello World" id="myInput">
<button onclick="myFunction()">Copy text</button>
<script>
function myFunction() {
var copyText = document.getElementById("myInput");
copyText.select();
copyText.setSelectionRange(0, 99999)
document.execCommand("copy");
alert("Copied the text: " + copyText.value);
}
</script>
</body>
</html>
Jmol
Jmol insertion into a web page
see http://wiki.jmol.org/index.php/Jmol_PHP
The sample applet from the wiki page linked to above was embedded here using the Embed Code tool.
Note that in order to make it work it was necessary to change http:// to https://
<script type="text/javascript"
src="https://chemapps.stolaf.edu/jmol/jmol.php?model=acetone&inline">
</script>