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

31 lines (25 loc) 1.01 kB
<html> <head> <title>JME to JSME migration. Part 1</title> <script type="text/javascript" language="javascript" src="jsme/jsme.nocache.js"></script> </head> <body> <H1>JME to JSME migration</H1> <div name="jme" code="JME.class" width=420 height=330> You have to enable JavaScript in your browser to use JSME ! </div> The variable name "jme" refers to the applet document.jme . <input type="button" value="Get smiles via document.jme" onclick="alert(document.jme.smiles());"> <br> The applet can also be accessed via document.jsapplets[0]. <input type="button" value="Get smiles via document.jsapplets[0]" onclick="alert(document.jsapplets[0].smiles());"> <br><hr> JSME in depict mode: <div id="jme_depict" name="jme2" code="JME.class" width=300 height=200> You have to enable JavaScript on your machine ! <param name="options" value="depict"> <param name ="jme" value="2 1 C 9.63 -7.84 O 10.84 -8.54 1 2 1"> You have to enable JavaScript in your browser to use JSME ! </div> </body> </html>