User:Eric Martz/Sandbox 17: Difference between revisions

From Proteopedia
Jump to navigation Jump to search
Eric Martz (talk | contribs)
No edit summary
Eric Martz (talk | contribs)
No edit summary
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 22:00, 19 December 2020

PNGJ scene and caption testsPNGJ scene and caption tests


This page created 2020/12/16 after Jaim made changes to enable caption editing.


1. . This loads Image:6zgi-cavities.pngj


When scene 1 was re-loaded, the caption DID APPEAR for editing, but in JSmol, the isosurfaces from the PNGJ file were not displayed.


2. .


As in the SAT, the isosurfaces in the PNGJ file have disappeared. But the edited caption appears correctly.


3. , after further fixes by Jaim (2020-12-17).


BOTH SCENE AND CAPTION ARE CORRECT. HURRAY!


Scenes 4 and 5 use Image:6zgi-membrane-proximal-cavity-jmol-cr2.5.pngj.


4. . These isosurfaces take several minutes to calculate, but when saved as JVXL files, then loaded from the files and cached, and that saved into a new PNGJ file, the results appear in about one second!


5. This green link runs a JSmol script, loading the PNGJ file, and writing the caption directly.

I have not been able to devise a method to color text in the caption. Anything with < or > creates an XML error (page cannot be saved). Using e.g. &lt; can be saved, but confuses JSmol which expects a new command after the ';'.

Proteopedia's wiki lacks Template:Font_color: red text?.

6. I tried a fancy method but a JSmol string variable does not seem to be passed to the Javascript function changeCaption():



Drag the structure with the mouse to rotate