User:Angel Herraez/Sandbox 2
From Proteopedia
< User:Angel Herraez(Difference between revisions)
(2 intermediate revisions not shown.) | |||
Line 9: | Line 9: | ||
</jmol> | </jmol> | ||
- | + | These controls are inserted directly, as wiki extension tags: | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
<jmol> | <jmol> | ||
<jmolCheckbox> | <jmolCheckbox> | ||
- | <scriptWhenChecked> | + | <scriptWhenChecked>spacefill on</scriptWhenChecked> |
- | <scriptWhenUnchecked> | + | <scriptWhenUnchecked>spacefill off</scriptWhenUnchecked> |
- | <text> | + | <text>spacefill on/off</text> |
</jmolCheckbox> | </jmolCheckbox> | ||
</jmol> | </jmol> | ||
- | |||
<jmol> | <jmol> | ||
Line 41: | Line 31: | ||
</jmol> | </jmol> | ||
- | These 3 controls are inserted | + | |
+ | <jmol> | ||
+ | <jmolLink> | ||
+ | <script>select NAD; spacefill 50%; select all; isosurface myS select(NAD) ignore(not NAD) molecular; | ||
+ | </script> | ||
+ | <text>Prepare Surface</text> | ||
+ | </jmolLink> | ||
+ | </jmol> | ||
+ | (wait until the hourglass cursor disappears, then try the following controls) | ||
+ | |||
+ | These 3 controls are inserted using templates: | ||
{{Button Toggle Surface}} · | {{Button Toggle Surface}} · | ||
{{Link Toggle Surface}} · {{Checkbox Toggle Surface}} | {{Link Toggle Surface}} · {{Checkbox Toggle Surface}} | ||
- | (The | + | |
+ | (The checkboxes AGAIN are working properly -- the key is to have a function setupCheckboxShiftClick() | ||
+ | that overrides the one included in wikibits.js |
Current revision
Testing some templates
Drag the structure with the mouse to rotate |
These controls are inserted directly, as wiki extension tags:
(wait until the hourglass cursor disappears, then try the following controls)
These 3 controls are inserted using templates:
· ·
(The checkboxes AGAIN are working properly -- the key is to have a function setupCheckboxShiftClick() that overrides the one included in wikibits.js