Skip to content

Commit

Permalink
fixes to demo disabling checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
ostueker committed Nov 18, 2016
1 parent 373dbc3 commit 906ecbd
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions jmol_inline.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,38 +140,32 @@ <h1>JSmol Demo (load inline)</h1>
</script>

<ul>
<li> set of controls (uses function "set_checkbox_state(state)"):</li>
<li>First set of controls (uses function "set_checkbox_state(state)"):</li>
<li><input type="radio" name="surface1" checked="checked"
onclick="Jmol.script(myJmol, 'isosurface off;'); set_checkbox_state('off');" />&nbsp;Surface off</li>
<li><input type="radio" name="surface1"
onclick="Jmol.script(myJmol, 'isosurface vdw;'); set_checkbox_state('on');" />&nbsp;Van der Waals Surface</li>
<li><input type="radio" name="surface1"
onclick="Jmol.script(myJmol, 'isosurface solvent;'); set_checkbox_state('on');" />&nbsp;Solvent Accessible Surface</li>
<li><input class="surfacebox" type="checkbox" disabled="true"
onclick="Jmol.script(myJmol, 'isosurface translucent 0.5;')" />&nbsp;Translucent Surface</li>
onclick="Jmol.script(myJmol, 'isosurface translucent 0.5;')" />&nbsp;Translucent Surface
</li>
<li><input class="surfacebox" type="checkbox" disabled="true"
onclick="Jmol.script(myJmol, 'isosurface map mep;')" />&nbsp;Electrostatic Potential</li>

</ul>

<ul>
<li>Another set of controls (uses function "set_checkbox_state_class(state, cls)"):</li>
<li>Second set of controls (uses function "set_checkbox_state_class(state, cls)"):</li>
<li><input type="radio" name="surface2" checked="checked"
onclick="Jmol.script(myJmol, 'isosurface off;'); set_checkbox_state_class('off', 'surf2');" />&nbsp;Surface off
</li>
onclick="Jmol.script(myJmol, 'isosurface off;'); set_checkbox_state_class('off', 'surf2');" />&nbsp;Surface off</li>
<li><input type="radio" name="surface2"
onclick="Jmol.script(myJmol, 'isosurface vdw;'); set_checkbox_state_class('on', 'surf2');" />&nbsp;Van der Waals Surface
</li>
onclick="Jmol.script(myJmol, 'isosurface vdw;'); set_checkbox_state_class('on', 'surf2');" />&nbsp;Van der Waals Surface</li>
<li><input type="radio" name="surface2"
onclick="Jmol.script(myJmol, 'isosurface solvent;'); set_checkbox_state_class('on', 'surf2');" />&nbsp;Solvent Accessible Surface
</li>
onclick="Jmol.script(myJmol, 'isosurface solvent;'); set_checkbox_state_class('on', 'surf2');" />&nbsp;Solvent Accessible Surface</li>
<li><input class="surfacebox surf2" type="checkbox" disabled="true"
onclick="Jmol.script(myJmol, 'isosurface translucent 0.5;')" />&nbsp;Translucent Surface
</li>
onclick="Jmol.script(myJmol, 'isosurface translucent 0.5;')" />&nbsp;Translucent Surface</li>
<li><input class="surfacebox surf2" type="checkbox" disabled="true"
onclick="Jmol.script(myJmol, 'isosurface map mep;')" />&nbsp;Electrostatic Potential
</li>

onclick="Jmol.script(myJmol, 'isosurface map mep;')" />&nbsp;Electrostatic Potential</li>
</ul>


Expand Down

0 comments on commit 906ecbd

Please sign in to comment.