Difference between revisions of "Jmol testpage"

From NMReDATA
Jump to: navigation, search
 
Line 193: Line 193:
 
</tr>
 
</tr>
  
 
+
== Using urlContents ==
 
 
== jmolAppletInlineLink tag ==
 
Using urlContents
 
 
<jmol>
 
<jmol>
   <jmolAppletInlineLink>
+
   <jmolApplet>
 +
    <name>B</name>
 +
    <title>A file retrieved from the PDB</title>
 +
    <caption>Murine adipocyte lipid binding protein at pH 4.5 (1AB0.pdb)</caption>
 +
    <color>blueTint</color>
 +
    <size>300</size>  
 
     <urlContents> https://files.rcsb.org/download/1ab0.pdb.gz </urlContents>
 
     <urlContents> https://files.rcsb.org/download/1ab0.pdb.gz </urlContents>
     <title> 1AB0.pdb Murine adipocyte lipid binding protein at pH 4.5</title>
+
     <pspeed>2</pspeed>  
     <text> Adipocyte lipid binding protein </text>
+
     <controls>spin popup</controls>  
    <size>250</size>
+
   </jmolApplet>
    <color>linen</color>
 
   </jmolAppletInlineLink>
 
 
</jmol>
 
</jmol>

Latest revision as of 09:24, 4 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...

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

Using urlContents

A file retrieved from the PDB

Murine adipocyte lipid binding protein at pH 4.5 (1AB0.pdb)