--> add a motion running status indicator (and maybe a start/stop button)
-> better ajax error handling
--> add a messaging mechanism
-> authentication
-> browser compatibility test
-> requirements test
+-> add a motion running status indicator (and maybe a start/stop button)
-> other todos
font-size: 0.9em;
}
+
+ /* popup message */
+
+div.popup-message-container {
+ position: fixed;
+ display: none;
+ z-index: 9999;
+ background-color: #313131;
+ border-radius: 3px;
+ opacity: 0;
+ padding: 5px;
+ box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
+ top: 60px;
+}
+
+span.popup-message {
+
+}
+
+span.popup-message.info {
+ color: white;
+}
+
+span.popup-message.error {
+ color: #FF6D55;
+}
+
/* misc */
content.find('div.button.default').focus();
}
}
+
+
+ /* popup message */
+
+function showPopupMessage(message, type) {
+ var container = $('div.popup-message-container');
+ var content = $('<span class="popup-message"></span>');
+
+ if (window._popupMessageTimeout) {
+ clearTimeout(window._popupMessageTimeout);
+ }
+
+ content.html(message);
+ content.addClass(type);
+ container.html(content);
+
+ var windowWidth = $(window).width();
+ var messageWidth = container.width();
+
+ container.css('display', 'block');
+ container.css('left', (windowWidth - messageWidth) / 2);
+
+ container.animate({'opacity': '1'}, 200);
+
+ window._popupMessageTimeout = setTimeout(function () {
+ window._popupMessageTimeout = null;
+ container.animate({'opacity': '0'}, 200, function () {
+ container.css('display', 'none');
+ });
+ }, 5000);
+}
copyright © Calin Crisan 2013
</div>
</div>
+ <div class="popup-message-container"></div>
<div class="modal-glass"></div>
<div class="modal-container"></div>
{% endblock %}