--> add a loading progress when page loads
-> order of the cams is a bit random
-> disk usage at bottom
-> make camera frames positions configurable
# timeout in seconds to wait for responses when contacting a remote server
REMOTE_REQUEST_TIMEOUT = 10
+
+# timeout in seconds to wait for an access to a mjpg client before removing it
+MJPG_CLIENT_TIMEOUT = 10
vertical-align: middle;
}
+img.main-loading-progress {
+ display: block;
+ margin: auto;
+ margin-top: 50px;
+}
+
/* settings */
updateConfigUi();
}
- recreateCameraFrames(cameras);
+ var mainLoadingProgressImg = $('img.main-loading-progress');
+ if (mainLoadingProgressImg.length) {
+ mainLoadingProgressImg.animate({'opacity': 0}, 200, function () {
+ recreateCameraFrames(cameras);
+ mainLoadingProgressImg.remove();
+ });
+ }
+ else {
+ recreateCameraFrames(cameras);
+ }
});
}
</div>
{% endif %}
<div class="page-container">
+ <img class="main-loading-progress" src="{{STATIC_URL}}img/main-loading-progress.gif">
</div>
<div class="footer">
copyright © Calin Crisan 2013