web: add loading mask
Add a loading mask that hides the loading of the interface with some text and a nice ajax spinner. The situation can be further improved by loading all of the scripts and other resources dynamically, which will be added later.
This commit is contained in:
parent
07b6db0c98
commit
0c3d2322cc
|
@ -11,6 +11,36 @@ input {
|
||||||
color: Black;
|
color: Black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#loading-mask {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 20000;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loading {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
padding: 2px;
|
||||||
|
z-index: 20001;
|
||||||
|
height: auto;
|
||||||
|
margin: -35px 0 0 -30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loading .loading-indicator {
|
||||||
|
background: url('../images/loading.gif') no-repeat;
|
||||||
|
color: #555;
|
||||||
|
font: 24px "UbuntuBeta Regular",Ubuntu,"Bitstream Vera Sans","DejaVu Sans",Tahoma,sans-serif;
|
||||||
|
padding: 2px 42px;
|
||||||
|
margin: 0;
|
||||||
|
text-align: center;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.x-deluge-main-panel {
|
.x-deluge-main-panel {
|
||||||
background-image: url('../icons/deluge.png');
|
background-image: url('../icons/deluge.png');
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
|
@ -31,7 +31,12 @@
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div style="background-image: url('${base}resources/themes/images/default/tree/loading.gif');"></div>
|
<div id="loading-mask"></div>
|
||||||
|
<div id="loading">
|
||||||
|
<div class="loading-indicator">
|
||||||
|
Loading...
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Preload icon classes -->
|
<!-- Preload icon classes -->
|
||||||
<div class="ext-mb-error"></div>
|
<div class="ext-mb-error"></div>
|
||||||
|
|
|
@ -99,6 +99,8 @@ deluge.ui = {
|
||||||
|
|
||||||
deluge.client.on('connected', function(e) {
|
deluge.client.on('connected', function(e) {
|
||||||
deluge.login.show();
|
deluge.login.show();
|
||||||
|
Ext.get('loading').remove();
|
||||||
|
Ext.get('loading-mask').fadeOut({remove:true});
|
||||||
}, this, {single: true});
|
}, this, {single: true});
|
||||||
|
|
||||||
this.update = Ext.bind(this.update, this);
|
this.update = Ext.bind(this.update, this);
|
||||||
|
|
Loading…
Reference in New Issue