Proteopedia:DIY:Macros
From Proteopedia
(Difference between revisions)
m |
m |
||
| Line 21: | Line 21: | ||
<script> | <script> | ||
script /mc/ktheis.spt; | script /mc/ktheis.spt; | ||
| - | if (~bobble) | + | if (~bobble); ~bobble=false; exit; else; bobble(); ~bobble=true; endif; |
</script> | </script> | ||
<text>Toggle Bobble on/off</text> | <text>Toggle Bobble on/off</text> | ||
| Line 35: | Line 35: | ||
<script> | <script> | ||
script /mc/ktheis.spt; | script /mc/ktheis.spt; | ||
| - | if (~bobble) | + | if (~bobble); ~bobble=false; exit; else; bobble(); ~bobble=true; endif; |
</script> | </script> | ||
<text>Toggle Bobble on/off</text> | <text>Toggle Bobble on/off</text> | ||
Revision as of 02:32, 4 January 2021
Macros as a tool
Macros can be used in Proteopedia pages to call commonly used JSmol code. Macro functions can take parameters so that the code is general but can act on the specified item or items. Additional macros can be made.
This page is meant to be a resource for finding and using macros.
| |||||||||||
