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, 729🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1003618 Names: InChIKey: FCXTXGWIQGHISV-JXMROGBWS A-NSMILES: N#C/C(=C\\c2c...
Molecule Summary: ID: FYI-1001832 SMILES: COc1ccc(Cl)cc1C(=O)NCCc1 ccc(cc1)S(=O)(=O)[NH2+]C (=O)NC1CCC...
Molecule Summary: ID: FYI-1001001 SMILES: C#CC#CCN1NC(C(O)[NH2+]CC (C)(C)C)C2CC=CC=C21Received at FY...
Molecule Summary: ID: FYI-1001430 SMILES: FC(F)(F)OC1=CC(=CC(Br)=C 1)C(=O)N[C@@H](C)C2N(N=C N=2)C3C=C(...
Molecule Summary: ID: FYI-1003101 Names: InChIKey: MTBZCEGVUKTPLQ-UHFFFAOYS A-NSMILES: NC(=O)c3ccc(c...