User:Eric Martz/Sandbox 17

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
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. Colored caption test:
+
6. I tried a fancy method but a JSmol string variable does not seem to be passed to the Javascript function changeCaption():
-
 
+
-
<!-- PAGE SAVES BUT CAPTION LINK DOES NOT WORK. NO JSMOL ERROR MESSAGE.
+
-
 
+
-
<jmol>
+
-
<jmolLink>
+
-
<script>
+
-
script "http://proteopedia.org/wiki/images/6/69/Colortext.spt"
+
-
capcmd = 'changeCaption("Words with " + colortext("some red", "red") + " in this caption.", "", "")'
+
-
javascript @capcmd
+
-
</script>
+
-
<text>Colored caption test.</text>
+
-
</jmolLink>
+
-
</jmol>
+
-
-->
+
-
 
+
<jmol>
<jmol>
Line 67: Line 52:
</jmolLink>
</jmolLink>
</jmol>
</jmol>
-
<!-- PAGE SAVES BUT CAPTION LINK DOES NOT WORK. NO JSMOL ERROR MESSAGE.
 
-
-->
 
- 
</StructureSection>
</StructureSection>

Revision as of 19:00, 19 December 2020

PNGJ scene and caption tests

Drag the structure with the mouse to rotate

Proteopedia Page Contributors and Editors (what is this?)

Eric Martz

Personal tools