Molecular Playground/Procedures: Difference between revisions

From Proteopedia
Jump to navigationJump to search
Eric Martz (talk | contribs)
Eric Martz (talk | contribs)
Line 122: Line 122:
<li>
<li>
'''Specify ''proteopediaStateScript'':''' In your script ''MP_yourMolecule.spt'' is the variable ''proteopediaStateScript'' that specifies the filepath for your state script on the Proteopedia server. Go to the page where you developed your molecular scene, and display your scene in Jmol on that page. Click on the word ''Jmol'' to the lower right of the molecule, to raise Jmol's menu. On the menu, click on '''Show, History'''. The white ''Jmol Script Console'' will open, showing the filepath. Copy only the part beginning "/wiki...", and excluding the word "script" and the semicolon at the end. Paste it between the double quotes for the value of ''proteopediaStateScript''. On Macs, you will need to drag the blocked filepath and drop it into your [[Help:Plain text editors|text editing program]]. For a concrete example of what this should look like, see [http://proteopedia.org/wiki/images/5/54/MP_relenza03.spt MP_relenza03.spt].
'''Specify ''proteopediaStateScript'':''' In your script ''MP_yourMolecule.spt'' is the variable ''proteopediaStateScript'' that specifies the filepath for your state script on the Proteopedia server. Go to the page where you developed your molecular scene, and display your scene in Jmol on that page. Click on the word ''Jmol'' to the lower right of the molecule, to raise Jmol's menu. On the menu, click on '''Show, History'''. The white ''Jmol Script Console'' will open, showing the filepath. Copy only the part beginning "/wiki...", and excluding the word "script" and the semicolon at the end. Paste it between the double quotes for the value of ''proteopediaStateScript''. On Macs, you will need to drag the blocked filepath and drop it into your [[Help:Plain text editors|text editing program]]. For a concrete example of what this should look like, see [http://proteopedia.org/wiki/images/5/54/MP_relenza03.spt MP_relenza03.spt].
</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:
<pre>
<jmol>
<jmolButton>
<script>
script "/wiki/images/6/6c/MP_relenza01.spt"
</script>
<text>Add Banner</text>
</jmolButton>
</jmol>
</pre>
</li><li>
</li><li>
'''Upload your script:''' At Proteopedia, click on ''Upload file'' in the toolbox on the left side of every page. Use the ''Choose File'' button to select MP_yourMolecule.spt. You don't need to change anything else on the page. (Optionally, in the Summary box, enter the title of the permanent page in Proteopedia where you will display the scene.) Click the button ''Upload file''.
'''Upload your script:''' At Proteopedia, click on ''Upload file'' in the toolbox on the left side of every page. Use the ''Choose File'' button to select MP_yourMolecule.spt. You don't need to change anything else on the page. (Optionally, in the Summary box, enter the title of the permanent page in Proteopedia where you will display the scene.) Click the button ''Upload file''.
</li><li>
</li><li>
'''Get the hash code:''' After uploading your script, you will be at a new page with the title ''Image:MP_yourMolecule.spt''. On that page, click on the link
'''Get the filepath to your uploaded script:''' After uploading your script, you will be at a new page with the title ''Image:MP_yourMolecule.spt''. On that page, right-click on the link to MP_yourMolecule.spt, near the top, and "Copy Link".
</li><li>
'''Paste the script filepath into a button:'''
</li>
</li>
</ol>
</ol>