Difference between revisions of "Loading Notice"

From Jmol
Jump to navigation Jump to search
(Create the section)
 
(While the model is loading (after Jmol has finished loading))
Line 7: Line 7:
  
 
== While the model is loading (after Jmol has finished loading) ==
 
== While the model is loading (after Jmol has finished loading) ==
.
+
 
 +
jmolApplet("100%", "script pre.txt; load file.pdb; script post.txt")
 +
 
 +
'''pre.txt'''
 +
<pre>
 +
zap;
 +
set echo middle center;
 +
font echo 18 sanserif bold;
 +
color echo navy;
 +
echo Molecule loading||It will take a few seconds,|depending on molecule complexity|and your connection speed||Please wait...;
 +
delay 0.1;
 +
</pre>
 +
 
 +
 
 +
'''post.txt'''
 +
<pre>
 +
wireframe off;
 +
spacefill off;
 +
set hoverDelay 0.1;
 +
set echo middle center;
 +
font echo 14 sanserif bold;
 +
color echo background [xA6CAF0];
 +
color echo navy;
 +
echo Molecule loaded||Click here to turn off this warning|and then use the available controls|to select parts of the molecule|and change its visualization;
 +
set echo middle script "set echo off";
 +
</pre>
 +
 
 +
 
 +
'''simpler post.txt'''
 +
<pre>
 +
set echo middle center;
 +
font echo 16 sanserif bold;
 +
color echo navy;
 +
echo Use the available controls|to select a molecule|and change its visualization;
 +
</pre>

Revision as of 01:01, 11 June 2008

How to provide a 'please wait' notice while JmolApplet is loading

Please, feel free to share here your tricks for showing a "please, wait" kind of notice so that users get some feedback that the JmolApplet is loading.

While Java and Jmol are loading

.

While the model is loading (after Jmol has finished loading)

jmolApplet("100%", "script pre.txt; load file.pdb; script post.txt")

pre.txt

zap;
set echo middle center;
font echo 18 sanserif bold;
color echo navy;
echo Molecule loading||It will take a few seconds,|depending on molecule complexity|and your connection speed||Please wait...;
delay 0.1;


post.txt

wireframe off;
spacefill off;
set hoverDelay 0.1;
set echo middle center;
font echo 14 sanserif bold;
color echo background [xA6CAF0];
color echo navy;
echo Molecule loaded||Click here to turn off this warning|and then use the available controls|to select parts of the molecule|and change its visualization;
set echo middle script "set echo off";


simpler post.txt

set echo middle center;
font echo 16 sanserif bold;
color echo navy;
echo Use the available controls|to select a molecule|and change its visualization;

Contributors

Ted, AngelHerraez, Ceroni