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, 556🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1002096 Names: InChIKey: QTBSBXVTEAMEQO-UHFFFAOYS A-NSMILES: CC(=O)O Recei...
Molecule Summary: ID: FYI-1000324 SMILES: C[C@@](c1cc(cc(c1)F)F)(C (=O)OC)NReceived at FYIcenter.com...
Molecule Summary: ID: FYI-1000208 SMILES: Cc3ccc(NC(=O)c2ccc(CN1CC N(C)CC1)cc2)cc3Nc5nccc(c 4cccnc4)n5...
Molecule Summary: ID: FYI-1004021 Names: InChIKey: KYGDFYAYDFGOTK-UHFFFAOYS A-NSMILES: O=N(=O)c3ccc(...
Molecule Summary: ID: FYI-1002955 Names: InChIKey: FAKRSMQSSFJEIM-RQJHMYQMS A-NSMILES: C[C@H](CS)C(=...