Molecular Playground/Procedures: Difference between revisions

From Proteopedia
Jump to navigationJump to search
Eric Martz (talk | contribs)
Eric Martz (talk | contribs)
Line 145: Line 145:
From the <applet .... /> tag, copy the name of the scene, after "name=". From the example [[Molecular Playground/Relenza]], this is
From the <applet .... /> tag, copy the name of the scene, after "name=". From the example [[Molecular Playground/Relenza]], this is
:User:Eric_Martz/Molecular_Playground/Authoring/3ckz_relenza_tyr274/9
:User:Eric_Martz/Molecular_Playground/Authoring/3ckz_relenza_tyr274/9
On '''Macs, copy with Ctrl-C''' not Cmd-C. Paste it into ''MP_yourMolecule.spt'' between the double quotes for the value of ''proteopediaStateScript''. For a concrete example of what this should look like, see [http://proteopedia.org/wiki/images/5/54/MP_relenza03.spt MP_relenza03.spt].
On '''Macs, copy with Ctrl-C''' not Cmd-C. Paste it into the file ''MP_yourMolecule.spt'' between the double quotes for the value of ''proteopediaStateScript''. Now, add '''/wiki/scripts/''' to the beginning, and '''.spt''' to the end. The final product should look similar to this:
:proteopediaStateScript = "/wiki/scripts/User:Eric_Martz/Molecular_Playground/Authoring/3ckz_relenza_tyr274/9.spt"
(which came from the example [http://proteopedia.org/wiki/images/5/54/MP_relenza03.spt MP_relenza03.spt]).
</li><li>
</li><li>
'''Put a button into your web page:''' At the point where you want a button to display your scene, copy and paste the following into the wikitext of your web page:
'''Put a button into your web page:''' At the point where you want a button to display your scene, copy and paste the following into the wikitext of your web page: