Collections:
Assign Embedded 3Dmol Viewer to DIV
How to assign Embedded 3Dmol Viewer to a "div" element?
✍: FYIcenter.com
Here is an HTML code example, Embedded-Viewer-PDB.html, that
assigns the Embedded 3Dmol Viewer to in "div" element.
It also uses "data-*" attributes to load a protein from the PDB Websites,
creates a selection from chain A and displays it in cartoon style.
<html><head> <script src="/3Dmol-min.js"></script> </head> <body> <div style="width: 400px; height: 400px; position: relative;" class="viewer_3Dmoljs" data-pdb="1YCR" data-select='chain:A' data-style='cartoon:color=spectrum' data-ui="true" /> </body></html>
This example HTML code will display a PDB protein in cartoon style:
Note that the protein structure data is downloaded with the following PDB API:
http://files.rcsb.org/view/{PDB_ID}.pdb
⇒ Multiple Selections with Embedded 3Dmol Viewer
⇐ What Is Embedded 3Dmol Viewer
⇑⇑ 3Dmol.js FAQ
2023-01-30, 726🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1006577 Names: InChIKey: RWQBIJSDCMGSJV-UHFFFAOYS A-NSMILES: CCN(CC)CCCC(C...
Molecule Summary: ID: FYI-1001181 SMILES: CO/C(=C\\c1ccc(O)c(OC)c1 )C(=O)NCCc2c[nH]cn2Received at FY...
Molecule Summary: ID: FYI-1000336 SMILES: CC(=C)C1CCC2(C1C3CCC4C5( CCC(=O)C(C5CCC4(C3(CC2)C )C)(C)C)C)...
How to calulate the exact mass of molecule from a formula? To help you calculating the exact mass fo...
Molecule Summary: ID: FYI-1004785 Names: InChIKey: HYMZAYGFKNNHDN-SSDVNMTOS A-NSMILES: COc2cccc(/C=N...