Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #778

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ See the [documentation](https://3dmol.org/doc/index.html) to learn how to use 3D

### [HTML](https://3dmol.org/doc/tutorial-embeddable.html)

<img src="examples/embed.png" width=400>

```html
<script src="https://3Dmol.org/build/3Dmol-min.js"></script>

<div style="width: 400px; height: 400px;"
class='viewer_3Dmoljs' data-pdb='4N8T' data-style='cartoon:color=spectrum'
data-surface='opacity:.7;color:white'></div>
```
![Alt Text](examples/embed.png | width=400)

#### JavaScript
We support the use of both PDB queries as well as PDB files.
Expand Down
Loading