Giter Club home page Giter Club logo

Comments (8)

RitwikGupta avatar RitwikGupta commented on June 1, 2024

The code is we use is:

<div class='viewer_3Dmoljs' data-href='/static/data/FILE.mol2' data-type='mol2' data-backgroundcolor='0xffffff' data-style='stick'></div>

and

<div class='viewer_3Dmoljs' data-href='/static/data/FILE.sdf' data-type='sdf' data-backgroundcolor='0xffffff' data-style='stick'></div>

from 3dmol.js.

dkoes avatar dkoes commented on June 1, 2024

I can't reproduce this. Are you using the latest and greatest 3Dmol.js?

Showing hydrogens is the default for everything but pdb files (cause I don't like it for pdb files). Hiding hydrogens wasn't working for sdf and mol2s though I just committed a fix.

from 3dmol.js.

RitwikGupta avatar RitwikGupta commented on June 1, 2024

We're using the No-jQuery verison of 3dMol, because it's conflicting with jQuery if we import it ourselves separately.

from 3dmol.js.

RitwikGupta avatar RitwikGupta commented on June 1, 2024

Testing it with the latest build of 3Dmol.js from http://3dmol.csb.pitt.edu/build/3Dmol.js fixes the issue, but it breaks jQuery otherwise due to namespace conflicts.

from 3dmol.js.

dkoes avatar dkoes commented on June 1, 2024

Why not use the nojquery version? Are you saying that the most recent nojquery version doesn't work but the jquery included one does?

from 3dmol.js.

JoshuaRogan avatar JoshuaRogan commented on June 1, 2024

Switching from the CDN noquery version the hydrogens show.

from 3dmol.js.

RitwikGupta avatar RitwikGupta commented on June 1, 2024

That fixed it! We changed from

<script src="http://cdn.jsdelivr.net/3dmol.js/latest/3Dmol-nojquery-min.js"></script>

to

<script src="http://3Dmol.csb.pitt.edu/build/3Dmol-nojquery.js"></script>

for our CDN and that fixed everything.

from 3dmol.js.

dkoes avatar dkoes commented on June 1, 2024

Linking to 3dmol.csb.pitt.edu gives the the very latest version. The jsdeliver version is only updated when I tag a release. My recommendation would be to link to the 3dmol version for now as you develop the site. That way if there are any bug fixes or features you need you can pick them up right away. Once your site is in a happy place, I can tag a release, and you can switch to the more stable jsdeliver, CDN hosted version.

from 3dmol.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.