From 0001d24680386bbdb9fd6ffb6e16757dcb4b0162 Mon Sep 17 00:00:00 2001 From: "law%netscape.com" Date: Sat, 27 Feb 1999 01:35:05 +0000 Subject: [PATCH] Add status.xul to $(DIST)/bin/res/samples --- xpfe/browser/src/makefile.win | 2 ++ xpfe/browser/src/status.xul | 11 +++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/xpfe/browser/src/makefile.win b/xpfe/browser/src/makefile.win index 0b62c73d658b..3f34960e9088 100644 --- a/xpfe/browser/src/makefile.win +++ b/xpfe/browser/src/makefile.win @@ -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 diff --git a/xpfe/browser/src/status.xul b/xpfe/browser/src/status.xul index 9cfa1158c84e..1058f7e2c881 100644 --- a/xpfe/browser/src/status.xul +++ b/xpfe/browser/src/status.xul @@ -9,15 +9,18 @@ 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 ); } @@ -32,13 +35,13 @@ - + - Document done (even a stopped clock is right twice a day) + Document: Done (even a stopped clock is right twice a day)