UNPKG

jsme

Version:

JSME is a free molecule editor written in JavaScript. JSME is a direct successor of the JME Molecule Editor applet. JSME supports drawing and editing of molecules and reactions on desktop computer, as well as on handheld devices including iPhone, iPad and

30 lines (22 loc) 630 B
<html> <head> <script type="text/javascript" language="javascript" src="jsme/jsme.nocache.js"></script> <script> //this function will be called after the JavaScriptApplet code has been loaded. function jsmeOnLoad() { this.jsmeApplet = new JSApplet.JSME("jsme_container", "320px", "240px"); } </script> </head> <body> <div id="jsme_container"></div> <button onclick="resize(); return false;">Resize</button> <script language="javascript"> function resize() { //this.jsmeApplet.setWidth("600px"); //this.jsmeApplet.setHeight("80%"); this.jsmeApplet.setSize("640px","480px"); } </script> </body> </html>