mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-07 21:43:24 +00:00
Add status.xul to $(DIST)/bin/res/samples
This commit is contained in:
parent
06368ef067
commit
0001d24680
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user