Add status.xul to $(DIST)/bin/res/samples

This commit is contained in:
law%netscape.com 1999-02-27 01:35:05 +00:00
parent 06368ef067
commit 0001d24680
2 changed files with 9 additions and 4 deletions

View File

@ -65,6 +65,7 @@ install:: $(DLL)
$(MAKE_INSTALL) $(DLL) $(DIST)\bin
$(MAKE_INSTALL) appshell.html $(DIST)\bin\res\samples
$(MAKE_INSTALL) status.html $(DIST)\bin\res\samples
$(MAKE_INSTALL) status.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) toolbar.xml $(DIST)\bin\res\samples
$(MAKE_INSTALL) BrowserInitPage.html $(DIST)\bin\res\samples
$(MAKE_INSTALL) sidebar.html $(DIST)\bin\res\samples
@ -75,6 +76,7 @@ clobber::
rm -f $(DIST)\bin\$(DLLNAME).dll
rm -f $(DIST)\res\samples\appshell.html
rm -f $(DIST)\res\samples\status.html
rm -f $(DIST)\res\samples\status.xul
rm -f $(DIST)\res\samples\BrowserInitPage.html
rm -f $(DIST)\res\samples\sidebar.html
rm -f $(DIST)\res\samples\xul.css

View File

@ -9,15 +9,18 @@
<html:script>
var mode = "undetermined";
function kickProgressMeter() {
var meter = document.getElementByID("meter");
dump( "Meter was mode=" + meter.getAttribute("mode") + " value=" + meter.getAttribute("value") + "\n" );
if ( mode == "undetermined" ) {
mode = "normal";
var random = Math.round( Math.random() * 100 )
var meter = document.getElementByID("meter");
alert( "meter is " + meter );
dump("Setting meter to (" + mode + ") " + random.toString() + "\n" );
meter.setAttribute( "value", random.toString() );
} else {
mode = "undetermined";
dump("Setting meter to (undetermined)\n");
}
meter.setAttribute( "mode", mode );
}
</html:script>
@ -32,13 +35,13 @@
</html:button>
</html:td>
<html:td html:WIDTH="15%" html:nowrap html:style="border: 1px inset rgb(192,192,192);">
<progressmeter id="meter" value="61" mode="normal">
<progressmeter id="meter" mode="normal" value="61">
<observes element="Browser:LoadingProgress" attribute="value" />
<observes element="Browser:LoadingProgress" attribute="mode" />
</progressmeter>
</html:td>
<html:td html:WIDTH="82%" html:nowrap html:style="border: 1px inset rgb(192,192,192);">
Document done (even a stopped clock is right twice a day)
Document: Done (even a stopped clock is right twice a day)
</html:td>
</html:tr>
</html:table>