Difference between revisions of "Jmol testpage"

From NMReDATA
Jump to: navigation, search
(Using script)
Line 174: Line 174:
 
   </jmolApplet>
 
   </jmolApplet>
 
</jmol>
 
</jmol>
</td>
+
 
<td style="vertical-align:top;">
+
 
 
  <nowiki>
 
  <nowiki>
 
<jmol>
 
<jmol>
Line 186: Line 186:
 
   </jmolApplet>
 
   </jmolApplet>
 
</jmol></nowiki>
 
</jmol></nowiki>
</td>
+
 
 
</tr>
 
</tr>

Revision as of 09:00, 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

aspirin

<jmolSmiles>aspirin</jmolSmiles>

Chair.cml

<jmolFile>Chair.cml</jmolFile>

this also works...

demo - note: needs at least one char on first line of inline content


this also works


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>150</size> 
    <script> echo Hi there! </script>
  </jmolApplet>
</jmol>

</tr>