On Mon, Nov 25, 2013 at 10:35 AM, Angel Herráez <[email protected]>wrote:

> > That would be tricky to do without going into the JSmol code
> > and changing it directly. Do so only if you do not worry about future
> > JSmol updates.
>
> It should be possible to chenge that using a CSS rule that overrides
> what is set in source code. You just need to identify the ID of the
> element. And maybe add the "important" keyword to impose your rule.
>
>
The opacity is generated dynamically (It fades out from 55% to 0% over a
number of milliseconds). There are settings for that, but as I mentioned,
the loading of this code is done dynamically, so nothing you can do prior
to its running will change that. The whole idea is that it is a class
loader monitor, after all!

But there is a way. Somewhat of a hack, but this works, anywhere after
Jmol.min.js is loaded:

    Jmol.__nextExecution = function(trigger) {
        var es = Jmol._execStack;
      if (es.length == 0)
          return;
      if (!trigger) {
            Jmol._execLog += ("settimeout for " + es[0][0]._id + " " +
es[0][3] + " len=" + es.length + "\n")
          setTimeout("Jmol.__nextExecution(true)",10)
          return;
      }

    if (self.ClazzLoaderProgressMonitor) {
     ClazzLoaderProgressMonitor.DEFAULT_OPACITY = 200;
    }

      var e = es.shift();
      Jmol._execLog += "executing " + e[0]._id + " " + e[3] + "\n"
        e[1](e[0],e[2]);
    };





------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to