Collections:
Load Data by URL into Embedded 3Dmol Viewer
How to load data by URL into the Embedded 3Dmol Viewer?
✍: FYIcenter.com
You can use "data-href" and "data-type" attributes on the DIV element
to load molecule data from a URL into the Embedded 3Dmol Viewer.
Here is an HTML code example, Embedded-Viewer-data-href.html, that loads a Benzene molecule in SDF format with a URL:
<html> <body> <div style="width: 400px; height: 400px; position: relative;" class="viewer_3Dmoljs" data-href="https://3dmol.org/tests/test_structs/benzene.sdf" data-type="sdf" data-style='stick' data-surface='opacity:.7;color:white' data-ui="true" ></div> <script src="/3Dmol-min.js"></script> </body></html>
This example HTML code will displays the Benzene molecule structure:
⇒ Load Data from Another HTML Element
⇐ 3Dmol.js Bug - data-ui=true Impacts on Selection
⇑⇑ 3Dmol.js FAQ
2023-09-10, 817🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1004215 Names: InChIKey: KUPLEGDPSCCPJI-UHFFFAOYS A-NSMILES: CCCCCCCCCCCCC...
Molecule Summary: ID: FYI-1000317 SMILES: O=C(Nc1ccccc1CN1CCCC1)C( =O)N1CCCCCCC1Received at FYIcente...
Molecule Summary: ID: FYI-1002235 Names: InChIKey: BBAOHIALRKLBRD-UHFFFAOYS A-NSMILES: CC(N)C(=O)NC(...
Molecule Summary: ID: FYI-1001429 SMILES: N#CC1C=NC(=CC=1)C2=C(N=C C=N2)[C@H](C)NC(=O)C3C=C (C=C(OC(F)...
Molecule Summary: ID: FYI-1002257 Names: InChIKey: AVYKQOAMZCAHRG-UHFFFAOYS A-NSMILES: CCO[Si](CCC(F...