User:Jaime Prilusky/JSmolExtension

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 +
<div style='background-color:#66FF66;padding:5px;'>
 +
== A few examples of supported tags using [http://proteopedia.org/wiki/support/JSmolExtension/JSmolExtension.zip JSmolExtension.zip] ==
 +
</div>
== JSmol applet in the same page ==
== JSmol applet in the same page ==
<jmol><jmolApplet>
<jmol><jmolApplet>
Line 6: Line 9:
<uploadedFileContents>chair.xyz</uploadedFileContents>
<uploadedFileContents>chair.xyz</uploadedFileContents>
<pspeed>2</pspeed>
<pspeed>2</pspeed>
-
<caption>Some caption here, enabled for wikitext like double square brackets [[3rec]]</caption>
+
<caption>Some caption here, enabled for wikitext, i.e double square brackets [[3rec]]</caption>
<controls>spin popup</controls>
<controls>spin popup</controls>
</jmolApplet></jmol>
</jmolApplet></jmol>
- 
-
Jmol applet tags are:
 
* &lt;caption> Text displayed below the applet
* &lt;caption> Text displayed below the applet
Line 19: Line 20:
* &lt;frame> true: draws frame around applet
* &lt;frame> true: draws frame around applet
* &lt;pspeed> Platform speed for applet [ 1 .. 8 ]
* &lt;pspeed> Platform speed for applet [ 1 .. 8 ]
-
* &lt;size> Applet side in pixels
 
* &lt;size> Applet side in pixels
* &lt;size> Applet side in pixels
* &lt;title> Text displayed on top of the applet
* &lt;title> Text displayed on top of the applet
Line 26: Line 26:
* &lt;urlcontents> renders structure from URL
* &lt;urlcontents> renders structure from URL
* &lt;wikipagecontents> renders content from wiki page
* &lt;wikipagecontents> renders content from wiki page
- 
-
<div style='background-color:#66FF66;padding:5px;'>
 
-
== A few examples of supported tags using [http://proteopedia.org/wiki/support/JSmolExtension/JSmolExtension.zip JSmolExtension.zip] ==
 
-
</div>
 
== JSmol applet in a popup window ==
== JSmol applet in a popup window ==

Revision as of 08:55, 2 September 2014

A few examples of supported tags using JSmolExtension.zip

JSmol applet in the same page

wikiPageContents 

Some caption here, enabled for wikitext, i.e double square brackets 3rec

Drag the structure with the mouse to rotate
  • <caption> Text displayed below the applet
  • <captioncss> CSS style for Caption
  • <color> Applet background colour
  • <controls> Draws control buttons [ all | spin | quality | popup ]
  • <float> [ left | right ]
  • <frame> true: draws frame around applet
  • <pspeed> Platform speed for applet [ 1 .. 8 ]
  • <size> Applet side in pixels
  • <title> Text displayed on top of the applet
  • <titlecss> CSS style for Title
  • <uploadedfilecontents> renders uploaded structure
  • <urlcontents> renders structure from URL
  • <wikipagecontents> renders content from wiki page

JSmol applet in a popup window

jmolFile <jmolFile text="Explanatory text for link">Chair.xyz</jmolFile>

... 'and what is the use of a book,' thought Alice 'without pictures or conversation?'

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

Both versions, using the target as a link or using an alternate text, are supported: nitrobenzene and c1ccccc1[N+](=O)[O-]

jmolAppletButton

jmolPdb <jmolPdb>3rec</jmolPdb> 3rec


Proteopedia Page Contributors and Editors (what is this?)

Jaime Prilusky

Personal tools