User:Eric Martz/Sandbox 17
From Proteopedia
(Difference between revisions)
Line 39: | Line 39: | ||
Proteopedia's wiki lacks Template:Font_color: {{font color|red|red text?}}. | Proteopedia's wiki lacks Template:Font_color: {{font color|red|red text?}}. | ||
- | 6. I tried an indirect method to color caption text, | + | 6. I tried an indirect method to color caption text. This page saves in Proteopedia, and the JSmol variable captext prints correctly. I can't tell if my assignment to the Javascript variable captext is working. The caption does not display. There are no JSmol errors. There are Javascript warnings, but not errors. |
- | + | ||
<jmol> | <jmol> | ||
<jmolLink> | <jmolLink> | ||
<script> | <script> | ||
script "http://proteopedia.org/wiki/images/6/69/Colortext.spt" | script "http://proteopedia.org/wiki/images/6/69/Colortext.spt" | ||
+ | # captext JSmol variable is only for testing. | ||
+ | captext = "Words with " + colortext("some red", "red") + " in this caption." | ||
javascript captext = "Words with " + colortext("some red", "red") + " in this caption." | javascript captext = "Words with " + colortext("some red", "red") + " in this caption." | ||
capcmd = "changeCaption(captext, '', '')" | capcmd = "changeCaption(captext, '', '')" |
Revision as of 20:01, 19 December 2020
PNGJ scene and caption tests
|