Difference between revisions of "Uploaded XYZ File"

From Jmol
Jump to navigation Jump to search
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
== Uploaded XYZ File ==
 
== Uploaded XYZ File ==
 +
This uses <code>uploadedFileContents</code> tag with an XYZ file:
  
 
<jmol>
 
<jmol>
 
   <jmolApplet>
 
   <jmolApplet>
<size>200</size>
+
    <title>chair</title>
<color>orange</color>
+
    <size>200</size>
     <UploadedFileContents>Chair.xyz</UploadedFileContents>
+
    <color>orange</color>
 +
     <uploadedFileContents>Chair.xyz</uploadedFileContents>
 
   </jmolApplet>
 
   </jmolApplet>
 +
</jmol>See the page for this file: [[:file:Chair.xyz]]
 +
 +
<jmol>
 +
  <jmolLink>
 +
    <script>color atoms red</script>
 +
    <text>color in red</text>
 +
  </jmolLink>
 +
</jmol>
 +
<jmol>
 +
  <jmolLink>
 +
    <script>color atoms blue</script>
 +
    <text>color in blue</text>
 +
  </jmolLink>
 +
</jmol>
 +
<jmol>
 +
  <jmolCheckbox>
 +
    <scriptWhenChecked>color atoms lime</scriptWhenChecked>
 +
    <scriptWhenUnchecked>color atoms cpk</scriptWhenUnchecked>
 +
    <text>this checkbox colors atoms lime or cpk</text>
 +
  </jmolCheckbox>
 
</jmol>
 
</jmol>
 
 
<jmol>
 
<jmol>
 
   <jmolCheckbox>
 
   <jmolCheckbox>
     <scriptWhenChecked>select all; color red</scriptWhenChecked>
+
     <scriptWhenChecked>select all; color purple</scriptWhenChecked>
     <scriptWhenUnchecked>select all; color blue</scriptWhenUnchecked>
+
     <scriptWhenUnchecked>select all; color pink</scriptWhenUnchecked>
     <text>testing jmolCheckbox, should color red/blue</text>
+
     <text>this jmolCheckbox colors atoms purple or pink</text>
 
   </jmolCheckbox>
 
   </jmolCheckbox>
 +
</jmol>
 +
<jmol>
 +
  <jmolButton>
 +
    <script>color atoms cyan</script>
 +
    <text>color in cyan</text>
 +
  </jmolButton>
 +
</jmol>
 +
Color atoms:
 +
<jmol>
 +
  <jmolMenu>
 +
    <item>
 +
      <script>color atoms cpk</script>
 +
      <text>default</text>
 +
    </item>
 +
    <item>
 +
      <script>color atoms yellow</script>
 +
      <text>yellow</text>
 +
    </item>
 +
    <item>
 +
      <script>color atoms blue</script>
 +
      <text>blue</text>
 +
    </item>
 +
  </jmolMenu>
 
</jmol>
 
</jmol>
  
Checkboxes are currently not working in the wiki. Their scripts are not passed to the applet.
+
[[Category:Pages Using Jmol MW Extension]]

Latest revision as of 18:46, 2 September 2014

Uploaded XYZ File

This uses uploadedFileContents tag with an XYZ file:

chair

See the page for this file: file:Chair.xyz

Color atoms: