User:Jaime Prilusky/Test/JSmolExtensionExamples
From Proteopedia
(Difference between revisions)
Line 1: | Line 1: | ||
- | ==Plain examples for JSMolExtension== | + | ==Plain examples for [[User:Jaime_Prilusky/JSmolExtension|JSMolExtension]]== |
<StructureSection load='3rec' size='340' side='right' caption='Caption for this structure' scene=''> | <StructureSection load='3rec' size='340' side='right' caption='Caption for this structure' scene=''> | ||
- | + | Examples below interact with the structure in the Jmol applet on the page. __TOC__ | |
+ | ==jmolLink== | ||
The code below will create a green link (Proteopedia's links that interact with applets are green) with the text 'label atoms' that will execute the script inside <script> and </script>. These are simple examples. You may use longer scripts. | The code below will create a green link (Proteopedia's links that interact with applets are green) with the text 'label atoms' that will execute the script inside <script> and </script>. These are simple examples. You may use longer scripts. | ||
<pre> | <pre> | ||
Line 18: | Line 19: | ||
</jmolLink> | </jmolLink> | ||
</jmol> | </jmol> | ||
- | + | ==jmolButton== | |
- | + | ||
Replacing 'jmolLink' by 'jmolButton' will draw a button. | Replacing 'jmolLink' by 'jmolButton' will draw a button. | ||
<pre> | <pre> | ||
Line 36: | Line 36: | ||
</jmolButton> | </jmolButton> | ||
</jmol> | </jmol> | ||
- | + | ==jmolCheckbox== | |
The code below draws this checkbox <jmol> | The code below draws this checkbox <jmol> | ||
<jmolCheckbox> | <jmolCheckbox> |
Revision as of 03:56, 14 July 2020
Plain examples for JSMolExtension
|