Difference between revisions of "Jmol testpage2"
From NMReDATA
(→jmolFile tag) |
(uploadedFileContents) |
||
Line 6: | Line 6: | ||
<td style="vertical-align:top;"> | <td style="vertical-align:top;"> | ||
=== jmolFile tag === | === jmolFile tag === | ||
− | |||
The link <jmolFile text='cyclohexane'>Chair.cml</jmolFile> | The link <jmolFile text='cyclohexane'>Chair.cml</jmolFile> | ||
will open a popup window displaying Chair.cm taken from this wiki | will open a popup window displaying Chair.cm taken from this wiki | ||
<nowiki><jmolFile text='cyclohexane'>Chair.cml</jmolFile></nowiki> | <nowiki><jmolFile text='cyclohexane'>Chair.cml</jmolFile></nowiki> | ||
− | |||
− | |||
</td> | </td> | ||
<td style="vertical-align:top;"> | <td style="vertical-align:top;"> | ||
Line 89: | Line 86: | ||
<td style="vertical-align:top;"> | <td style="vertical-align:top;"> | ||
==== Using uploadedFileContents ==== | ==== Using uploadedFileContents ==== | ||
− | + | <jmol> | |
− | + | <jmolApplet> | |
+ | <name>B</name> | ||
+ | <title>A model stored in a file in this wiki</title> | ||
+ | <caption>Chair conformation of cyclohexane</caption> | ||
+ | <color>greenTint</color> | ||
+ | <size>260</size> | ||
+ | <uploadedFileContents> Chair.cml </uploadedFileContents> | ||
+ | <controls>spin popup</controls> | ||
+ | </jmolApplet> | ||
+ | </jmol> | ||
</td> | </td> | ||
<td style="vertical-align:top;"> | <td style="vertical-align:top;"> |
Revision as of 19:06, 27 February 2019
Pop-up models
A user action will open a popup window with a model.
jmolFile tagThe link cyclohexane will open a popup window displaying Chair.cm taken from this wiki <jmolFile text='cyclohexane'>Chair.cml</jmolFile> |
jmolMol tagThe link in your coffee will open a popup window displaying caffeine <jmolMol text='something in your coffee'>caffeine</jmolMol> |
jmolSmiles tagThe link nitrobenzene will open a popup window displaying nitrobenzene <jmolSmiles text='nitrobenzene'>c1ccccc1[N+](=O)[O-]</jmolSmiles> |
jmolPdb tagThe 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 |
Pop-in models
User action will insert a model within the page.
jmolAppletInlineLink tag
Using urlContents
Adipocyte lipid binding proteinIn-page models
A model is inserted as part of the page at page load time.
jmolApplet tag
Using uploadedFileContents
|
Using urlContents
|
||||||||
Using inlineContents
|
Using wikiPageContents
|
||||||||
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> |
....