OK, how's this? In Info:
disableJ2SLoadMonitor: false,
disableInitialConsole: false,
Setting the first true disables the red floating class loading messages.
Setting the second true prevents the initial console from showing.
Bob
On Sun, Dec 16, 2012 at 6:27 PM, Robert Hanson <[email protected]> wrote:
> If at all possible, don't mess with the .js files. You need to figure out
> a way to do what you want to do by adding JavaScript to your page, not
> removing it from core files. That will only be a headache.
>
> Here is the way to remove the progress monitor using the current code (to
> be inserted in the page's <head> block):
>
> var lc = LoadClazz;
> LoadClazz = function() {
> lc();
> ClassLoaderProgressMonitor.showStatus = function() {}
> }
>
>
> ======
>
> LoadClazz is a function that JSmol to load the code that is in j2sjmol.js.
> It's in that function that the monitor is set up, so overriding anything in
> that files requires inserting code to run after LoadClazz() is run. Here we
> just save that original function and instead have JSmol
>
> a) run LoadClazz() as lc()
> b) disable the showStatus function, so nothing is displayed
>
>
>
>
> On Sun, Dec 16, 2012 at 3:59 PM, Wayne Decatur <[email protected]> wrote:
>
>> Hi Angel,
>> I had a different project where JSmol would be at the bottom of a long
>> page and so I didn't want the colored loading messages showing in the
>> corner for this one. After looking at the code for
>> 'ClassLoaderProgressMonitor.js', I thought the task of hiding or
>> removing the floating loading messages was going to be much, much easier
>> than covering the loading. But it turned out to not be as simple. In case
>> it helps someone else, or helps Bob add in a toggle for the JSmol
>> initialization, here are my findings. First I placed my ideas that I
>> thought would work but failed and then how I did succeed:
>>
>> Steps to eliminate the floating loading messages, at bottom-left in
>> colored font during JSmol initialization:
>>
>> Failures at what I thought would take only one step:
>> Idea #1)
>> Add "
>> <script>
>> document.getElementById('clazzloader-status').style.display='none';
>> </script>"
>>
>> to near the end of the html page with the Jsmol in it.
>>
>> Idea #2)
>> I thought changing 'z-index:3333' to 'z-index:-1' in
>> 'div.id="clazzloader-status";div.style.cssText="position:absolute;bottom:4px;left:4px;padding:2px
>> 8px;"+"z-index:3333;background-color:#8e0000;color:yellow;"' in
>> 'ClassLoaderProgressMonitor.js' would have worked. It didn't.
>>
>> Idea #3)
>> I thought adding 'display:none' to
>> 'div.id="clazzloader-status";div.style.cssText="position:absolute;bottom:4px;left:4px;padding:2px
>> 8px;"+"z-index:3333;background-color:#8e0000;color:yellow;"' in
>> 'ClassLoaderProgressMonitor.js' would have worked. It didn't.
>>
>>
>>
>> What Worked to remove them:
>> Two steps:
>> Step 1) In 'j2sjmol.js', remove everything between
>> 'if (window["ClazzLoader"] != null) { '
>>
>> and
>>
>> 'var ua = navigator.userAgent.toLowerCase (); '
>>
>> Step 2) In 'JSmol.js' comment out 'ClassLoaderProgressMonitor.showStatus
>> ("Application loaded.", true); '
>>
>> ------------------------------
>> **Date: Wed, 12 Dec 2012 19:11:59 +0100
>> From: " Angel Herr?ez " <[email protected]>
>> Subject: Re: [Jmol-users] JSmol initiatlizing messages
>>
>>
>>
>> Hello Wayne
>>
>> I've done something of the sort in one of my tests.
>> Don't recall the exact details now, but it was along this line:
>>
>> The output "console" that rolls many text lines during initialization
>> is defined in the "Info" object, by default it is located in the same
>> position where the JSmol goes later.
>> I managed to set a different box for that console output, and hide it
>> using css. Then I included (css I think) an animated gif in the
>> original position. When JSmol is ready it automatically covers the
>> image.
>> The problem is the animated gif (progress bar) is jerky, the browser
>> does not animate it nicely because it is doing other many tasks
>> (script loading).
>>
>> The other floating loading messages, at bottom-left in colored font,
>> are separate from this issue and I have not addressed them.
>>
>> Hope it helps,
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>> Remotely access PCs and mobile devices and provide instant support
>> Improve your efficiency, and focus on delivering more value-add services
>> Discover what IT Professionals Know. Rescue delivers
>> http://p.sf.net/sfu/logmein_12329d2d
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Chemistry Department
> 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
>
>
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
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
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users