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-02-03, 1649🔥, 0💬
Popular Posts:
What are SDF (Structural Data File), or Mol, V2000 format specifications? Here is a summary of SDF/M...
How Stereoinformation is stored in in SDF/Mol V3000 files? Similar to SDF/Mol V2000, stereoinformati...
Molecule Summary: ID: FYI-1001097 SMILES: C1CCC1 Received at FYIcenter.com on: 2021-12-24
Molecule Summary: ID: FYI-1000461 SMILES: [Cl-].C[N+]1=C2C=CC=CC2= C(C2=CC=CC=C12)NCCReceived at FYI...
Molecule Summary: ID: FYI-1000218 SMILES: c2ccc(c1ccccc1)cc2 Received at FYIcenter.com on: 2021-01-0...