Difference between revisions of "Jmol testpage2"

From NMReDATA
Jump to: navigation, search
(jmolFile tag)
Line 7: Line 7:
 
=== jmolFile tag ===
 
=== jmolFile tag ===
 
  not yet... but Chair.cml is available for test...  
 
  not yet... but Chair.cml is available for test...  
 +
The link <jmolFile text='cyclohexane'>Chair.cml</jmolFile>
 +
will open a popup window displaying Chair.cm taken from this wiki
 +
<nowiki><jmolFile text='cyclohexane'>Chair.cml</jmolFile></nowiki>
 +
 +
 
</td>
 
</td>
 
<td style="vertical-align:top;">
 
<td style="vertical-align:top;">

Revision as of 20:03, 27 February 2019

Pop-up models

A user action will open a popup window with a model.

jmolFile tag

not yet... but Chair.cml is available for test... 

The link cyclohexane will open a popup window displaying Chair.cm taken from this wiki

<jmolFile text='cyclohexane'>Chair.cml</jmolFile>


jmolMol tag

The link in your coffee will open a popup window displaying caffeine

<jmolMol text='something in your coffee'>caffeine</jmolMol>

and something in vinegar

jmolSmiles tag

The link nitrobenzene will open a popup window displaying nitrobenzene

<jmolSmiles text='nitrobenzene'>c1ccccc1[N+](=O)[O-]</jmolSmiles>

jmolPdb tag

The link adipocyte lipid binding protein will open a popup window displaying 1ab0.pdb

<jmolPdb text='adipocyte lipid binding protein'>1ab0</jmolPdb>

jmolAppletButton tag

jmolAppletLink tag

Adipocyte lipid binding protein

Pop-in models

User action will insert a model within the page.

jmolAppletInlineLink tag

Using urlContents

Adipocyte lipid binding protein

In-page models

A model is inserted as part of the page at page load time.

jmolApplet tag

Using uploadedFileContents

not yet...

Using urlContents

A file retrieved from the PDB

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

Using inlineContents

This is 1-propanol

Using wikiPageContents

Data read from the page Models/2-propanol

This is 2-propanol

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>

....