Commit f36021680f2ba77758d39bb0516f5a0d2f7d29e9

Authored by Fernando Brito
1 parent c9cf707e
Exists in master and in 2 other branches v2, wikilibras

[Wizard] Green/red button on all steps

app/views/v_libras/requests/_position_step.haml
... ... @@ -9,7 +9,9 @@
9 9 $(function () {
10 10 var optionsPosition = {
11 11 video: { width: 940, height: 530 },
12   - buttons: [ { id: 'b_loc_1', path: '/system/images/loc/p_1.png', clickable: false, start: 7.6, end: 8.5, x: 670, y: 340, delay: 300, value: null },
  12 + buttons: [ { id: 'btn-red-light3', path: '/system/images/video/red-button.png', clickable: false, start: 0.0, end: 19.5, x: 440, y: 510, delay: 300, value: null },
  13 + { id: 'btn-green-light3', path: '/system/images/video/green-button.png', clickable: false, start: 19.5, end: 999, x: 440, y: 510, delay: 300, value: null },
  14 + { id: 'b_loc_1', path: '/system/images/loc/p_1.png', clickable: false, start: 7.6, end: 8.5, x: 670, y: 340, delay: 300, value: null },
13 15 { id: 'b_loc_2', path: '/system/images/loc/p_2.png', clickable: false, start: 10, end: 10.5, x: 160, y: 340, delay: 300, value: null },
14 16 { id: 'b_loc_3', path: '/system/images/loc/p_3.png', clickable: false, start: 12, end: 12.5, x: 210, y: 40, delay: 300, value: null },
15 17 { id: 'b_loc_4', path: '/system/images/loc/p_4.png', clickable: false, start: 14, end: 14.5, x: 650, y: 80, delay: 300, value: null },
... ...
app/views/v_libras/requests/_service_step.haml
... ... @@ -17,7 +17,9 @@
17 17 $(function () {
18 18 var optionsService = {
19 19 video: { width: 940, height: 530 },
20   - buttons: [ { id: 'b_aS_1', path: '/system/images/sub_audio/p_1.png', clickable: false, start: 20, end: 21, x: 700, y: 390, delay: 300, value: null },
  20 + buttons: [ { id: 'btn-red-light2', path: '/system/images/video/red-button.png', clickable: false, start: 0.0, end: 26.5, x: 440, y: 510, delay: 300, value: null },
  21 + { id: 'btn-green-light2', path: '/system/images/video/green-button.png', clickable: false, start: 26.5, end: 999, x: 440, y: 510, delay: 300, value: null },
  22 + { id: 'b_aS_1', path: '/system/images/sub_audio/p_1.png', clickable: false, start: 20, end: 21, x: 700, y: 390, delay: 300, value: null },
21 23 { id: 'b_aS_2', path: '/system/images/sub_audio/p_2.png', clickable: false, start: 24.5, end: 25.5, x: 150, y: 410, delay: 300, value: null },
22 24 { id: 'btn-video-legenda', path: '/system/images/sub_audio/p_1.png', clickable: true, start: 26, end: 9999, x: 790, y: 410, delay: 300 },
23 25 { id: 'btn-video', path: '/system/images/sub_audio/p_2.png', clickable: true, start: 26, end: 9999, x: 35, y: 410, delay: 300 }
... ...
app/views/v_libras/requests/_size_step.haml
... ... @@ -10,7 +10,9 @@
10 10 $(function () {
11 11 var optionsSize = {
12 12 video: { width: 940, height: 530 },
13   - buttons: [ { id: 'b1_size_small', path: '/system/images/size/p_1.png', clickable: false, start: 6.8, end: 7.8, x: 688, y: 338, delay: 300, value: null },
  13 + buttons: [ { id: 'btn-red-light4', path: '/system/images/video/red-button.png', clickable: false, start: 0.0, end: 11.5, x: 440, y: 510, delay: 300, value: null },
  14 + { id: 'btn-green-light4', path: '/system/images/video/green-button.png', clickable: false, start: 11.5, end: 999, x: 440, y: 510, delay: 300, value: null },
  15 + { id: 'b1_size_small', path: '/system/images/size/p_1.png', clickable: false, start: 6.8, end: 7.8, x: 688, y: 338, delay: 300, value: null },
14 16 { id: 'b1_size_med', path: '/system/images/size/p_2.png', clickable: false, start: 8.2, end: 9.2, x: 628, y: 292, delay: 300, value: null },
15 17 { id: 'b1_size_big', path: '/system/images/size/p_3.png', clickable: false, start: 9.7, end: 10.7, x: 560, y: 240, delay: 300, value: null},
16 18 { id: 'b2_size_small', path: '/system/images/size/p_1.png', clickable: true, start: 11.3, end: 9999, x: 688, y: 338, delay: 300, value: "pequeno" },
... ...
app/views/v_libras/requests/_video_step.haml
... ... @@ -20,8 +20,8 @@
20 20 $(function () {
21 21 var optionsVideo = {
22 22 video: { width: 940, height: 530 },
23   - buttons: [ { id: 'btn-red-light', path: '/system/images/video/red-button.png', clickable: false, start: 0.0, end: 25, x: 440, y: 510, delay: 300, value: null },
24   - { id: 'btn-green-light', path: '/system/images/video/green-button.png', clickable: false, start: 25, end: 999, x: 440, y: 510, delay: 300, value: null }
  23 + buttons: [ { id: 'btn-red-light1', path: '/system/images/video/red-button.png', clickable: false, start: 0.0, end: 25, x: 440, y: 510, delay: 300, value: null },
  24 + { id: 'btn-green-light1', path: '/system/images/video/green-button.png', clickable: false, start: 25, end: 999, x: 440, y: 510, delay: 300, value: null }
25 25 ]
26 26 };
27 27  
... ...