Difference between revisions of "Jmol testpage"
From NMReDATA
(→this also works...) |
|||
Line 19: | Line 19: | ||
<jmolFile>Chair.cml</jmolFile> | <jmolFile>Chair.cml</jmolFile> | ||
</nowiki></code> | </nowiki></code> | ||
+ | == this also works... == | ||
<jmol> | <jmol> | ||
Line 25: | Line 26: | ||
</jmolApplet> | </jmolApplet> | ||
</jmol> | </jmol> | ||
+ | <code><nowiki> | ||
+ | <jmol> | ||
+ | <jmolApplet> | ||
+ | <uploadedFileContents>Chair.cml</uploadedFileContents> | ||
+ | </jmolApplet> | ||
+ | </jmol> | ||
+ | </nowiki></code> | ||
== this also works... == | == this also works... == | ||
<jmol> | <jmol> | ||
Line 102: | Line 110: | ||
</inlineContents> | </inlineContents> | ||
</jmolApplet> | </jmolApplet> | ||
− | |||
− | |||
<jmolButton> | <jmolButton> | ||
Line 159: | Line 165: | ||
</item> | </item> | ||
</jmolRadioGroup> | </jmolRadioGroup> | ||
− | |||
</jmol> | </jmol> | ||
== Using script == | == Using script == | ||
<jmol> | <jmol> | ||
+ | |||
<jmolApplet> | <jmolApplet> | ||
<name>A</name> | <name>A</name> |
Revision as of 20:18, 2 March 2019
Note that I could not find a
includes/mime.types
file in main wiki folder ...
- Newer MW versions locate that in
includes/libs/mime/mime.types
I may be related: I could not manage to allow the upload of .sdf .mol . But .cml files works (I followed these instructions)
this works
<jmolSmiles>aspirin</jmolSmiles>
<jmolFile>Chair.cml</jmolFile>
this also works...
<jmol>
<jmolApplet>
<uploadedFileContents>Chair.cml</uploadedFileContents>
</jmolApplet>
</jmol>
this also works...
demo - note: needs at least one char on first line of inline content
|
Using script
This box might hold a 3D model |
<jmol> <jmolApplet> <name>A</name> <title>This box might hold a 3D model</title> <color>blueTint</color> <size>500</size> <script> echo Hi there! </script> </jmolApplet> </jmol>
</tr>