Difference between revisions of "Test div new"

From NMReDATA
Jump to: navigation, search
Line 74: Line 74:
 
not yet...
 
not yet...
  
 +
</td>
 +
</tr>
 +
<tr>
 +
<td style="vertical-align:top;">
 +
==== Using inlineContents ====
 +
<jmol>
 +
  <jmolApplet>
 +
    <name>C</name>
 +
    <color>lightGray</color>
 +
    <size>240</size>
 +
    <caption>This is 1-propanol</caption>
 +
    <inlineContents>
 +
C3H8O
 +
APtclcactv02181912073D 0  0.00000    0.00000
 +
 +
12 11  0  0  0  0  0  0  0  0999 V2000
 +
    0.5267  -0.4947  -0.0000 C  0  0  0  0  0  0  0  0  0  0  0  0
 +
  -0.5950    0.5458  -0.0000 C  0  0  0  0  0  0  0  0  0  0  0  0
 +
  -1.9499  -0.1649    0.0000 C  0  0  0  0  0  0  0  0  0  0  0  0
 +
    1.7922    0.1691    0.0000 O  0  0  0  0  0  0  0  0  0  0  0  0
 +
    0.4436  -1.1185    0.8900 H  0  0  0  0  0  0  0  0  0  0  0  0
 +
    0.4436  -1.1185  -0.8900 H  0  0  0  0  0  0  0  0  0  0  0  0
 +
  -0.5119    1.1696    0.8900 H  0  0  0  0  0  0  0  0  0  0  0  0
 +
  -0.5119    1.1696  -0.8900 H  0  0  0  0  0  0  0  0  0  0  0  0
 +
  -2.0330  -0.7887  -0.8900 H  0  0  0  0  0  0  0  0  0  0  0  0
 +
  -2.0330  -0.7887    0.8900 H  0  0  0  0  0  0  0  0  0  0  0  0
 +
  -2.7490    0.5764    0.0000 H  0  0  0  0  0  0  0  0  0  0  0  0
 +
    2.5508  -0.4305  -0.0000 H  0  0  0  0  0  0  0  0  0  0  0  0
 +
  1  2  1  0  0  0  0
 +
  2  3  1  0  0  0  0
 +
  1  4  1  0  0  0  0
 +
  1  5  1  0  0  0  0
 +
  1  6  1  0  0  0  0
 +
  2  7  1  0  0  0  0
 +
  2  8  1  0  0  0  0
 +
  3  9  1  0  0  0  0
 +
  3 10  1  0  0  0  0
 +
  3 11  1  0  0  0  0
 +
  4 12  1  0  0  0  0
 +
M  END
 +
    </inlineContents>
 +
  </jmolApplet>
 +
 +
  <jmolButton>
 +
    <script> spacefill on </script>
 +
    <text> spacefill </text>
 +
    <target> C </target>
 +
  </jmolButton>
 +
 +
  <jmolLink>
 +
    <script> spacefill 23% </script>
 +
    <text> ball and stick </text>
 +
    <target> C </target>
 +
  </jmolLink>
 +
 +
  <jmolCheckbox>
 +
    <scriptWhenChecked> spin on </scriptWhenChecked>
 +
    <scriptWhenUnchecked> spin off </scriptWhenUnchecked>
 +
    <checked> false </checked>
 +
    <text> spin </text>
 +
    <target> C </target>
 +
  </jmolCheckbox>
 +
 +
  <jmolMenu>
 +
    <target> C </target>
 +
    <item>
 +
      <text> color CPK </text>
 +
      <checked> true </checked>
 +
      <script> color cpk </script>
 +
    </item>
 +
    <item>
 +
      <text> blue </text>
 +
      <script> color dodgerBlue </script>
 +
    </item>
 +
    <item>
 +
      <text> green </text>
 +
      <script> color green </script>
 +
    </item>
 +
  </jmolMenu>
 +
 +
  <jmolRadioGroup>
 +
    <target> C </target>
 +
    <vertical>false</vertical>
 +
    <item>
 +
      <text> color CPK </text>
 +
      <checked> true </checked>
 +
      <script> color cpk </script>
 +
    </item>
 +
    <item>
 +
      <text> blue </text>
 +
      <script> color dodgerBlue </script>
 +
    </item>
 +
    <item>
 +
      <text> green </text>
 +
      <script> color green </script>
 +
    </item>
 +
  </jmolRadioGroup>
 +
 +
</jmol>
 
</td>
 
</td>

Revision as of 09:32, 27 February 2019

Pop-up models

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

jmolFile tag

..not yet...

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>

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 inlineContents

This is 1-propanol