Difference between revisions of "Jmol testpage"

From NMReDATA
Jump to: navigation, search
(this also works...)
(this also works...)
Line 33: Line 33:
 
     <caption>demo - note: needs at least one char on first line of inline content</caption>  
 
     <caption>demo - note: needs at least one char on first line of inline content</caption>  
 
     <inlineContents>
 
     <inlineContents>
T
+
Menthol
 
OpenBabel02151916433D
 
OpenBabel02151916433D
  
Line 102: Line 102:
 
     </inlineContents>
 
     </inlineContents>
 
   </jmolApplet>
 
   </jmolApplet>
 +
 
== This also works ==
 
== This also works ==
 +
 
   <jmolButton>
 
   <jmolButton>
 
     <script> spacefill on </script>
 
     <script> spacefill on </script>
Line 110: Line 112:
  
 
   <jmolLink>
 
   <jmolLink>
     <script> spacefill 23% </script>
+
     <script> spacefill 2% </script>
 
     <text> ball and stick </text>
 
     <text> ball and stick </text>
 
     <target> C </target>
 
     <target> C </target>
Line 154: Line 156:
 
     <item>
 
     <item>
 
       <text> green </text>
 
       <text> green </text>
       <script> color green </script>
+
       <script> color green </script>
 
     </item>
 
     </item>
 
   </jmolRadioGroup>
 
   </jmolRadioGroup>

Revision as of 19:40, 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

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>