Difference between revisions of "Jmol testpage"

From NMReDATA
Jump to: navigation, search
(this also not work)
Line 159: Line 159:
  
 
</jmol>
 
</jmol>
 +
 +
 +
this also works
 +
 +
 +
==== Using script ====
 +
<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>
 +
</td>
 +
<td style="vertical-align:top;">
 +
<nowiki>
 +
<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></nowiki>
 +
</td>
 +
</tr>

Revision as of 08:58, 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

</td> <td style="vertical-align:top;">

<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>

</td> </tr>