Przeglądaj źródła

Makes it possible to display notification message above the toolbar.

master
paweldomas 10 lat temu
rodzic
commit
90d979b69d
5 zmienionych plików z 17703 dodań i 17672 usunięć
  1. 4
    1
      config.js
  2. 11
    0
      css/notice.css
  3. 5
    1
      index.html
  4. 17677
    17670
      libs/app.bundle.js
  5. 6
    0
      modules/UI/UI.js

+ 4
- 1
config.js Wyświetl plik

@@ -33,5 +33,8 @@ var config = {
33 33
     enableSimulcast: false,
34 34
     enableFirefoxSupport: true, //firefox support is still experimental and
35 35
     // will work when simulcast is *disabled* and rtcpMux & bundle are *enabled*.
36
-    logStats: false // Enable logging of PeerConnection stats via the focus
36
+    logStats: false, // Enable logging of PeerConnection stats via the focus
37
+    /*noticeMessage: 'Service update is scheduled for 16th March 2015. ' +
38
+    'During that time service will not be available. ' +
39
+    'Apologise for inconvenience.'*/
37 40
 };

+ 11
- 0
css/notice.css Wyświetl plik

@@ -0,0 +1,11 @@
1
+#notice {
2
+    position: relative;
3
+    z-index: 3;
4
+    margin-top: 6px;
5
+}
6
+#noticeText {
7
+    background-color: #000000;
8
+    color: white;
9
+    padding: 3px;
10
+    border-radius: 5px;
11
+}

+ 5
- 1
index.html Wyświetl plik

@@ -19,7 +19,7 @@
19 19
     <script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
20 20
     <script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
21 21
     <script src="interface_config.js?v=5"></script>
22
-    <script src="libs/app.bundle.js?v=34"></script>
22
+    <script src="libs/app.bundle.js?v=35"></script>
23 23
     <script src="analytics.js?v=1"></script><!-- google analytics plugin -->
24 24
     <link rel="stylesheet" href="css/font.css?v=6"/>
25 25
     <link rel="stylesheet" href="css/toastr.css?v=1">
@@ -28,6 +28,7 @@
28 28
     <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
29 29
     <link rel="stylesheet" href="css/jquery-impromptu.css?v=4">
30 30
     <link rel="stylesheet" href="css/modaldialog.css?v=3">
31
+    <link rel="stylesheet" href="css/notice.css?v=1">
31 32
     <link rel="stylesheet" href="css/popup_menu.css?v=4">
32 33
     <link rel="stylesheet" href="css/login_menu.css?v=1">
33 34
     <link rel="stylesheet" href="css/popover.css?v=2">
@@ -120,6 +121,9 @@
120 121
     <div id="videoconference_page">
121 122
         <div style="position: relative;" id="header_container">
122 123
             <div id="header">
124
+                <div id="notice" class="notice" style="display: none">
125
+                    <span id="noticeText" class="noticeText"></span>
126
+                </div>
123 127
                 <span id="toolbar">
124 128
                     <span id="authentication" class="authentication" style="display: none">
125 129
                         <a class="button" id="toolbar_button_authentication" >

+ 17677
- 17670
libs/app.bundle.js
Plik diff jest za duży
Wyświetl plik


+ 6
- 0
modules/UI/UI.js Wyświetl plik

@@ -337,6 +337,12 @@ UI.start = function (init) {
337 337
 
338 338
     $("#welcome_page").hide();
339 339
 
340
+    // Display notice message at the top of the toolbar
341
+    if (config.noticeMessage) {
342
+        $('#noticeText').text(config.noticeMessage);
343
+        $('#notice').css({display: 'block'});
344
+    }
345
+
340 346
     document.getElementById('largeVideo').volume = 0;
341 347
 
342 348
     if (!$('#settings').is(':visible')) {

Ładowanie…
Anuluj
Zapisz