Browse Source

Merge pull request #118 from fouksf/hide-filmstrip

Hide film strip
j8
hristoterezov 11 years ago
parent
commit
2436e4231c
15 changed files with 179 additions and 118 deletions
  1. 1
    1
      app.js
  2. 4
    0
      bottom_toolbar.js
  3. 2
    2
      chat.js
  4. 1
    1
      contact_list.js
  5. 3
    0
      css/font.css
  6. 2
    2
      etherpad.js
  7. BIN
      fonts/jitsi.eot
  8. 1
    0
      fonts/jitsi.svg
  9. BIN
      fonts/jitsi.ttf
  10. BIN
      fonts/jitsi.woff
  11. 56
    26
      fonts/selection.json
  12. 7
    3
      index.html
  13. 2
    2
      prezi.js
  14. 0
    81
      toolbar.js
  15. 100
    0
      toolbar_toggler.js

+ 1
- 1
app.js View File

@@ -601,7 +601,7 @@ $(document).bind('joined.muc', function (event, jid, info) {
601 601
     ContactList.addContact(jid);
602 602
 
603 603
     // Once we've joined the muc show the toolbar
604
-    Toolbar.showToolbar();
604
+    ToolbarToggler.showToolbar();
605 605
 
606 606
     if (info.displayName)
607 607
         $(document).trigger('displaynamechanged',

+ 4
- 0
bottom_toolbar.js View File

@@ -21,6 +21,10 @@ var BottomToolbar = (function (my) {
21 21
         ContactList.toggleContactList();
22 22
     };
23 23
 
24
+    my.toggleFilmStrip = function() {
25
+        $("#remoteVideos").toggle("slide", { direction: "down", duration: 700});
26
+    };
27
+
24 28
 
25 29
     $(document).bind("remotevideo.resized", function (event, width, height) {
26 30
         var bottom = (height - $('#bottomToolbar').outerHeight())/2 + 18;

+ 2
- 2
chat.js View File

@@ -207,7 +207,7 @@ var Chat = (function (my) {
207 207
             // Undock the toolbar when the chat is shown and if we're in a 
208 208
             // video mode.
209 209
             if (VideoLayout.isLargeVideoVisible())
210
-                Toolbar.dockToolbar(false);
210
+                ToolbarToggler.dockToolbar(false);
211 211
 
212 212
             videospace.animate({right: chatSize[0],
213 213
                                 width: videospaceWidth,
@@ -333,7 +333,7 @@ var Chat = (function (my) {
333 333
         if (unreadMessages) {
334 334
             unreadMsgElement.innerHTML = unreadMessages.toString();
335 335
 
336
-            Toolbar.dockToolbar(true);
336
+            ToolbarToggler.dockToolbar(true);
337 337
 
338 338
             var chatButtonElement
339 339
                 = document.getElementById('chatButton').parentNode;

+ 1
- 1
contact_list.js View File

@@ -143,7 +143,7 @@ var ContactList = (function (my) {
143 143
             // Undock the toolbar when the chat is shown and if we're in a 
144 144
             // video mode.
145 145
             if (VideoLayout.isLargeVideoVisible())
146
-                Toolbar.dockToolbar(false);
146
+                ToolbarToggler.dockToolbar(false);
147 147
 
148 148
             videospace.animate({right: chatSize[0],
149 149
                                 width: videospaceWidth,

+ 3
- 0
css/font.css View File

@@ -103,3 +103,6 @@
103 103
 .icon-reload:before {
104 104
     content: "\e618";
105 105
 }
106
+.icon-filmstrip:before {
107
+    content: "\e619";
108
+}

+ 2
- 2
etherpad.js View File

@@ -46,7 +46,7 @@ var Etherpad = (function (my) {
46 46
                     largeVideo.css({opacity: '0'});
47 47
                 } else {
48 48
                     VideoLayout.setLargeVideoVisible(false);
49
-                    Toolbar.dockToolbar(true);
49
+                    ToolbarToggler.dockToolbar(true);
50 50
                 }
51 51
 
52 52
                 $('#etherpad>iframe').fadeIn(300, function () {
@@ -64,7 +64,7 @@ var Etherpad = (function (my) {
64 64
                 if (!isPresentation) {
65 65
                     $('#largeVideo').fadeIn(300, function () {
66 66
                         VideoLayout.setLargeVideoVisible(true);
67
-                        Toolbar.dockToolbar(false);
67
+                        ToolbarToggler.dockToolbar(false);
68 68
                     });
69 69
                 }
70 70
             });

BIN
fonts/jitsi.eot View File


+ 1
- 0
fonts/jitsi.svg View File

@@ -32,4 +32,5 @@
32 32
 <glyph unicode="&#xe616;" d="M513.087 224.534c0-141.673-114.855-256.526-256.554-256.526-141.674 0-256.534 114.851-256.534 256.526 0 141.692 114.861 256.553 256.534 256.553 141.7 0 256.554-114.861 256.554-256.553zM256.534-31.993c67.863 0 129.556 26.356 175.437 69.37-4.858 5.825-11.276 10.557-19.557 14.171-29.467 12.873-58.313 27.128-87.267 41.128-20.935 10.161-19.702 33.293-12.82 43.029 4.471 6.346 8.402 12.999 8.864 21.373 0.166 3.084 3.12 7.142 5.945 8.761 9.802 5.652 14.349 14.873 18.802 24.43 1.17 2.515 2.777 4.945 4.615 7.038 3.185 3.622 4.612 7.218 2.286 11.971-0.543 1.104 0.502 3.12 1.053 4.637 1.619 4.534 3.866 8.901 4.93 13.558 1.335 5.774 2.029 11.74 2.351 17.661 0.14 2.451-2.272 5.092-2.017 7.493 1.31 12.011-5.471 21.136-9.299 31.579-4.688 12.857-13.885 20.91-22.002 30.485-1.529 1.812-1.964 4.919-2.094 7.476-0.269 5.49-2.53 8.207-8.272 7.462-2.299-0.3-4.805-0.943-6.921-0.378-1.864 0.494-4.663 2.362-4.767 3.802-0.577 7.269-3.106 8.465-10.533 7.238-4.648-0.772-10.697 3.429-15.257 6.601-3.816 2.646-7.104 3.777-11.534 2.69-1.849-0.45-4.341-0.373-5.908 0.547-1.671 0.988-3.303 1.592-4.933 1.919v0.276c-0.36-0.007-0.745-0.065-1.104-0.108-0.361 0.044-0.72 0.103-1.078 0.108v-0.276c-1.645-0.327-3.287-0.931-4.945-1.919-1.556-0.918-4.046-0.996-5.899-0.547-4.443 1.087-7.724-0.044-11.532-2.69-4.578-3.173-10.611-7.373-15.259-6.601-7.431 1.226-9.97 0.031-10.547-7.238-0.109-1.439-2.897-3.308-4.758-3.802-2.139-0.565-4.624 0.077-6.944 0.378-5.728 0.745-7.994-1.971-8.258-7.462-0.131-2.555-0.565-5.665-2.095-7.476-8.111-9.575-17.308-17.629-22.009-30.485-3.814-10.443-10.602-19.568-9.285-31.579 0.256-2.401-2.152-5.042-2.023-7.493 0.327-5.923 1.020-11.888 2.351-17.661 1.065-4.656 3.313-9.024 4.945-13.558 0.547-1.516 1.587-3.531 1.041-4.637-2.325-4.754-0.894-8.351 2.291-11.971 1.837-2.094 3.437-4.523 4.612-7.038 4.45-9.555 8.996-18.779 18.798-24.43 2.827-1.619 5.78-5.676 5.952-8.761 0.457-8.374 4.387-15.027 8.869-21.373 6.873-9.735 7.951-32.623-12.837-43.029-28.76-14.386-57.8-28.255-87.251-41.128-8.285-3.615-14.704-8.347-19.561-14.169 45.88-43.015 107.569-69.372 175.422-69.372z" horiz-adv-x="513" />
33 33
 <glyph unicode="&#xe617;" d="M32.887 258.374c5.026 4.679 12.994 10.886 21.642 16.349 25.668 16.31 54.057 25.449 83.415 32.066 24.381 5.475 49.123 8.444 74.033 10.101 27.877 1.877 55.779 1.89 83.696 0.399 19.972-1.092 39.843-3.251 59.56-6.606 21.978-3.753 43.519-8.997 64.392-16.875 12.209-4.587 24.086-10.053 35.267-16.786 14.858-8.946 28.276-19.612 38.61-33.674 10.409-14.151 15.861-30.204 16.914-47.696 0.873-13.701 0.358-27.349-2.828-40.794-1.438-6.041-4.113-11.567-8.277-16.193-5.709-6.324-13.212-8.51-21.386-8.818-10.231-0.334-20.205 2.057-30.18 4.113-19.456 3.985-38.918 8.123-58.349 12.364-7.069 1.517-14.344 2.546-20.825 6.298-11.154 6.478-17.223 15.887-17.017 28.892 0.129 8.435 1.108 16.891 1.235 25.348 0.156 12.505-4.962 22.581-15.449 29.521-7.197 4.769-15.347 7.456-23.726 9.333-20.206 4.523-40.693 5.089-61.281 5.025-14.411-0.063-28.791-0.834-43.047-3.071-9.974-1.581-19.781-3.906-28.866-8.507-12.159-6.182-19.677-15.732-20.036-29.676-0.22-8.175 0.487-16.401 0.964-24.575 0.321-5.911-0.040-11.723-2.648-17.144-4.63-9.692-12.468-15.836-22.685-18.482-11.323-2.933-22.802-5.27-34.252-7.611-19.051-3.882-38.108-7.684-57.208-11.259-7.263-1.387-14.627-0.976-21.567 1.801-9.371 3.728-14.462 11.387-17.069 20.668-3.548 12.699-3.921 25.757-3.483 38.865 0.45 13.52 2.942 26.618 9.202 38.803 4.897 9.532 11.246 17.977 21.246 27.821z" horiz-adv-x="513" />
34 34
 <glyph unicode="&#xe618;" d="M398.543 56.151c-0.029 0.082-0.060 0.164-0.080 0.243-35.7-22.819-75.891-34.966-117.012-34.966-0.007 0-0.010 0-0.014 0-61.26 0-118.75 26.386-157.734 72.37-49.889 58.849-67.126 164.977-36.511 213.894 2.002-0.831 3.938-1.616 5.84-2.387 6.793-2.756 13.207-5.358 21.153-9.548 3.031-1.601 6.169-2.406 9.337-2.406 5.857 0 11.3 2.824 14.924 7.743 3.907 5.309 5.156 12.389 3.269 18.476l-1.762 5.705c-5.344 17.295-10.862 35.177-17.106 52.539-4.992 13.882-11.2 31.163-29.613 31.163-6.028 0-13.019-1.828-23.365-6.102-22.147-9.159-35.529-14.981-57.267-24.905-7.551-3.444-12.617-11.349-12.601-19.672 0.014-7.921 4.496-14.668 11.988-18.058 9.104-4.128 15.268-6.858 21.734-9.723l5.343-2.377c-50.969-129.551 12.401-263.229 105.657-319.606 41.749-25.237 89.25-38.57 137.385-38.57h0.021c51.36 0 102.781 15.55 142.25 42.599-15.865 14.401-22.783 34.584-25.836 43.586zM549.101 105.045c-9.057 4.288-15.178 7.129-21.611 10.122l-5.248 2.446c53.224 128.634-7.784 263.401-100.034 321.394-42.68 26.832-91.562 41.016-141.358 41.016-52.424 0-103.205-15.297-142.983-43.083l-2.692-1.882c15.798-13.782 22.93-33.394 26.459-43.205 36.463 23.97 77.838 36.704 119.947 36.704 62.704 0 121.071-27.392 160.147-75.158 48.841-59.724 64.219-166.128 32.749-214.508-1.995 0.868-3.908 1.692-5.812 2.499-6.736 2.88-13.102 5.59-20.977 9.911-3.101 1.712-6.322 2.577-9.606 2.577-5.793 0-11.2-2.779-14.845-7.634-3.906-5.217-5.239-12.216-3.483-18.257l1.639-5.651c5.048-17.423 10.265-35.428 16.206-52.921 4.794-14.119 10.757-31.691 29.589-31.691 5.921 0 12.788 1.712 22.94 5.7 22.175 8.719 35.66 14.3 57.704 23.889 7.595 3.312 12.801 11.126 12.929 19.447 0.14 7.911-4.222 14.75-11.663 18.284z" horiz-adv-x="561" />
35
+<glyph unicode="&#xe619;" d="M23.497 480.85c230.617 0 276.897 0 507.512 0 17.96 0 26.678-12.98 26.678-28.98-0.29-151.63-0.163-303.244-0.225-454.904 0-21.992-6.601-28.529-28.851-28.529-221.536-0.063-278.226-0.063-499.776 0-22.267 0-28.899 6.505-28.899 28.529-0.049 151.629 0.242 304.036-0.046 455.664-0.017 13.105 5.651 26.88 23.608 28.219zM155.702 225.149c0-59.522-0.036-86.084 0.029-145.625 0.018-25.022 5.604-30.525 31.060-30.525 116.676 0 68.537 0 185.261 0 23.538 0 29.625 5.991 29.625 29.048 0.063 119.555 0.063 173.169 0 292.695 0 24.069-5.344 29.495-28.884 29.495-117.661 0.050-70.422 0.050-188.078 0-23.522 0-28.965-5.522-28.983-29.445-0.065-59.554-0.029-86.105-0.029-145.643zM76.972 419.283c-37.465-0.031-33.343 2.979-33.422-33.343-0.1-31.975-3.527-31.767 31.264-31.686 36.499 0.097 33.6-1.882 33.651 33.777 0 33.861 2.043 31.298-31.493 31.251zM481.822 419.283c-35.579-0.017-32.78 3.092-32.875-32.682-0.065-33.651-2.254-32.346 32.264-32.346 36.544 0 32.649-1.015 32.649 33.119-0.001 34.323 3.478 31.955-32.038 31.909zM108.414 61.204c0.18 36.547 2.32 33.457-33.679 33.585-34.052 0.096-31.285 1.382-31.203-31.655 0.065-36.738-3.477-33.26 33.537-33.325 33.021-0.033 31.571-3.028 31.346 31.394zM513.859 62.2c0.067 34.167 3.221 32.652-31.649 32.589-35.066-0.066-33.328 2.897-33.264-32.652 0.065-35.322-2.192-32.361 31.878-32.329 35.998 0.066 33.101-3.349 33.034 32.392zM513.859 171.038c0 35.275 3.61 33.421-33.743 33.261-0.449 0-0.937 0-1.419 0-29.688 0-29.688 0-29.688-29.012 0-38.961-3.221-34.968 34.647-35.098 33.038-0.193 30.269-1.546 30.202 30.849zM75.653 244.936c34.147-0.082 32.907-2.784 32.812 31.491-0.097 35.564 2.448 32.459-33.007 32.505-34.953 0.050-31.907 2.352-31.942-31.989-0.031-33.715-2.85-32.231 32.138-32.007zM480.632 244.936c36.256-0.129 33.295-2.302 33.228 32.247 0 34.279 3.092 31.769-32.134 31.749-35.098-0.014-32.843 3.026-32.749-32.747 0.066-31.25 0.034-31.25 31.655-31.25zM75.2 140.19c35.502 0 33.329-3.284 33.233 32.264-0.082 31.847-0.018 31.75-32.507 31.878-35.403 0.129-32.411 1.337-32.411-31.878 0.018-34.584-2.959-32.394 31.684-32.264z" horiz-adv-x="558" />
35 36
 </font></defs></svg>

BIN
fonts/jitsi.ttf View File


BIN
fonts/jitsi.woff View File


+ 56
- 26
fonts/selection.json View File

@@ -1,6 +1,34 @@
1 1
 {
2 2
 	"IcoMoonType": "selection",
3 3
 	"icons": [
4
+		{
5
+			"icon": {
6
+				"paths": [
7
+					"M46.993-1.7c461.234 0 553.793 0 1015.024 0 35.919 0 53.356 25.959 53.356 57.959-0.581 303.259-0.325 606.488-0.449 909.809 0 43.984-13.203 57.058-57.703 57.058-443.072 0.126-556.453 0.126-999.553 0-44.534 0-57.799-13.009-57.799-57.058-0.098-303.257 0.485-608.072-0.093-911.329-0.034-26.21 11.301-53.761 47.217-56.439zM311.405 509.702c0 119.045-0.072 172.168 0.057 291.249 0.036 50.043 11.208 61.050 62.12 61.050 233.352 0 137.075 0 370.522 0 47.075 0 59.249-11.982 59.249-58.095 0.126-239.111 0.126-346.338 0-585.389 0-48.138-10.687-58.991-57.768-58.991-235.323-0.101-140.844-0.101-376.157 0-47.044 0-57.93 11.043-57.966 58.89-0.129 119.109-0.057 172.209-0.057 291.287zM153.944 121.434c-74.929 0.062-66.687-5.958-66.845 66.685-0.201 63.95-7.054 63.534 62.528 63.372 72.999-0.194 67.201 3.764 67.302-67.554 0-67.722 4.087-62.595-62.985-62.502zM963.644 121.434c-71.159 0.034-65.56-6.185-65.751 65.364-0.129 67.302-4.508 64.693 64.528 64.693 73.089 0 65.299 2.031 65.299-66.238-0.003-68.646 6.956-63.911-64.076-63.818zM216.828 837.592c0.359-73.094 4.639-66.914-67.358-67.17-68.104-0.191-62.569-2.763-62.407 63.31 0.129 73.476-6.954 66.52 67.074 66.649 66.042 0.065 63.142 6.056 62.691-62.789zM1027.718 835.6c0.134-68.334 6.443-65.304-63.297-65.178-70.132 0.132-66.656-5.793-66.527 65.304 0.129 70.645-4.384 64.721 63.756 64.657 71.995-0.132 66.202 6.698 66.068-64.783zM1027.718 617.923c0-70.55 7.219-66.842-67.485-66.522-0.898 0-1.873 0-2.838 0-59.375 0-59.375 0-59.375 58.023 0 77.922-6.443 69.936 69.293 70.196 66.076 0.387 60.539 3.091 60.405-61.697zM151.307 470.127c68.295 0.163 65.815 5.568 65.624-62.982-0.194-71.128 4.895-64.917-66.014-65.010-69.905-0.101-63.813-4.704-63.885 63.978-0.062 67.431-5.7 64.463 64.275 64.014zM961.263 470.127c72.511 0.258 66.589 4.603 66.455-64.494 0-68.558 6.185-63.537-64.267-63.498-70.196 0.028-65.686-6.053-65.498 65.493 0.132 62.5 0.067 62.5 63.31 62.5zM150.399 679.62c71.004 0 66.659 6.567 66.466-64.528-0.163-63.694-0.036-63.501-65.013-63.756-70.805-0.258-64.822-2.673-64.822 63.756 0.036 69.167-5.919 64.788 63.369 64.528z"
8
+				],
9
+				"attrs": [
10
+					{}
11
+				],
12
+				"width": 1115,
13
+				"grid": 0,
14
+				"tags": [
15
+					"filmstrip"
16
+				]
17
+			},
18
+			"attrs": [
19
+				{}
20
+			],
21
+			"properties": {
22
+				"order": 26,
23
+				"id": 29,
24
+				"prevSize": 32,
25
+				"code": 58905,
26
+				"name": "filmstrip",
27
+				"ligatures": ""
28
+			},
29
+			"setIdx": 0,
30
+			"iconIdx": 0
31
+		},
4 32
 		{
5 33
 			"icon": {
6 34
 				"paths": [
@@ -33,7 +61,7 @@
33 61
 				"ligatures": ""
34 62
 			},
35 63
 			"setIdx": 0,
36
-			"iconIdx": 0
64
+			"iconIdx": 1
37 65
 		},
38 66
 		{
39 67
 			"icon": {
@@ -61,7 +89,7 @@
61 89
 				"ligatures": ""
62 90
 			},
63 91
 			"setIdx": 0,
64
-			"iconIdx": 1
92
+			"iconIdx": 2
65 93
 		},
66 94
 		{
67 95
 			"icon": {
@@ -89,7 +117,7 @@
89 117
 				"ligatures": ""
90 118
 			},
91 119
 			"setIdx": 0,
92
-			"iconIdx": 2
120
+			"iconIdx": 3
93 121
 		},
94 122
 		{
95 123
 			"icon": {
@@ -128,7 +156,7 @@
128 156
 				"ligatures": ""
129 157
 			},
130 158
 			"setIdx": 0,
131
-			"iconIdx": 3
159
+			"iconIdx": 4
132 160
 		},
133 161
 		{
134 162
 			"icon": {
@@ -151,7 +179,7 @@
151 179
 				"ligatures": ""
152 180
 			},
153 181
 			"setIdx": 0,
154
-			"iconIdx": 4
182
+			"iconIdx": 5
155 183
 		},
156 184
 		{
157 185
 			"icon": {
@@ -174,7 +202,7 @@
174 202
 				"ligatures": ""
175 203
 			},
176 204
 			"setIdx": 0,
177
-			"iconIdx": 5
205
+			"iconIdx": 6
178 206
 		},
179 207
 		{
180 208
 			"icon": {
@@ -198,7 +226,7 @@
198 226
 				"ligatures": ""
199 227
 			},
200 228
 			"setIdx": 0,
201
-			"iconIdx": 6
229
+			"iconIdx": 7
202 230
 		},
203 231
 		{
204 232
 			"icon": {
@@ -223,7 +251,7 @@
223 251
 				"ligatures": ""
224 252
 			},
225 253
 			"setIdx": 0,
226
-			"iconIdx": 7
254
+			"iconIdx": 8
227 255
 		},
228 256
 		{
229 257
 			"icon": {
@@ -246,7 +274,7 @@
246 274
 				"ligatures": ""
247 275
 			},
248 276
 			"setIdx": 0,
249
-			"iconIdx": 8
277
+			"iconIdx": 9
250 278
 		},
251 279
 		{
252 280
 			"icon": {
@@ -270,7 +298,7 @@
270 298
 				"ligatures": ""
271 299
 			},
272 300
 			"setIdx": 0,
273
-			"iconIdx": 9
301
+			"iconIdx": 10
274 302
 		},
275 303
 		{
276 304
 			"icon": {
@@ -294,7 +322,7 @@
294 322
 				"ligatures": ""
295 323
 			},
296 324
 			"setIdx": 0,
297
-			"iconIdx": 10
325
+			"iconIdx": 11
298 326
 		},
299 327
 		{
300 328
 			"icon": {
@@ -316,7 +344,7 @@
316 344
 				"ligatures": ""
317 345
 			},
318 346
 			"setIdx": 0,
319
-			"iconIdx": 11
347
+			"iconIdx": 12
320 348
 		},
321 349
 		{
322 350
 			"icon": {
@@ -340,7 +368,7 @@
340 368
 				"ligatures": ""
341 369
 			},
342 370
 			"setIdx": 0,
343
-			"iconIdx": 12
371
+			"iconIdx": 13
344 372
 		},
345 373
 		{
346 374
 			"icon": {
@@ -364,7 +392,7 @@
364 392
 				"ligatures": ""
365 393
 			},
366 394
 			"setIdx": 0,
367
-			"iconIdx": 13
395
+			"iconIdx": 14
368 396
 		},
369 397
 		{
370 398
 			"icon": {
@@ -391,7 +419,7 @@
391 419
 				"ligatures": ""
392 420
 			},
393 421
 			"setIdx": 0,
394
-			"iconIdx": 14
422
+			"iconIdx": 15
395 423
 		},
396 424
 		{
397 425
 			"icon": {
@@ -415,7 +443,7 @@
415 443
 				"ligatures": ""
416 444
 			},
417 445
 			"setIdx": 0,
418
-			"iconIdx": 15
446
+			"iconIdx": 16
419 447
 		},
420 448
 		{
421 449
 			"icon": {
@@ -439,7 +467,7 @@
439 467
 				"ligatures": ""
440 468
 			},
441 469
 			"setIdx": 0,
442
-			"iconIdx": 16
470
+			"iconIdx": 17
443 471
 		},
444 472
 		{
445 473
 			"icon": {
@@ -464,7 +492,7 @@
464 492
 				"ligatures": ""
465 493
 			},
466 494
 			"setIdx": 0,
467
-			"iconIdx": 17
495
+			"iconIdx": 18
468 496
 		},
469 497
 		{
470 498
 			"icon": {
@@ -486,7 +514,7 @@
486 514
 				"ligatures": ""
487 515
 			},
488 516
 			"setIdx": 0,
489
-			"iconIdx": 18
517
+			"iconIdx": 19
490 518
 		},
491 519
 		{
492 520
 			"icon": {
@@ -509,7 +537,7 @@
509 537
 				"ligatures": ""
510 538
 			},
511 539
 			"setIdx": 0,
512
-			"iconIdx": 19
540
+			"iconIdx": 20
513 541
 		},
514 542
 		{
515 543
 			"icon": {
@@ -531,7 +559,7 @@
531 559
 				"ligatures": ""
532 560
 			},
533 561
 			"setIdx": 0,
534
-			"iconIdx": 20
562
+			"iconIdx": 21
535 563
 		},
536 564
 		{
537 565
 			"icon": {
@@ -554,7 +582,7 @@
554 582
 				"ligatures": ""
555 583
 			},
556 584
 			"setIdx": 0,
557
-			"iconIdx": 21
585
+			"iconIdx": 22
558 586
 		},
559 587
 		{
560 588
 			"icon": {
@@ -577,7 +605,7 @@
577 605
 				"ligatures": ""
578 606
 			},
579 607
 			"setIdx": 0,
580
-			"iconIdx": 22
608
+			"iconIdx": 23
581 609
 		},
582 610
 		{
583 611
 			"icon": {
@@ -601,7 +629,7 @@
601 629
 				"ligatures": ""
602 630
 			},
603 631
 			"setIdx": 0,
604
-			"iconIdx": 23
632
+			"iconIdx": 24
605 633
 		},
606 634
 		{
607 635
 			"icon": {
@@ -624,7 +652,7 @@
624 652
 				"ligatures": ""
625 653
 			},
626 654
 			"setIdx": 0,
627
-			"iconIdx": 24
655
+			"iconIdx": 25
628 656
 		}
629 657
 	],
630 658
 	"height": 1024,
@@ -637,7 +665,9 @@
637 665
 		"fontPref": {
638 666
 			"prefix": "icon-",
639 667
 			"metadata": {
640
-				"fontFamily": "jitsi"
668
+				"fontFamily": "jitsi",
669
+				"majorVersion": 1,
670
+				"minorVersion": 0
641 671
 			},
642 672
 			"metrics": {
643 673
 				"emSize": 512,

+ 7
- 3
index.html View File

@@ -44,6 +44,7 @@
44 44
     <script src="local_sts.js?v=1"></script><!-- Local stats processing -->
45 45
     <script src="videolayout.js?v=8"></script><!-- video ui -->
46 46
     <script src="toolbar.js?v=4"></script><!-- toolbar ui -->
47
+    <script src="toolbar_toggler.js"></script>
47 48
     <script src="canvas_util.js?v=1"></script><!-- canvas drawing utils -->
48 49
     <script src="audio_levels.js?v=1"></script><!-- audio levels plugin -->
49 50
     <script src="media_stream.js?v=1"></script><!-- media stream -->
@@ -228,7 +229,7 @@
228 229
           </form>
229 230
         </div>
230 231
         <div id="reloadPresentation"><a onclick='Prezi.reloadPresentation();'><i title="Reload Prezi" class="fa fa-repeat fa-lg"></i></a></div>
231
-        <div id="videospace" onmousemove="Toolbar.showToolbar();">
232
+        <div id="videospace" onmousemove="ToolbarToggler.showToolbar();">
232 233
             <div id="largeVideoContainer" class="videocontainer">
233 234
                 <div id="presentation"></div>
234 235
                 <div id="etherpad"></div>
@@ -253,13 +254,16 @@
253 254
                     <a class="bottomToolbarButton" data-toggle="popover" data-placement="top" data-content="Open / close chat" onclick='BottomToolbar.toggleChat();'>
254 255
                         <i id="chatBottomButton" class="icon-chat-simple"></i>
255 256
                     </a>
256
-                    <span id="unreadMessages"></span>
257 257
                 </span>
258 258
                 <span class="bottomToolbar_span">
259 259
                     <a class="bottomToolbarButton" data-toggle="popover" data-placement="top" data-content="Open / close contact list" onclick='BottomToolbar.toggleContactList();'>
260 260
                         <i id="contactListButton" class="icon-contactList"></i>
261 261
                     </a>
262
-                    <span id="unreadMessages"></span>
262
+                </span>
263
+                <span class="bottomToolbar_span">
264
+                    <a class="bottomToolbarButton" data-toggle="popover" data-placement="top" data-content="Show / hide film strip" onclick='BottomToolbar.toggleFilmStrip()'>
265
+                        <i id="filmStripButton" class="icon-filmstrip"></i>
266
+                    </a>
263 267
                 </span>
264 268
             </span>
265 269
         </div>

+ 2
- 2
prezi.js View File

@@ -22,7 +22,7 @@ var Prezi = (function (my) {
22 22
                 VideoLayout.setLargeVideoVisible(false);
23 23
                 $('#presentation>iframe').fadeIn(300, function() {
24 24
                     $('#presentation>iframe').css({opacity:'1'});
25
-                    Toolbar.dockToolbar(true);
25
+                    ToolbarToggler.dockToolbar(true);
26 26
                 });
27 27
             });
28 28
         }
@@ -33,7 +33,7 @@ var Prezi = (function (my) {
33 33
                     $('#reloadPresentation').css({display:'none'});
34 34
                     $('#largeVideo').fadeIn(300, function() {
35 35
                         VideoLayout.setLargeVideoVisible(true);
36
-                        Toolbar.dockToolbar(false);
36
+                        ToolbarToggler.dockToolbar(false);
37 37
                     });
38 38
                 });
39 39
             }

+ 0
- 81
toolbar.js View File

@@ -1,6 +1,4 @@
1 1
 var Toolbar = (function (my) {
2
-    var INITIAL_TOOLBAR_TIMEOUT = 20000;
3
-    var TOOLBAR_TIMEOUT = INITIAL_TOOLBAR_TIMEOUT;
4 2
 
5 3
     /**
6 4
      * Opens the lock room dialog.
@@ -199,61 +197,6 @@ var Toolbar = (function (my) {
199 197
             }
200 198
         }
201 199
     };
202
-
203
-    /**
204
-     * Shows the main toolbar.
205
-     */
206
-    my.showToolbar = function() {
207
-        if (!$('#header').is(':visible')) {
208
-            $('#header').show("slide", { direction: "up", duration: 300});
209
-            $('#subject').animate({top: "+=40"}, 300);
210
-
211
-            if (toolbarTimeout) {
212
-                clearTimeout(toolbarTimeout);
213
-                toolbarTimeout = null;
214
-            }
215
-            toolbarTimeout = setTimeout(hideToolbar, TOOLBAR_TIMEOUT);
216
-            TOOLBAR_TIMEOUT = 4000;
217
-        }
218
-
219
-        if (focus != null)
220
-        {
221
-//            TODO: Enable settings functionality. Need to uncomment the settings button in index.html.
222
-//            $('#settingsButton').css({visibility:"visible"});
223
-        }
224
-
225
-        // Show/hide desktop sharing button
226
-        showDesktopSharingButton();
227
-    };
228
-
229
-    /**
230
-     * Docks/undocks the toolbar.
231
-     *
232
-     * @param isDock indicates what operation to perform
233
-     */
234
-    my.dockToolbar = function(isDock) {
235
-        if (isDock) {
236
-            // First make sure the toolbar is shown.
237
-            if (!$('#header').is(':visible')) {
238
-                Toolbar.showToolbar();
239
-            }
240
-
241
-            // Then clear the time out, to dock the toolbar.
242
-            if (toolbarTimeout) {
243
-                clearTimeout(toolbarTimeout);
244
-                toolbarTimeout = null;
245
-            }
246
-        }
247
-        else {
248
-            if (!$('#header').is(':visible')) {
249
-                Toolbar.showToolbar();
250
-            }
251
-            else {
252
-                toolbarTimeout = setTimeout(hideToolbar, TOOLBAR_TIMEOUT);
253
-            }
254
-        }
255
-    };
256
-
257 200
     /**
258 201
      * Updates the lock button state.
259 202
      */
@@ -261,30 +204,6 @@ var Toolbar = (function (my) {
261 204
         buttonClick("#lockIcon", "icon-security icon-security-locked");
262 205
     };
263 206
 
264
-    /**
265
-     * Hides the toolbar.
266
-     */
267
-    var hideToolbar = function () {
268
-        var isToolbarHover = false;
269
-        $('#header').find('*').each(function () {
270
-            var id = $(this).attr('id');
271
-            if ($("#" + id + ":hover").length > 0) {
272
-                isToolbarHover = true;
273
-            }
274
-        });
275
-
276
-        clearTimeout(toolbarTimeout);
277
-        toolbarTimeout = null;
278
-
279
-        if (!isToolbarHover) {
280
-            $('#header').hide("slide", { direction: "up", duration: 300});
281
-            $('#subject').animate({top: "-=40"}, 300);
282
-        }
283
-        else {
284
-            toolbarTimeout = setTimeout(hideToolbar, TOOLBAR_TIMEOUT);
285
-        }
286
-    };
287
-
288 207
     // Shows or hides the 'recording' button.
289 208
     my.showRecordingButton = function (show) {
290 209
         if (!config.enableRecording) {

+ 100
- 0
toolbar_toggler.js View File

@@ -0,0 +1,100 @@
1
+var ToolbarToggler = (function(my) {
2
+    var INITIAL_TOOLBAR_TIMEOUT = 20000;
3
+    var TOOLBAR_TIMEOUT = INITIAL_TOOLBAR_TIMEOUT;
4
+    var toolbarTimeout;
5
+
6
+    /**
7
+     * Shows the main toolbar.
8
+     */
9
+    my.showToolbar = function() {
10
+        var header = $("#header"),
11
+            bottomToolbar = $("#bottomToolbar");
12
+        if (!header.is(':visible') || !bottomToolbar.is(":visible")) {
13
+            header.show("slide", { direction: "up", duration: 300});
14
+            $('#subject').animate({top: "+=40"}, 300);
15
+            if(!bottomToolbar.is(":visible")) {
16
+                bottomToolbar.show("slide", {direction: "right",cduration: 300});
17
+            }
18
+
19
+            if (toolbarTimeout) {
20
+                clearTimeout(toolbarTimeout);
21
+                toolbarTimeout = null;
22
+            }
23
+            toolbarTimeout = setTimeout(hideToolbar, TOOLBAR_TIMEOUT);
24
+            TOOLBAR_TIMEOUT = 4000;
25
+        }
26
+
27
+        if (focus != null)
28
+        {
29
+//            TODO: Enable settings functionality. Need to uncomment the settings button in index.html.
30
+//            $('#settingsButton').css({visibility:"visible"});
31
+        }
32
+
33
+        // Show/hide desktop sharing button
34
+        showDesktopSharingButton();
35
+    };
36
+
37
+    /**
38
+     * Hides the toolbar.
39
+     */
40
+    var hideToolbar = function () {
41
+        var header = $("#header"),
42
+            bottomToolbar = $("#bottomToolbar");
43
+        var isToolbarHover = false;
44
+        header.find('*').each(function () {
45
+            var id = $(this).attr('id');
46
+            if ($("#" + id + ":hover").length > 0) {
47
+                isToolbarHover = true;
48
+            }
49
+        });
50
+        if($("#bottomToolbar:hover").length > 0) {
51
+                isToolbarHover = true;
52
+        }
53
+
54
+        clearTimeout(toolbarTimeout);
55
+        toolbarTimeout = null;
56
+
57
+        if (!isToolbarHover) {
58
+            header.hide("slide", { direction: "up", duration: 300});
59
+            $('#subject').animate({top: "-=40"}, 300);
60
+            if(!$("#remoteVideos").is(":visible")) {
61
+                bottomToolbar.hide("slide", {direction: "right", cduration: 300});
62
+            }
63
+        }
64
+        else {
65
+            toolbarTimeout = setTimeout(hideToolbar, TOOLBAR_TIMEOUT);
66
+        }
67
+    };
68
+
69
+
70
+    /**
71
+     * Docks/undocks the toolbar.
72
+     *
73
+     * @param isDock indicates what operation to perform
74
+     */
75
+    my.dockToolbar = function(isDock) {
76
+        if (isDock) {
77
+            // First make sure the toolbar is shown.
78
+            if (!$('#header').is(':visible')) {
79
+                ToolbarToggler.showToolbar();
80
+            }
81
+
82
+            // Then clear the time out, to dock the toolbar.
83
+            if (toolbarTimeout) {
84
+                clearTimeout(toolbarTimeout);
85
+                toolbarTimeout = null;
86
+            }
87
+        }
88
+        else {
89
+            if (!$('#header').is(':visible')) {
90
+                ToolbarToggler.showToolbar();
91
+            }
92
+            else {
93
+                toolbarTimeout = setTimeout(hideToolbar, TOOLBAR_TIMEOUT);
94
+            }
95
+        }
96
+    };
97
+
98
+
99
+    return my;
100
+}(ToolbarToggler || {}));

Loading…
Cancel
Save