]> www.vanbest.org Git - motioneye-debian/commitdiff
added tooltips for sections
authorCalin Crisan <ccrisan@gmail.com>
Sun, 22 Feb 2015 18:44:23 +0000 (20:44 +0200)
committerCalin Crisan <ccrisan@gmail.com>
Sun, 22 Feb 2015 18:44:23 +0000 (20:44 +0200)
static/css/main.css
static/css/ui.css
templates/main.html

index 946e5ec40d1939cffc8ec2fa0bb3d5e4abe02edf..9b3d87d9f11cdabb57fe59d5b2ab9463b0a0997b 100644 (file)
@@ -280,7 +280,7 @@ div.settings-section-title {
     position: relative;
     text-align: right;
     background-color: rgba(100, 100, 100, 0.3);
-    padding: 5px;
+    padding: 5px 0.5em 5px 5px;
 }
 
 table.settings {
index 866331553c07fb2291a356b37c3d6e2a31e31f85..bb155a8d91018826ddcacea78a88cd3ee532d09e 100644 (file)
@@ -442,12 +442,21 @@ span.help-mark {
     background-color: #414141;
     color: #3498db;
     font-size: 0.75em;
-    width: 1.1em;
-    height: 1.1em;
-    border-radius: 0.5em;
+    font-family: monospace;
+    width: 1.2em;
+    height: 1.2em;
+    border-radius: 100em;
     cursor: pointer;
+    vertical-align: middle;
+    position: relative;
+    top: -0.1em;
+}
+
+div.settings-section-title > span.help-mark {
+    background-color: #515151;
 }
 
+div.settings-section-title:HOVER > span.help-mark,
 tr:HOVER span.help-mark {
     visibility: visible;
 }
index 0913623a206ffd69c066d73144312b7f38f7fa00..314347d7da42e65105fb3c4cab83e92ecb82b973 100644 (file)
@@ -90,7 +90,8 @@
     <div class="page">
         <div class="settings closed">
             <div class="settings-container">
-                <div class="settings-section-title"><input type="checkbox" class="styled section general main-config" id="motionEyeSwitch">General Settings</div>
+                <div class="settings-section-title"><input type="checkbox" class="styled section general main-config" id="motionEyeSwitch">General Settings
+                        <span class="help-mark" title="general settings, not related to any camera">?</span></div>
                 <table class="settings">
                     <tr class="settings-item">
                         <td class="settings-item-label"><span class="settings-item-label">Show Advanced Settings</span></td>
                 
                 {% for section in main_sections.values() %}
                 {% if section.get('label') and section.get('configs') %}
-                <div class="settings-section-title {% if section['advanced'] %}advanced-setting{% endif %}" title="{{section.get('description') or ''}}">{% if section.get('onoff') %}
-                        <input type="checkbox" class="styled section additional-section {{section['name']}} main-config" id="{{section['name']}}Switch">{% endif %}{{section['label']}}</div>
+                <div class="settings-section-title {% if section['advanced'] %}advanced-setting{% endif %}">{% if section.get('onoff') %}
+                        <input type="checkbox" class="styled section additional-section {{section['name']}} main-config" id="{{section['name']}}Switch">{% endif %}{{section['label']}}
+                        {% if section.get('description') %}<span class="help-mark" title="{{section['description']}}">?</span>{% endif %}</div>
                 <table class="settings">
                     {% for config in section['configs'] %}
                         {{config_item(config)}}
                 {% endif %}                    
                 {% endfor %}
 
-                <div class="settings-section-title"><input type="checkbox" class="styled section device camera-config" id="videoDeviceSwitch">Video Device</div>
+                <div class="settings-section-title"><input type="checkbox" class="styled section device camera-config" id="videoDeviceSwitch">Video Device
+                        <span class="help-mark" title="enable this if you want to use this camera device">?</span></div>
                 <table class="settings">
                     <tr class="settings-item" required="true" strip="true">
                         <td class="settings-item-label"><span class="settings-item-label">Camera Name</span></td>
                     {% endfor %}
                 </table>
                 
-                <div class="settings-section-title advanced-setting">File Storage</div>
+                <div class="settings-section-title advanced-setting">File Storage
+                        <span class="help-mark" title="choose where and how your media files are saved">?</span></div>
                 <table class="settings advanced-setting">
                     <tr class="settings-item advanced-setting">
                         <td class="settings-item-label"><span class="settings-item-label">Storage Device</span></td>
                     {% endfor %}
                 </table>
                 
-                <div class="settings-section-title advanced-setting"><input type="checkbox" class="styled section text-overlay camera-config" id="textOverlaySwitch">Text Overlay</div>
+                <div class="settings-section-title advanced-setting"><input type="checkbox" class="styled section text-overlay camera-config" id="textOverlaySwitch">Text Overlay
+                        <span class="help-mark" title="choose what information is displayed on the captured frames">?</span></div>
                 <table class="settings advanced-setting">
                     <tr class="settings-item advanced-setting">
                         <td class="settings-item-label"><span class="settings-item-label">Left Text</span></td>
                     {% endfor %}
                 </table>
 
-                <div class="settings-section-title"><input type="checkbox" class="styled section streaming camera-config" id="videoStreamingSwitch">Video Streaming</div>
+                <div class="settings-section-title"><input type="checkbox" class="styled section streaming camera-config" id="videoStreamingSwitch">Video Streaming
+                        <span class="help-mark" title="enable this if you want video streaming for this camera">?</span></div>
                 <table class="settings">
                     <tr class="settings-item advanced-setting local-streaming" min="1" max="30" snap="0" ticks="1|5|10|15|20|25|30" decimals="0">
                         <td class="settings-item-label"><span class="settings-item-label">Streaming Frame Rate</span></td>
                     {% endfor %}
                 </table>
                 
-                <div class="settings-section-title"><input type="checkbox" class="styled section still-images camera-config" id="stillImagesSwitch">Still Images</div>
+                <div class="settings-section-title"><input type="checkbox" class="styled section still-images camera-config" id="stillImagesSwitch">Still Images
+                        <span class="help-mark" title="enable this if you want to capture still images (pictures)">?</span></div>
                 <table class="settings">
                     <tr class="settings-item advanced-setting" required="true" strip="true">
                         <td class="settings-item-label"><span class="settings-item-label">Image File Name</span></td>
                     {% endfor %}
                 </table>
                 
-                <div class="settings-section-title advanced-setting"><input type="checkbox" class="styled section motion-detection camera-config" id="motionDetectionSwitch">Motion Detection</div>
+                <div class="settings-section-title advanced-setting"><input type="checkbox" class="styled section motion-detection camera-config" id="motionDetectionSwitch">Motion Detection
+                        <span class="help-mark" title="enable this to use and configure the motion detection mechanism">?</span></div>
                 <table class="settings advanced-setting">
                     <tr class="settings-item advanced-setting">
                         <td class="settings-item-label"><span class="settings-item-label">Show Frame Changes</span></td>
                     {% endfor %}
                 </table>
                 
-                <div class="settings-section-title"><input type="checkbox" class="styled section motion-movies camera-config" id="motionMoviesSwitch">Motion Movies</div>
+                <div class="settings-section-title"><input type="checkbox" class="styled section motion-movies camera-config" id="motionMoviesSwitch">Motion Movies
+                        <span class="help-mark" title="enable this if you want to record motion movies">?</span></div>
                 <table class="settings">
                     <tr class="settings-item advanced-setting" required="true" strip="true">
                         <td class="settings-item-label"><span class="settings-item-label">Movie File Name</span></td>
                         {{config_item(config)}}
                     {% endfor %}
                 </table>
-                
-                <div class="settings-section-title advanced-setting">Motion Notifications</div>
+                <div class="settings-section-title advanced-setting">Motion Notifications
+                        <span class="help-mark" title="enable this if you want to be notified when motion is detected">?</span></div>
                 <table class="settings">
                     <tr class="settings-item advanced-setting">
                         <td class="settings-item-label"><span class="settings-item-label">Email Notifications</span></td>
                     {% endfor %}
                 </table>
 
-                <div class="settings-section-title"><input type="checkbox" class="styled section working-schedule camera-config" id="workingScheduleSwitch">Working Schedule</div>
+                <div class="settings-section-title"><input type="checkbox" class="styled section working-schedule camera-config" id="workingScheduleSwitch">Working Schedule
+                        <span class="help-mark" title="enable this if you want to define a weekly working schedule for motion detection">?</span></div>
                 <table class="settings">
                     <tr class="settings-item">
                         <td class="settings-item-label"><span class="settings-item-label">Monday</span></td>
 
                 {% for section in camera_sections.values() %}
                 {% if section.get('label') and section.get('configs') %}
-                <div class="settings-section-title {% if section['advanced'] %}advanced-setting{% endif %}" title="{{section.get('description') or ''}}">{% if section.get('onoff') %}
-                        <input type="checkbox" class="styled section additional-section {{section['name']}} camera-config" id="{{section['name']}}Switch">{% endif %}{{section['label']}}</div>
+                <div class="settings-section-title {% if section['advanced'] %}advanced-setting{% endif %}">{% if section.get('onoff') %}
+                        <input type="checkbox" class="styled section additional-section {{section['name']}} camera-config" id="{{section['name']}}Switch">{% endif %}{{section['label']}}
+                        {% if section.get('description') %}<span class="help-mark" title="{{section['description']}}">?</span>{% endif %}</div>
                 <table class="settings">
                     {% for config in section['configs'] %}
                         {{config_item(config)}}