The feature sounds cool, Bob!
Dave
On 6 March 2013 11:32, Robert Hanson <[email protected]> wrote:
> Here's a first shot:
>
> http://chemapps.stolaf.edu/jmol/jsmol/cover.htm
>
> It's not perfect, but I think it's a start. Basically, it adds several
> more Info items:
> coverImage: null, // URL for image to display
> coverTitle: "", // tip that is displayed before model starts
> to load
> coverCommand: "", // Jmol command executed upon clicking image
> deferApplet: false, // true == the model should not be loaded
> until the image is clicked
> deferUncover: false, // true == the image should remain until
> command execution is complete
>
> I think that should cover most of the interesting cases.
> Code is in http://chemapps.stolaf.edu/jmol/jsmol.zip
>
> Bob
>
>
> On Tue, Mar 5, 2013 at 9:40 AM, Robert Hanson <[email protected]> wrote:
>
>> Would it be reasonable to add to Info an option to have and initial cover
>> image that is replaced upon clicking with whatever the results of a
>> command are?
>>
>> Info {
>> ...
>> coverImage: "xxxxxx.png",
>> coverCommand: "load xxxxx.png"
>>
>> }
>>
>> or something like that?
>>
>> Bob
>>
>>
>> --
>> 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
>
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users