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-02-04, 1271🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1003904 Names: InChIKey: KWDNDBSQLVBZLH-UHFFFAOYS A-NSMILES: CCc4nc(C(N)=O...
Molecule Summary: ID: FYI-1001998 SMILES: CCCCC/C=C\\C/C=C\\CCCCCC CCC(OC(=O)CCCN(C)C)CCCCC CCC/C=C\\C...
How Stereoinformation is stored in in SDF/Mol V3000 files? Similar to SDF/Mol V2000, stereoinformati...
Molecule Summary: ID: FYI-1003342 Names: InChIKey: NTXXOGIVSCRKCK-CLFYSBASS A-NSMILES: Cn1c(=S)[nH]c...
Molecule Summary: ID: FYI-1003650 Names: InChIKey: ZIALKIFASOMNPG-UHFFFAOYS A-NSMILES: CC(C)C(=O)c4c...