Fixup index.html from es6 module.

This commit is contained in:
Alex Ford
2025-05-07 15:41:27 +00:00
parent 1b546cac34
commit a6224bc549

View File

@@ -60,6 +60,10 @@
viewer.addCylinder({start: {chain: "B", resi: 23, atom: "NE1"}, end: {chain: "A", resi: 54, atom: "O"}, dashed: true,color:'#FFFAA0',fromCap:'round',toCap:'round'});
};
// bind callbacks to window object so they can be resolved in autoload
window.initShapes = initShapes;
window.init1YCR = init1YCR;
const addSurf = function (viewer) {
viewer.addSurface($3Dmol.SurfaceType.VDW, { opacity: 0.75 },
{ hetflag: false }, { hetflag: false }, { chain: 'B' });