Patches for getting resizable applet and text panels in Jmol 10.2 and 11.0.x

Rationale:

The automatic resizing of applet is done by a combination of CSS and applet size in percent. This latter was not available in versions of Jmol.js before 11.1.20

Patches:

Instructions for installing the patches:

Method: Rather than replacing the original Jmol.js, we will add a second .js file that will overwrite some of the code in the original. In this way, Jmol.js can be updated in the future without the need to edit it again. Once the updated Jmol.js includes the functionality, just remove the call to the second .js file.

Procedure:

  1. Put the patch file you have downloaded in the same folder as the original Jmol.js file.
  2. In every html page where Jmol.js is invocated, add a similar call to the patch file.

Example:

if your page used

<head>
<script src="../Jmol.js" type="text/javascript"></script>
</head>

it must be changed into

<head>
<script src="../Jmol.js" type="text/javascript"></script>
<script src="../Jmol_11_resizable.js" type="text/javascript"></script>
</head>