This old version of Proteopedia is provided for student assignments while the new version is undergoing repairs. Content and edits done in this old version of Proteopedia after March 1, 2026 will eventually be lost when it is retired in about June of 2026.


Apply for new accounts at the new Proteopedia. Your logins will work in both the old and new versions.


User:Jaime Prilusky/JSmolExtension

From Proteopedia

< User:Jaime Prilusky(Difference between revisions)
Jump to: navigation, search
Current revision (11:45, 14 July 2020) (edit) (undo)
 
(29 intermediate revisions not shown.)
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>
 +
Some [[User:Jaime Prilusky/Test/JSmolExtensionExamples|more examples]]
 +
== JSmol applet in the same page ==
 +
<jmol><jmolApplet>
 +
<title> wikiPageContents </title>
 +
<float>right</float>
 +
<color>red</color><size>200</size>
 +
<uploadedFileContents>chair.xyz</uploadedFileContents>
 +
<pspeed>2</pspeed>
 +
<caption>Some caption here, enabled for wikitext, i.e double square brackets [[3rec]]</caption>
 +
<controls>spin popup</controls>
 +
<animgifurl>http://proteopedia.org/wiki/images/8/8d/2cts.gif</animgifurl>
 +
</jmolApplet></jmol>
 +
 +
<pre>The applet on the right is generated from this code
 +
<jmol><jmolApplet>
 +
<title> wikiPageContents </title>
 +
<float>right</float>
 +
<color>red</color><size>200</size>
 +
<uploadedFileContents>chair.xyz</uploadedFileContents>
 +
<pspeed>2</pspeed>
 +
<caption>Some caption here, enabled for wikitext, i.e double square brackets [[3rec]]</caption>
 +
<controls>spin popup</controls>
 +
<animgifurl>http://proteopedia.org/wiki/images/8/8d/2cts.gif</animgifurl>
 +
</jmolApplet></jmol>
 +
</pre>
 +
 +
* &lt;caption> Text displayed below the applet
 +
* &lt;captioncss> CSS style for Caption
 +
* &lt;color> Applet background colour
 +
* &lt;controls> Draws control buttons [ all | spin | quality | popup ]
 +
* &lt;float> [ left | right ]
 +
* &lt;frame> true: draws frame around applet
 +
* &lt;pspeed> Platform speed for applet [ 1 .. 8 ]
 +
* &lt;script> Jmol script, i.e. ''load $NC(Cl)(C)O;''
 +
* &lt;size> Applet side in pixels
 +
* &lt;title> Text displayed on top of the applet
 +
* &lt;titlecss> CSS style for Title
 +
* &lt;animgifurl> URL for animated GIF to display before rendering the model
 +
* &lt;uploadedfilecontents> renders uploaded structure
 +
* &lt;urlcontents> renders structure from URL
 +
* &lt;wikipagecontents> renders content from wiki page
 +
 +
== JSmol applet in a popup window ==
 +
'''jmolFile''' <nowiki><jmolFile text="Explanatory text for link">Chair.xyz</jmolFile></nowiki >
'''jmolFile''' <nowiki><jmolFile text="Explanatory text for link">Chair.xyz</jmolFile></nowiki >
-
Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do: once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, 'and what is the use of a book,' thought Alice 'without <jmolFile text="pictures">Chair.xyz</jmolFile> or conversation?'
+
... 'and what is the use of a book,' thought Alice 'without <jmolFile text="pictures">Chair.xyz</jmolFile> or conversation?'
'''jmolSmiles''' <nowiki><jmolSmiles text='nitrobenzene'>c1ccccc1[N+](=O)[O-]</jmolSmiles></nowiki>
'''jmolSmiles''' <nowiki><jmolSmiles text='nitrobenzene'>c1ccccc1[N+](=O)[O-]</jmolSmiles></nowiki>
-
Both versions are supported
+
Both versions, using the target as a link or using an alternate text, are supported:
<jmolSmiles text='nitrobenzene'>c1ccccc1[N+](=O)[O-]</jmolSmiles>
<jmolSmiles text='nitrobenzene'>c1ccccc1[N+](=O)[O-]</jmolSmiles>
and
and
<jmolSmiles>c1ccccc1[N+](=O)[O-]</jmolSmiles>
<jmolSmiles>c1ccccc1[N+](=O)[O-]</jmolSmiles>
 +
 +
'''jmolAppletButton'''
 +
<jmol>
 +
<jmolAppletButton>
 +
<uploadedFileContents>Chair.xyz</uploadedFileContents>
 +
<text>show Chair</text>
 +
</jmolAppletButton>
 +
</jmol>
 +
 +
'''jmolPdb''' <nowiki><jmolPdb>3rec</jmolPdb></nowiki> <jmolPdb>3rec</jmolPdb>
 +
 +
 +
<!--
 +
<jmol>
 +
<jmolApplet>
 +
<signed>true</signed>
 +
<title>SMILES samples</title>
 +
<size>200</size>
 +
<script>load $NC(Cl)(C)O</script>
 +
</jmolApplet>
 +
<jmolMenu>
 +
<item>
 +
<script></script>
 +
<text>..choose..</text>
 +
</item>
 +
<item>
 +
<script>load $CCC(C)C</script>
 +
<text>CCC(C)C</text>
 +
</item>
 +
<item>
 +
<script>load $NC(C)C(O)=O</script>
 +
<text>NC(C)C(O)=O</text>
 +
</item>
 +
<item>
 +
<script>load $c1ccccc1</script>
 +
<text>c1ccccc1</text>
 +
</item>
 +
</jmolMenu>
 +
</jmol>
 +
-->

Current revision

A few examples of supported tags using JSmolExtension.zip

Some more examples

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
The applet on the right is generated from this code
<jmol><jmolApplet>
<title> wikiPageContents </title>
<float>right</float>
<color>red</color><size>200</size>
<uploadedFileContents>chair.xyz</uploadedFileContents>
<pspeed>2</pspeed>
<caption>Some caption here, enabled for wikitext, i.e double square brackets [[3rec]]</caption>
<controls>spin popup</controls>
<animgifurl>http://proteopedia.org/wiki/images/8/8d/2cts.gif</animgifurl>
</jmolApplet></jmol>
  • <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 ]
  • <script> Jmol script, i.e. load $NC(Cl)(C)O;
  • <size> Applet side in pixels
  • <title> Text displayed on top of the applet
  • <titlecss> CSS style for Title
  • <animgifurl> URL for animated GIF to display before rendering the model
  • <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