From 35c7698b3dd2078e59700deecf8d2d726edcb36f Mon Sep 17 00:00:00 2001 From: Adabriand Furtado Date: Wed, 20 Jul 2016 00:34:22 -0300 Subject: [PATCH] Adicionado suporte ao Safari e novos campos no Enviar Sinal. --- view/css/main.css | 8 ++++++++ view/img/circular/md/plano-baixo-esquerda.mp4 | Bin 0 -> 104382 bytes view/img/circular/md/plano-baixo-tras.mp4 | Bin 0 -> 103872 bytes view/img/circular/md/plano-cima-direita.mp4 | Bin 0 -> 105934 bytes view/img/circular/md/plano-cima-frente.mp4 | Bin 0 -> 104305 bytes view/img/circular/md/plano-direita-baixo.mp4 | Bin 0 -> 104950 bytes view/img/circular/md/plano-direita-tras.mp4 | Bin 0 -> 105176 bytes view/img/circular/md/plano-esquerda-cima.mp4 | Bin 0 -> 105936 bytes view/img/circular/md/plano-esquerda-frente.mp4 | Bin 0 -> 106465 bytes view/img/circular/md/plano-frente-baixo.mp4 | Bin 0 -> 103932 bytes view/img/circular/md/plano-frente-direita.mp4 | Bin 0 -> 104186 bytes view/img/circular/md/plano-tras-cima.mp4 | Bin 0 -> 104860 bytes view/img/circular/md/plano-tras-esquerda.mp4 | Bin 0 -> 104625 bytes view/img/circular/md/raio-grande.mp4 | Bin 0 -> 57936 bytes view/img/circular/md/raio-normal.mp4 | Bin 0 -> 48964 bytes view/img/circular/md/raio-pequeno.mp4 | Bin 0 -> 39483 bytes view/img/circular/md/sentido-anti-horario.mp4 | Bin 0 -> 57830 bytes view/img/circular/md/sentido-horario.mp4 | Bin 0 -> 60349 bytes view/img/circular/md/velocidade-lento.mp4 | Bin 0 -> 69031 bytes view/img/circular/md/velocidade-normal.mp4 | Bin 0 -> 57801 bytes view/img/circular/md/velocidade-rapido.mp4 | Bin 0 -> 48719 bytes view/img/circular/me/plano-baixo-esquerda.mp4 | Bin 0 -> 105103 bytes view/img/circular/me/plano-baixo-tras.mp4 | Bin 0 -> 103814 bytes view/img/circular/me/plano-cima-direita.mp4 | Bin 0 -> 105789 bytes view/img/circular/me/plano-cima-frente.mp4 | Bin 0 -> 105619 bytes view/img/circular/me/plano-direita-baixo.mp4 | Bin 0 -> 106089 bytes view/img/circular/me/plano-direita-tras.mp4 | Bin 0 -> 103934 bytes view/img/circular/me/plano-esquerda-cima.mp4 | Bin 0 -> 105622 bytes view/img/circular/me/plano-esquerda-frente.mp4 | Bin 0 -> 104710 bytes view/img/circular/me/plano-frente-baixo.mp4 | Bin 0 -> 106161 bytes view/img/circular/me/plano-frente-direita.mp4 | Bin 0 -> 103759 bytes view/img/circular/me/plano-tras-cima.mp4 | Bin 0 -> 104100 bytes view/img/circular/me/plano-tras-esquerda.mp4 | Bin 0 -> 105079 bytes view/img/circular/me/raio-grande.mp4 | Bin 0 -> 61226 bytes view/img/circular/me/raio-normal.mp4 | Bin 0 -> 49866 bytes view/img/circular/me/raio-pequeno.mp4 | Bin 0 -> 40090 bytes view/img/circular/me/sentido-anti-horario.mp4 | Bin 0 -> 61020 bytes view/img/circular/me/sentido-horario.mp4 | Bin 0 -> 59617 bytes view/img/circular/me/velocidade-lento.mp4 | Bin 0 -> 71627 bytes view/img/circular/me/velocidade-normal.mp4 | Bin 0 -> 61097 bytes view/img/circular/me/velocidade-rapido.mp4 | Bin 0 -> 51560 bytes view/img/exf/duration-fast.mp4 | Bin 0 -> 89253 bytes view/img/exf/duration-normal.mp4 | Bin 0 -> 98419 bytes view/img/exf/duration-slow.mp4 | Bin 0 -> 108991 bytes view/img/exf/velocity-fast.mp4 | Bin 0 -> 89471 bytes view/img/exf/velocity-normal.mp4 | Bin 0 -> 98062 bytes view/img/exf/velocity-slow.mp4 | Bin 0 -> 108771 bytes view/img/mov/CIRCULAR.mp4 | Bin 0 -> 49422 bytes view/img/mov/PONTUAL.mp4 | Bin 0 -> 83326 bytes view/img/mov/RETILINEO.mp4 | Bin 0 -> 93108 bytes view/img/mov/SEMICIRCULAR.mp4 | Bin 0 -> 30715 bytes view/img/semicircular/md/plano-baixo-esquerda.mp4 | Bin 0 -> 82611 bytes view/img/semicircular/md/plano-baixo-tras.mp4 | Bin 0 -> 81624 bytes view/img/semicircular/md/plano-cima-direita.mp4 | Bin 0 -> 81786 bytes view/img/semicircular/md/plano-cima-frente.mp4 | Bin 0 -> 81984 bytes view/img/semicircular/md/plano-direita-baixo.mp4 | Bin 0 -> 82543 bytes view/img/semicircular/md/plano-direita-tras.mp4 | Bin 0 -> 82128 bytes view/img/semicircular/md/plano-esquerda-cima.mp4 | Bin 0 -> 82137 bytes view/img/semicircular/md/plano-esquerda-frente.mp4 | Bin 0 -> 82460 bytes view/img/semicircular/md/plano-frente-baixo.mp4 | Bin 0 -> 82242 bytes view/img/semicircular/md/plano-frente-direita.mp4 | Bin 0 -> 81068 bytes view/img/semicircular/md/plano-tras-cima.mp4 | Bin 0 -> 82346 bytes view/img/semicircular/md/plano-tras-esquerda.mp4 | Bin 0 -> 82718 bytes view/img/semicircular/md/raio-grande.mp4 | Bin 0 -> 31161 bytes view/img/semicircular/md/raio-normal.mp4 | Bin 0 -> 25833 bytes view/img/semicircular/md/raio-pequeno.mp4 | Bin 0 -> 20296 bytes view/img/semicircular/md/sentido-anti-horario.mp4 | Bin 0 -> 82735 bytes view/img/semicircular/md/sentido-horario.mp4 | Bin 0 -> 81604 bytes view/img/semicircular/md/velocidade-lento.mp4 | Bin 0 -> 37159 bytes view/img/semicircular/md/velocidade-normal.mp4 | Bin 0 -> 31240 bytes view/img/semicircular/md/velocidade-rapido.mp4 | Bin 0 -> 25708 bytes view/img/semicircular/me/plano-baixo-esquerda.mp4 | Bin 0 -> 82983 bytes view/img/semicircular/me/plano-baixo-tras.mp4 | Bin 0 -> 82850 bytes view/img/semicircular/me/plano-cima-direita.mp4 | Bin 0 -> 81999 bytes view/img/semicircular/me/plano-cima-frente.mp4 | Bin 0 -> 81901 bytes view/img/semicircular/me/plano-direita-baixo.mp4 | Bin 0 -> 82595 bytes view/img/semicircular/me/plano-direita-tras.mp4 | Bin 0 -> 82624 bytes view/img/semicircular/me/plano-esquerda-cima.mp4 | Bin 0 -> 83210 bytes view/img/semicircular/me/plano-esquerda-frente.mp4 | Bin 0 -> 82129 bytes view/img/semicircular/me/plano-frente-baixo.mp4 | Bin 0 -> 82679 bytes view/img/semicircular/me/plano-frente-direita.mp4 | Bin 0 -> 81849 bytes view/img/semicircular/me/plano-tras-cima.mp4 | Bin 0 -> 81941 bytes view/img/semicircular/me/plano-tras-esquerda.mp4 | Bin 0 -> 82391 bytes view/img/semicircular/me/raio-grande.mp4 | Bin 0 -> 30953 bytes view/img/semicircular/me/raio-normal.mp4 | Bin 0 -> 25491 bytes view/img/semicircular/me/raio-pequeno.mp4 | Bin 0 -> 19543 bytes view/img/semicircular/me/sentido-anti-horario.mp4 | Bin 0 -> 83407 bytes view/img/semicircular/me/sentido-horario.mp4 | Bin 0 -> 81895 bytes view/img/semicircular/me/velocidade-lento.mp4 | Bin 0 -> 36808 bytes view/img/semicircular/me/velocidade-normal.mp4 | Bin 0 -> 30744 bytes view/img/semicircular/me/velocidade-rapido.mp4 | Bin 0 -> 25804 bytes view/js/helpers/video-helper.js | 26 +++++++++++++++++--------- view/js/render-sign.js | 42 ++++++++++++++++++++++-------------------- view/js/submit-sign.js | 166 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------ view/js/teached-signs.js | 47 +++++++++++++++++++++++------------------------ view/js/wikilibras.js | 5 ++--- view/templates/facial/duracao/passo-1.html | 15 +++++++++------ view/templates/facial/transicao/passo-1.html | 15 +++++++++------ view/templates/hand/movimento/passo-1.html | 30 ++++++++++++------------------ view/templates/hand/plano/passo-1.html | 48 ++++++++++++++++++++++++------------------------ view/templates/hand/raio/passo-1.html | 15 +++++++++------ view/templates/hand/sentido_inverso/passo-1.html | 10 ++++++---- view/templates/hand/velocidade/passo-1.html | 15 +++++++++------ view/templates/index.html | 113 ++++++++++++++++++----------------------------------------------------------------------------------------------- view/templates/submit-sign/submit-sign.html | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 105 files changed, 414 insertions(+), 251 deletions(-) create mode 100644 view/img/circular/md/plano-baixo-esquerda.mp4 create mode 100644 view/img/circular/md/plano-baixo-tras.mp4 create mode 100644 view/img/circular/md/plano-cima-direita.mp4 create mode 100644 view/img/circular/md/plano-cima-frente.mp4 create mode 100644 view/img/circular/md/plano-direita-baixo.mp4 create mode 100644 view/img/circular/md/plano-direita-tras.mp4 create mode 100644 view/img/circular/md/plano-esquerda-cima.mp4 create mode 100644 view/img/circular/md/plano-esquerda-frente.mp4 create mode 100644 view/img/circular/md/plano-frente-baixo.mp4 create mode 100644 view/img/circular/md/plano-frente-direita.mp4 create mode 100644 view/img/circular/md/plano-tras-cima.mp4 create mode 100644 view/img/circular/md/plano-tras-esquerda.mp4 create mode 100644 view/img/circular/md/raio-grande.mp4 create mode 100644 view/img/circular/md/raio-normal.mp4 create mode 100644 view/img/circular/md/raio-pequeno.mp4 create mode 100644 view/img/circular/md/sentido-anti-horario.mp4 create mode 100644 view/img/circular/md/sentido-horario.mp4 create mode 100644 view/img/circular/md/velocidade-lento.mp4 create mode 100644 view/img/circular/md/velocidade-normal.mp4 create mode 100644 view/img/circular/md/velocidade-rapido.mp4 create mode 100644 view/img/circular/me/plano-baixo-esquerda.mp4 create mode 100644 view/img/circular/me/plano-baixo-tras.mp4 create mode 100644 view/img/circular/me/plano-cima-direita.mp4 create mode 100644 view/img/circular/me/plano-cima-frente.mp4 create mode 100644 view/img/circular/me/plano-direita-baixo.mp4 create mode 100644 view/img/circular/me/plano-direita-tras.mp4 create mode 100644 view/img/circular/me/plano-esquerda-cima.mp4 create mode 100644 view/img/circular/me/plano-esquerda-frente.mp4 create mode 100644 view/img/circular/me/plano-frente-baixo.mp4 create mode 100644 view/img/circular/me/plano-frente-direita.mp4 create mode 100644 view/img/circular/me/plano-tras-cima.mp4 create mode 100644 view/img/circular/me/plano-tras-esquerda.mp4 create mode 100644 view/img/circular/me/raio-grande.mp4 create mode 100644 view/img/circular/me/raio-normal.mp4 create mode 100644 view/img/circular/me/raio-pequeno.mp4 create mode 100644 view/img/circular/me/sentido-anti-horario.mp4 create mode 100644 view/img/circular/me/sentido-horario.mp4 create mode 100644 view/img/circular/me/velocidade-lento.mp4 create mode 100644 view/img/circular/me/velocidade-normal.mp4 create mode 100644 view/img/circular/me/velocidade-rapido.mp4 create mode 100644 view/img/exf/duration-fast.mp4 create mode 100644 view/img/exf/duration-normal.mp4 create mode 100644 view/img/exf/duration-slow.mp4 create mode 100644 view/img/exf/velocity-fast.mp4 create mode 100644 view/img/exf/velocity-normal.mp4 create mode 100644 view/img/exf/velocity-slow.mp4 create mode 100644 view/img/mov/CIRCULAR.mp4 create mode 100644 view/img/mov/PONTUAL.mp4 create mode 100644 view/img/mov/RETILINEO.mp4 create mode 100644 view/img/mov/SEMICIRCULAR.mp4 create mode 100644 view/img/semicircular/md/plano-baixo-esquerda.mp4 create mode 100644 view/img/semicircular/md/plano-baixo-tras.mp4 create mode 100644 view/img/semicircular/md/plano-cima-direita.mp4 create mode 100644 view/img/semicircular/md/plano-cima-frente.mp4 create mode 100644 view/img/semicircular/md/plano-direita-baixo.mp4 create mode 100644 view/img/semicircular/md/plano-direita-tras.mp4 create mode 100644 view/img/semicircular/md/plano-esquerda-cima.mp4 create mode 100644 view/img/semicircular/md/plano-esquerda-frente.mp4 create mode 100644 view/img/semicircular/md/plano-frente-baixo.mp4 create mode 100644 view/img/semicircular/md/plano-frente-direita.mp4 create mode 100644 view/img/semicircular/md/plano-tras-cima.mp4 create mode 100644 view/img/semicircular/md/plano-tras-esquerda.mp4 create mode 100644 view/img/semicircular/md/raio-grande.mp4 create mode 100644 view/img/semicircular/md/raio-normal.mp4 create mode 100644 view/img/semicircular/md/raio-pequeno.mp4 create mode 100644 view/img/semicircular/md/sentido-anti-horario.mp4 create mode 100644 view/img/semicircular/md/sentido-horario.mp4 create mode 100644 view/img/semicircular/md/velocidade-lento.mp4 create mode 100644 view/img/semicircular/md/velocidade-normal.mp4 create mode 100644 view/img/semicircular/md/velocidade-rapido.mp4 create mode 100644 view/img/semicircular/me/plano-baixo-esquerda.mp4 create mode 100644 view/img/semicircular/me/plano-baixo-tras.mp4 create mode 100644 view/img/semicircular/me/plano-cima-direita.mp4 create mode 100644 view/img/semicircular/me/plano-cima-frente.mp4 create mode 100644 view/img/semicircular/me/plano-direita-baixo.mp4 create mode 100644 view/img/semicircular/me/plano-direita-tras.mp4 create mode 100644 view/img/semicircular/me/plano-esquerda-cima.mp4 create mode 100644 view/img/semicircular/me/plano-esquerda-frente.mp4 create mode 100644 view/img/semicircular/me/plano-frente-baixo.mp4 create mode 100644 view/img/semicircular/me/plano-frente-direita.mp4 create mode 100644 view/img/semicircular/me/plano-tras-cima.mp4 create mode 100644 view/img/semicircular/me/plano-tras-esquerda.mp4 create mode 100644 view/img/semicircular/me/raio-grande.mp4 create mode 100644 view/img/semicircular/me/raio-normal.mp4 create mode 100644 view/img/semicircular/me/raio-pequeno.mp4 create mode 100644 view/img/semicircular/me/sentido-anti-horario.mp4 create mode 100644 view/img/semicircular/me/sentido-horario.mp4 create mode 100644 view/img/semicircular/me/velocidade-lento.mp4 create mode 100644 view/img/semicircular/me/velocidade-normal.mp4 create mode 100644 view/img/semicircular/me/velocidade-rapido.mp4 create mode 100644 view/templates/submit-sign/submit-sign.html diff --git a/view/css/main.css b/view/css/main.css index 170fc0d..53f6a0b 100644 --- a/view/css/main.css +++ b/view/css/main.css @@ -8,6 +8,10 @@ body nav.navbar:first-child { display: none; } +.navbar-wl .navbar-nav { + padding-left: 60px; +} + footer { display: none; } @@ -534,6 +538,10 @@ ul.rig.columns-4 li { width: 100%; } +#thanks-screen a { + text-decoration: underline; +} + #completed-all-task-msg { display: none; } diff --git a/view/img/circular/md/plano-baixo-esquerda.mp4 b/view/img/circular/md/plano-baixo-esquerda.mp4 new file mode 100644 index 0000000..c9a8094 Binary files /dev/null and b/view/img/circular/md/plano-baixo-esquerda.mp4 differ diff --git a/view/img/circular/md/plano-baixo-tras.mp4 b/view/img/circular/md/plano-baixo-tras.mp4 new file mode 100644 index 0000000..97fd5b9 Binary files /dev/null and b/view/img/circular/md/plano-baixo-tras.mp4 differ diff --git a/view/img/circular/md/plano-cima-direita.mp4 b/view/img/circular/md/plano-cima-direita.mp4 new file mode 100644 index 0000000..8eca7c7 Binary files /dev/null and b/view/img/circular/md/plano-cima-direita.mp4 differ diff --git a/view/img/circular/md/plano-cima-frente.mp4 b/view/img/circular/md/plano-cima-frente.mp4 new file mode 100644 index 0000000..86671c9 Binary files /dev/null and b/view/img/circular/md/plano-cima-frente.mp4 differ diff --git a/view/img/circular/md/plano-direita-baixo.mp4 b/view/img/circular/md/plano-direita-baixo.mp4 new file mode 100644 index 0000000..53be78f Binary files /dev/null and b/view/img/circular/md/plano-direita-baixo.mp4 differ diff --git a/view/img/circular/md/plano-direita-tras.mp4 b/view/img/circular/md/plano-direita-tras.mp4 new file mode 100644 index 0000000..597762a Binary files /dev/null and b/view/img/circular/md/plano-direita-tras.mp4 differ diff --git a/view/img/circular/md/plano-esquerda-cima.mp4 b/view/img/circular/md/plano-esquerda-cima.mp4 new file mode 100644 index 0000000..069c33a Binary files /dev/null and b/view/img/circular/md/plano-esquerda-cima.mp4 differ diff --git a/view/img/circular/md/plano-esquerda-frente.mp4 b/view/img/circular/md/plano-esquerda-frente.mp4 new file mode 100644 index 0000000..060a1db Binary files /dev/null and b/view/img/circular/md/plano-esquerda-frente.mp4 differ diff --git a/view/img/circular/md/plano-frente-baixo.mp4 b/view/img/circular/md/plano-frente-baixo.mp4 new file mode 100644 index 0000000..45c76fc Binary files /dev/null and b/view/img/circular/md/plano-frente-baixo.mp4 differ diff --git a/view/img/circular/md/plano-frente-direita.mp4 b/view/img/circular/md/plano-frente-direita.mp4 new file mode 100644 index 0000000..ebe378b Binary files /dev/null and b/view/img/circular/md/plano-frente-direita.mp4 differ diff --git a/view/img/circular/md/plano-tras-cima.mp4 b/view/img/circular/md/plano-tras-cima.mp4 new file mode 100644 index 0000000..3dc6b91 Binary files /dev/null and b/view/img/circular/md/plano-tras-cima.mp4 differ diff --git a/view/img/circular/md/plano-tras-esquerda.mp4 b/view/img/circular/md/plano-tras-esquerda.mp4 new file mode 100644 index 0000000..92ff0fa Binary files /dev/null and b/view/img/circular/md/plano-tras-esquerda.mp4 differ diff --git a/view/img/circular/md/raio-grande.mp4 b/view/img/circular/md/raio-grande.mp4 new file mode 100644 index 0000000..757ad41 Binary files /dev/null and b/view/img/circular/md/raio-grande.mp4 differ diff --git a/view/img/circular/md/raio-normal.mp4 b/view/img/circular/md/raio-normal.mp4 new file mode 100644 index 0000000..0f7a1a8 Binary files /dev/null and b/view/img/circular/md/raio-normal.mp4 differ diff --git a/view/img/circular/md/raio-pequeno.mp4 b/view/img/circular/md/raio-pequeno.mp4 new file mode 100644 index 0000000..bc384ff Binary files /dev/null and b/view/img/circular/md/raio-pequeno.mp4 differ diff --git a/view/img/circular/md/sentido-anti-horario.mp4 b/view/img/circular/md/sentido-anti-horario.mp4 new file mode 100644 index 0000000..5568da0 Binary files /dev/null and b/view/img/circular/md/sentido-anti-horario.mp4 differ diff --git a/view/img/circular/md/sentido-horario.mp4 b/view/img/circular/md/sentido-horario.mp4 new file mode 100644 index 0000000..75fea8d Binary files /dev/null and b/view/img/circular/md/sentido-horario.mp4 differ diff --git a/view/img/circular/md/velocidade-lento.mp4 b/view/img/circular/md/velocidade-lento.mp4 new file mode 100644 index 0000000..035b952 Binary files /dev/null and b/view/img/circular/md/velocidade-lento.mp4 differ diff --git a/view/img/circular/md/velocidade-normal.mp4 b/view/img/circular/md/velocidade-normal.mp4 new file mode 100644 index 0000000..99a9fd1 Binary files /dev/null and b/view/img/circular/md/velocidade-normal.mp4 differ diff --git a/view/img/circular/md/velocidade-rapido.mp4 b/view/img/circular/md/velocidade-rapido.mp4 new file mode 100644 index 0000000..6228d00 Binary files /dev/null and b/view/img/circular/md/velocidade-rapido.mp4 differ diff --git a/view/img/circular/me/plano-baixo-esquerda.mp4 b/view/img/circular/me/plano-baixo-esquerda.mp4 new file mode 100644 index 0000000..fd66c9f Binary files /dev/null and b/view/img/circular/me/plano-baixo-esquerda.mp4 differ diff --git a/view/img/circular/me/plano-baixo-tras.mp4 b/view/img/circular/me/plano-baixo-tras.mp4 new file mode 100644 index 0000000..7636639 Binary files /dev/null and b/view/img/circular/me/plano-baixo-tras.mp4 differ diff --git a/view/img/circular/me/plano-cima-direita.mp4 b/view/img/circular/me/plano-cima-direita.mp4 new file mode 100644 index 0000000..cdcc4bb Binary files /dev/null and b/view/img/circular/me/plano-cima-direita.mp4 differ diff --git a/view/img/circular/me/plano-cima-frente.mp4 b/view/img/circular/me/plano-cima-frente.mp4 new file mode 100644 index 0000000..cec003d Binary files /dev/null and b/view/img/circular/me/plano-cima-frente.mp4 differ diff --git a/view/img/circular/me/plano-direita-baixo.mp4 b/view/img/circular/me/plano-direita-baixo.mp4 new file mode 100644 index 0000000..d61ae29 Binary files /dev/null and b/view/img/circular/me/plano-direita-baixo.mp4 differ diff --git a/view/img/circular/me/plano-direita-tras.mp4 b/view/img/circular/me/plano-direita-tras.mp4 new file mode 100644 index 0000000..eb027bf Binary files /dev/null and b/view/img/circular/me/plano-direita-tras.mp4 differ diff --git a/view/img/circular/me/plano-esquerda-cima.mp4 b/view/img/circular/me/plano-esquerda-cima.mp4 new file mode 100644 index 0000000..2e93b8b Binary files /dev/null and b/view/img/circular/me/plano-esquerda-cima.mp4 differ diff --git a/view/img/circular/me/plano-esquerda-frente.mp4 b/view/img/circular/me/plano-esquerda-frente.mp4 new file mode 100644 index 0000000..0070522 Binary files /dev/null and b/view/img/circular/me/plano-esquerda-frente.mp4 differ diff --git a/view/img/circular/me/plano-frente-baixo.mp4 b/view/img/circular/me/plano-frente-baixo.mp4 new file mode 100644 index 0000000..0e45518 Binary files /dev/null and b/view/img/circular/me/plano-frente-baixo.mp4 differ diff --git a/view/img/circular/me/plano-frente-direita.mp4 b/view/img/circular/me/plano-frente-direita.mp4 new file mode 100644 index 0000000..9b18d7c Binary files /dev/null and b/view/img/circular/me/plano-frente-direita.mp4 differ diff --git a/view/img/circular/me/plano-tras-cima.mp4 b/view/img/circular/me/plano-tras-cima.mp4 new file mode 100644 index 0000000..b30f15c Binary files /dev/null and b/view/img/circular/me/plano-tras-cima.mp4 differ diff --git a/view/img/circular/me/plano-tras-esquerda.mp4 b/view/img/circular/me/plano-tras-esquerda.mp4 new file mode 100644 index 0000000..a29027d Binary files /dev/null and b/view/img/circular/me/plano-tras-esquerda.mp4 differ diff --git a/view/img/circular/me/raio-grande.mp4 b/view/img/circular/me/raio-grande.mp4 new file mode 100644 index 0000000..746944d Binary files /dev/null and b/view/img/circular/me/raio-grande.mp4 differ diff --git a/view/img/circular/me/raio-normal.mp4 b/view/img/circular/me/raio-normal.mp4 new file mode 100644 index 0000000..443cfc7 Binary files /dev/null and b/view/img/circular/me/raio-normal.mp4 differ diff --git a/view/img/circular/me/raio-pequeno.mp4 b/view/img/circular/me/raio-pequeno.mp4 new file mode 100644 index 0000000..46abea9 Binary files /dev/null and b/view/img/circular/me/raio-pequeno.mp4 differ diff --git a/view/img/circular/me/sentido-anti-horario.mp4 b/view/img/circular/me/sentido-anti-horario.mp4 new file mode 100644 index 0000000..841af08 Binary files /dev/null and b/view/img/circular/me/sentido-anti-horario.mp4 differ diff --git a/view/img/circular/me/sentido-horario.mp4 b/view/img/circular/me/sentido-horario.mp4 new file mode 100644 index 0000000..b7000d6 Binary files /dev/null and b/view/img/circular/me/sentido-horario.mp4 differ diff --git a/view/img/circular/me/velocidade-lento.mp4 b/view/img/circular/me/velocidade-lento.mp4 new file mode 100644 index 0000000..7d91975 Binary files /dev/null and b/view/img/circular/me/velocidade-lento.mp4 differ diff --git a/view/img/circular/me/velocidade-normal.mp4 b/view/img/circular/me/velocidade-normal.mp4 new file mode 100644 index 0000000..75fd1b9 Binary files /dev/null and b/view/img/circular/me/velocidade-normal.mp4 differ diff --git a/view/img/circular/me/velocidade-rapido.mp4 b/view/img/circular/me/velocidade-rapido.mp4 new file mode 100644 index 0000000..21f1465 Binary files /dev/null and b/view/img/circular/me/velocidade-rapido.mp4 differ diff --git a/view/img/exf/duration-fast.mp4 b/view/img/exf/duration-fast.mp4 new file mode 100644 index 0000000..89fe07e Binary files /dev/null and b/view/img/exf/duration-fast.mp4 differ diff --git a/view/img/exf/duration-normal.mp4 b/view/img/exf/duration-normal.mp4 new file mode 100644 index 0000000..98a5833 Binary files /dev/null and b/view/img/exf/duration-normal.mp4 differ diff --git a/view/img/exf/duration-slow.mp4 b/view/img/exf/duration-slow.mp4 new file mode 100644 index 0000000..53d3cfd Binary files /dev/null and b/view/img/exf/duration-slow.mp4 differ diff --git a/view/img/exf/velocity-fast.mp4 b/view/img/exf/velocity-fast.mp4 new file mode 100644 index 0000000..6dadddc Binary files /dev/null and b/view/img/exf/velocity-fast.mp4 differ diff --git a/view/img/exf/velocity-normal.mp4 b/view/img/exf/velocity-normal.mp4 new file mode 100644 index 0000000..ae189c2 Binary files /dev/null and b/view/img/exf/velocity-normal.mp4 differ diff --git a/view/img/exf/velocity-slow.mp4 b/view/img/exf/velocity-slow.mp4 new file mode 100644 index 0000000..8c73f23 Binary files /dev/null and b/view/img/exf/velocity-slow.mp4 differ diff --git a/view/img/mov/CIRCULAR.mp4 b/view/img/mov/CIRCULAR.mp4 new file mode 100644 index 0000000..2ca4b13 Binary files /dev/null and b/view/img/mov/CIRCULAR.mp4 differ diff --git a/view/img/mov/PONTUAL.mp4 b/view/img/mov/PONTUAL.mp4 new file mode 100644 index 0000000..9f930ef Binary files /dev/null and b/view/img/mov/PONTUAL.mp4 differ diff --git a/view/img/mov/RETILINEO.mp4 b/view/img/mov/RETILINEO.mp4 new file mode 100644 index 0000000..00bac7d Binary files /dev/null and b/view/img/mov/RETILINEO.mp4 differ diff --git a/view/img/mov/SEMICIRCULAR.mp4 b/view/img/mov/SEMICIRCULAR.mp4 new file mode 100644 index 0000000..0a36ebb Binary files /dev/null and b/view/img/mov/SEMICIRCULAR.mp4 differ diff --git a/view/img/semicircular/md/plano-baixo-esquerda.mp4 b/view/img/semicircular/md/plano-baixo-esquerda.mp4 new file mode 100644 index 0000000..e890921 Binary files /dev/null and b/view/img/semicircular/md/plano-baixo-esquerda.mp4 differ diff --git a/view/img/semicircular/md/plano-baixo-tras.mp4 b/view/img/semicircular/md/plano-baixo-tras.mp4 new file mode 100644 index 0000000..efa9472 Binary files /dev/null and b/view/img/semicircular/md/plano-baixo-tras.mp4 differ diff --git a/view/img/semicircular/md/plano-cima-direita.mp4 b/view/img/semicircular/md/plano-cima-direita.mp4 new file mode 100644 index 0000000..aa584d9 Binary files /dev/null and b/view/img/semicircular/md/plano-cima-direita.mp4 differ diff --git a/view/img/semicircular/md/plano-cima-frente.mp4 b/view/img/semicircular/md/plano-cima-frente.mp4 new file mode 100644 index 0000000..f4d6f4e Binary files /dev/null and b/view/img/semicircular/md/plano-cima-frente.mp4 differ diff --git a/view/img/semicircular/md/plano-direita-baixo.mp4 b/view/img/semicircular/md/plano-direita-baixo.mp4 new file mode 100644 index 0000000..b7843b4 Binary files /dev/null and b/view/img/semicircular/md/plano-direita-baixo.mp4 differ diff --git a/view/img/semicircular/md/plano-direita-tras.mp4 b/view/img/semicircular/md/plano-direita-tras.mp4 new file mode 100644 index 0000000..b2a2024 Binary files /dev/null and b/view/img/semicircular/md/plano-direita-tras.mp4 differ diff --git a/view/img/semicircular/md/plano-esquerda-cima.mp4 b/view/img/semicircular/md/plano-esquerda-cima.mp4 new file mode 100644 index 0000000..2479aa8 Binary files /dev/null and b/view/img/semicircular/md/plano-esquerda-cima.mp4 differ diff --git a/view/img/semicircular/md/plano-esquerda-frente.mp4 b/view/img/semicircular/md/plano-esquerda-frente.mp4 new file mode 100644 index 0000000..6b10f40 Binary files /dev/null and b/view/img/semicircular/md/plano-esquerda-frente.mp4 differ diff --git a/view/img/semicircular/md/plano-frente-baixo.mp4 b/view/img/semicircular/md/plano-frente-baixo.mp4 new file mode 100644 index 0000000..9881415 Binary files /dev/null and b/view/img/semicircular/md/plano-frente-baixo.mp4 differ diff --git a/view/img/semicircular/md/plano-frente-direita.mp4 b/view/img/semicircular/md/plano-frente-direita.mp4 new file mode 100644 index 0000000..0469445 Binary files /dev/null and b/view/img/semicircular/md/plano-frente-direita.mp4 differ diff --git a/view/img/semicircular/md/plano-tras-cima.mp4 b/view/img/semicircular/md/plano-tras-cima.mp4 new file mode 100644 index 0000000..8c7275a Binary files /dev/null and b/view/img/semicircular/md/plano-tras-cima.mp4 differ diff --git a/view/img/semicircular/md/plano-tras-esquerda.mp4 b/view/img/semicircular/md/plano-tras-esquerda.mp4 new file mode 100644 index 0000000..20fbb08 Binary files /dev/null and b/view/img/semicircular/md/plano-tras-esquerda.mp4 differ diff --git a/view/img/semicircular/md/raio-grande.mp4 b/view/img/semicircular/md/raio-grande.mp4 new file mode 100644 index 0000000..adbb3c3 Binary files /dev/null and b/view/img/semicircular/md/raio-grande.mp4 differ diff --git a/view/img/semicircular/md/raio-normal.mp4 b/view/img/semicircular/md/raio-normal.mp4 new file mode 100644 index 0000000..4b771ac Binary files /dev/null and b/view/img/semicircular/md/raio-normal.mp4 differ diff --git a/view/img/semicircular/md/raio-pequeno.mp4 b/view/img/semicircular/md/raio-pequeno.mp4 new file mode 100644 index 0000000..aa23dc8 Binary files /dev/null and b/view/img/semicircular/md/raio-pequeno.mp4 differ diff --git a/view/img/semicircular/md/sentido-anti-horario.mp4 b/view/img/semicircular/md/sentido-anti-horario.mp4 new file mode 100644 index 0000000..773cb34 Binary files /dev/null and b/view/img/semicircular/md/sentido-anti-horario.mp4 differ diff --git a/view/img/semicircular/md/sentido-horario.mp4 b/view/img/semicircular/md/sentido-horario.mp4 new file mode 100644 index 0000000..68b292e Binary files /dev/null and b/view/img/semicircular/md/sentido-horario.mp4 differ diff --git a/view/img/semicircular/md/velocidade-lento.mp4 b/view/img/semicircular/md/velocidade-lento.mp4 new file mode 100644 index 0000000..970dd8c Binary files /dev/null and b/view/img/semicircular/md/velocidade-lento.mp4 differ diff --git a/view/img/semicircular/md/velocidade-normal.mp4 b/view/img/semicircular/md/velocidade-normal.mp4 new file mode 100644 index 0000000..745ac8d Binary files /dev/null and b/view/img/semicircular/md/velocidade-normal.mp4 differ diff --git a/view/img/semicircular/md/velocidade-rapido.mp4 b/view/img/semicircular/md/velocidade-rapido.mp4 new file mode 100644 index 0000000..175b9dd Binary files /dev/null and b/view/img/semicircular/md/velocidade-rapido.mp4 differ diff --git a/view/img/semicircular/me/plano-baixo-esquerda.mp4 b/view/img/semicircular/me/plano-baixo-esquerda.mp4 new file mode 100644 index 0000000..c78daff Binary files /dev/null and b/view/img/semicircular/me/plano-baixo-esquerda.mp4 differ diff --git a/view/img/semicircular/me/plano-baixo-tras.mp4 b/view/img/semicircular/me/plano-baixo-tras.mp4 new file mode 100644 index 0000000..caa29c5 Binary files /dev/null and b/view/img/semicircular/me/plano-baixo-tras.mp4 differ diff --git a/view/img/semicircular/me/plano-cima-direita.mp4 b/view/img/semicircular/me/plano-cima-direita.mp4 new file mode 100644 index 0000000..a728ec2 Binary files /dev/null and b/view/img/semicircular/me/plano-cima-direita.mp4 differ diff --git a/view/img/semicircular/me/plano-cima-frente.mp4 b/view/img/semicircular/me/plano-cima-frente.mp4 new file mode 100644 index 0000000..b6ec981 Binary files /dev/null and b/view/img/semicircular/me/plano-cima-frente.mp4 differ diff --git a/view/img/semicircular/me/plano-direita-baixo.mp4 b/view/img/semicircular/me/plano-direita-baixo.mp4 new file mode 100644 index 0000000..9233667 Binary files /dev/null and b/view/img/semicircular/me/plano-direita-baixo.mp4 differ diff --git a/view/img/semicircular/me/plano-direita-tras.mp4 b/view/img/semicircular/me/plano-direita-tras.mp4 new file mode 100644 index 0000000..4d638ed Binary files /dev/null and b/view/img/semicircular/me/plano-direita-tras.mp4 differ diff --git a/view/img/semicircular/me/plano-esquerda-cima.mp4 b/view/img/semicircular/me/plano-esquerda-cima.mp4 new file mode 100644 index 0000000..55329d0 Binary files /dev/null and b/view/img/semicircular/me/plano-esquerda-cima.mp4 differ diff --git a/view/img/semicircular/me/plano-esquerda-frente.mp4 b/view/img/semicircular/me/plano-esquerda-frente.mp4 new file mode 100644 index 0000000..ac021e7 Binary files /dev/null and b/view/img/semicircular/me/plano-esquerda-frente.mp4 differ diff --git a/view/img/semicircular/me/plano-frente-baixo.mp4 b/view/img/semicircular/me/plano-frente-baixo.mp4 new file mode 100644 index 0000000..f4125ce Binary files /dev/null and b/view/img/semicircular/me/plano-frente-baixo.mp4 differ diff --git a/view/img/semicircular/me/plano-frente-direita.mp4 b/view/img/semicircular/me/plano-frente-direita.mp4 new file mode 100644 index 0000000..3db9183 Binary files /dev/null and b/view/img/semicircular/me/plano-frente-direita.mp4 differ diff --git a/view/img/semicircular/me/plano-tras-cima.mp4 b/view/img/semicircular/me/plano-tras-cima.mp4 new file mode 100644 index 0000000..4c6d1f8 Binary files /dev/null and b/view/img/semicircular/me/plano-tras-cima.mp4 differ diff --git a/view/img/semicircular/me/plano-tras-esquerda.mp4 b/view/img/semicircular/me/plano-tras-esquerda.mp4 new file mode 100644 index 0000000..ed6bb5a Binary files /dev/null and b/view/img/semicircular/me/plano-tras-esquerda.mp4 differ diff --git a/view/img/semicircular/me/raio-grande.mp4 b/view/img/semicircular/me/raio-grande.mp4 new file mode 100644 index 0000000..84595e0 Binary files /dev/null and b/view/img/semicircular/me/raio-grande.mp4 differ diff --git a/view/img/semicircular/me/raio-normal.mp4 b/view/img/semicircular/me/raio-normal.mp4 new file mode 100644 index 0000000..a1ead95 Binary files /dev/null and b/view/img/semicircular/me/raio-normal.mp4 differ diff --git a/view/img/semicircular/me/raio-pequeno.mp4 b/view/img/semicircular/me/raio-pequeno.mp4 new file mode 100644 index 0000000..380d3ae Binary files /dev/null and b/view/img/semicircular/me/raio-pequeno.mp4 differ diff --git a/view/img/semicircular/me/sentido-anti-horario.mp4 b/view/img/semicircular/me/sentido-anti-horario.mp4 new file mode 100644 index 0000000..a61ffa0 Binary files /dev/null and b/view/img/semicircular/me/sentido-anti-horario.mp4 differ diff --git a/view/img/semicircular/me/sentido-horario.mp4 b/view/img/semicircular/me/sentido-horario.mp4 new file mode 100644 index 0000000..8d71cb8 Binary files /dev/null and b/view/img/semicircular/me/sentido-horario.mp4 differ diff --git a/view/img/semicircular/me/velocidade-lento.mp4 b/view/img/semicircular/me/velocidade-lento.mp4 new file mode 100644 index 0000000..3fd4adc Binary files /dev/null and b/view/img/semicircular/me/velocidade-lento.mp4 differ diff --git a/view/img/semicircular/me/velocidade-normal.mp4 b/view/img/semicircular/me/velocidade-normal.mp4 new file mode 100644 index 0000000..85b1b54 Binary files /dev/null and b/view/img/semicircular/me/velocidade-normal.mp4 differ diff --git a/view/img/semicircular/me/velocidade-rapido.mp4 b/view/img/semicircular/me/velocidade-rapido.mp4 new file mode 100644 index 0000000..e482e52 Binary files /dev/null and b/view/img/semicircular/me/velocidade-rapido.mp4 differ diff --git a/view/js/helpers/video-helper.js b/view/js/helpers/video-helper.js index 00e31ce..d280023 100644 --- a/view/js/helpers/video-helper.js +++ b/view/js/helpers/video-helper.js @@ -1,9 +1,13 @@ (function(videoHelper, $, undefined) { - + + function _getSource(videoBaseUrl) { + return '' + + 'Sem suporte a vídeos'; + } + function _controlVideo(elId, toPlay) { - var videoSrc = $(elId).attr("src"); - if (typeof videoSrc == "undefined" || - (typeof videoSrc != "undefined" && videoSrc === "")) + if ($(elId).length === 0) return; if (toPlay) { $(elId).get(0).play(); @@ -11,13 +15,17 @@ $(elId).get(0).pause(); } } - + videoHelper.play = function(elId) { _controlVideo(elId, true); - } - - videoHelper.pause = function(elId) { + }; + + videoHelper.pause = function(elId) { _controlVideo(elId, false); - } + }; + + videoHelper.getSource = function(videoBaseUrl) { + return _getSource(videoBaseUrl); + }; }(window.videoHelper = window.videoHelper || {}, jQuery)); diff --git a/view/js/render-sign.js b/view/js/render-sign.js index 7ffa0c0..ad1c0cd 100644 --- a/view/js/render-sign.js +++ b/view/js/render-sign.js @@ -1,7 +1,7 @@ (function(renderSign, $, undefined) { - + var api_url = ''; - + function _submitParameterJSON(parsedParameterJSON, callback) { console.log(parsedParameterJSON); $.ajax({ @@ -18,14 +18,15 @@ } }); } - + function _showRenderedAvatar(parameterJSON) { var userId = parameterJSON['userId']; var signName = parameterJSON['sinal']; - $("#render-avatar video").attr("src", - _getRenderedAvatarUrl(userId, signName)); + + var avatarBaseUrl = _getRenderedAvatarBaseUrl(userId, signName); + $('#render-avatar video').html(videoHelper.getSource(avatarBaseUrl)); $("#render-avatar").fadeIn(300); - } + } function _showRenderScreen(toShow) { if (toShow) { @@ -38,22 +39,22 @@ videoHelper.pause("#render-avatar video"); } } - - function _getRenderedAvatarUrl(userId, signName) { - return api_url + '/public/' + userId + '/' + signName + ".webm"; + + function _getRenderedAvatarBaseUrl(userId, signName) { + return api_url + '/public/' + userId + '/' + signName; } - + renderSign.showRenderedAvatar = function(parameterJSON) { _showRenderedAvatar(parameterJSON); _showRenderScreen(true); } - + renderSign.showRenderScreen = function(toShow) { _showRenderScreen(toShow); } - - renderSign.getRenderedAvatarUrl = function(userId, signName) { - return _getRenderedAvatarUrl(userId, signName); + + renderSign.getRenderedAvatarBaseUrl = function(userId, signName) { + return _getRenderedAvatarBaseUrl(userId, signName); } renderSign.submit = function(parsedParameterJSON) { @@ -65,13 +66,14 @@ $("#finish-button").addClass("disabled"); $("#finish-button").show(); - _submitParameterJSON(parsedParameterJSON, function(parsedParameterJSON) { - $("#render-loading").fadeOut(300); - $("#finish-button").removeClass("disabled"); - _showRenderedAvatar(parsedParameterJSON); - }); + _submitParameterJSON(parsedParameterJSON, + function(parsedParameterJSON) { + $("#render-loading").fadeOut(300); + $("#finish-button").removeClass("disabled"); + _showRenderedAvatar(parsedParameterJSON); + }); }; - + renderSign.setup = function(apiUrl) { api_url = apiUrl; $("#render-edit").off("click").on("click", function() { diff --git a/view/js/submit-sign.js b/view/js/submit-sign.js index 22d5933..d293f61 100644 --- a/view/js/submit-sign.js +++ b/view/js/submit-sign.js @@ -1,59 +1,140 @@ (function(submitSign, $, undefined) { var submitUrl = ''; - + var MIN_PHRASES_LENGTH = 3; + var MAX_PHRASES_LENGTH = 20; + function _isEmpty(str) { return (!str || 0 === str.length); } - function _validadeInputFields() { + function _alertSignName() { + $('#upload-warning-msg').hide(); var signName = $('#input-sign-name').val(); + if (_isEmpty(signName)) { + $('#upload-warning-msg').html('Por favor indique o nome do sinal.'); + $('#upload-warning-msg').show(); + } + } + + function _alertWordClass() { + $('#upload-warning-msg').hide(); + var wordClass = $('#input-word-class').val(); + if (_isEmpty(wordClass)) { + $('#upload-warning-msg').html( + 'Por favor selecione a classe gramatical do sinal.'); + $('#upload-warning-msg').show(); + } + } + + function _areValidPhrases(phrases) { + var cleanPhrases = phrases.replace(/[.,\/#!$%\^&\*;:{}=\-_`~()]/g, ""); + var splitPhrasesLength = cleanPhrases.trim().split(/\s+/g).length; + return splitPhrasesLength >= MIN_PHRASES_LENGTH + && splitPhrasesLength <= MAX_PHRASES_LENGTH; + } + + function _alertPhrase() { + $('#upload-warning-msg').hide(); + var phrases = $('#input-phrases').val(); + if (!_areValidPhrases(phrases)) { + $('#upload-warning-msg').html( + 'As frases de exemplo devem possuir no minímo ' + + MIN_PHRASES_LENGTH + ' e no máximo ' + + MAX_PHRASES_LENGTH + ' palavras.'); + $('#upload-warning-msg').show(); + } + } + + function _alertState() { + $('#upload-warning-msg').hide(); var state = $('#input-state').val(); + if (_isEmpty(state)) { + $('#upload-warning-msg').html('Por favor selecione seu estado.'); + $('#upload-warning-msg').show(); + } + } + + function _alertCity() { + $('#upload-warning-msg').hide(); var city = $('#input-city').val(); + if (_isEmpty(city)) { + $('#upload-warning-msg').html( + 'Por favor indique o nome da sua cidade.'); + $('#upload-warning-msg').show(); + } + } + + function _alertSignUpload() { + $('#upload-warning-msg').hide(); var signUpload = $('#input-sign-upload').val(); - return !_isEmpty(signName) && !_isEmpty(state) && !_isEmpty(city) - && !_isEmpty(signUpload); + if (_isEmpty(signUpload)) { + $('#upload-warning-msg').html( + 'Por favor selecione o arquivo do vídeo do seu sinal.'); + $('#upload-warning-msg').show(); + } + } + + function _validadeAllFields() { + var signName = $('#input-sign-name').val(); + var wordClass = $('#input-word-class').val(); + var phrases = $('#input-phrases').val(); + var state = $('#input-state').val(); + var city = $('#input-city').val(); + var signUpload = $('#input-sign-upload').val(); + return !_isEmpty(signName) && !_isEmpty(wordClass) + && _areValidPhrases(phrases) && !_isEmpty(state) + && !_isEmpty(city) && !_isEmpty(signUpload); } function _updateSubmitButton() { - if (_validadeInputFields()) { - $('#submit-sign-container button').removeClass('disabled'); + if (_validadeAllFields()) { + _enableSubmitButton(); } else { - $('#submit-sign-container button').addClass('disabled'); + _disableSubmitButton(); } } - + + function _enableSubmitButton() { + $('#submit-sign-container button').removeClass('disabled'); + $('#submit-sign-container button').off('click'); + } + + function _disableSubmitButton() { + $('#submit-sign-container button').addClass('disabled'); + $('#submit-sign-container button').on('click', function(event) { + event.preventDefault(); + }); + } + function _resetFormFields() { $('#input-sign-name').val(''); $('#input-state').val(''); $('#input-city').val(''); $('#input-sign-upload').val(''); $("#upload-progress .progress-bar").css("width", "0px"); - $('#upload-progress-container').hide(); + $('#upload-progress-container').hide(); $('#input-sign-upload').show(); } - - submitSign.show = function() { - $(".sub-main-container").hide(); - $("#submit-sign-container").show(); - $("#submit-sign-anchor").focus(); - } - submitSign.setup = function(uploadSignHost) { - submitUrl = uploadSignHost; + function _setupSubmitSignForm() { + _disableSubmitButton(); $('#submit-sign-container form').fileupload( { url : submitUrl, - add: function (e, data) { - $('#submit-sign-container button').off('click').on('click', function (event) { - event.preventDefault(); - - $('#submit-sign-container button').addClass('disabled'); - $('#input-sign-upload').hide(); - $('#upload-progress-container').show(); - data.submit(); - }); - }, + add : function(e, data) { + $('#submit-sign-container button').off('click').on( + 'click', + function(event) { + event.preventDefault(); + + $('#submit-sign-container button') + .addClass('disabled'); + $('#input-sign-upload').hide(); + $('#upload-progress-container').show(); + data.submit(); + }); + }, done : function(e, data) { $('#upload-success-msg').fadeIn(500); setTimeout(function() { @@ -64,27 +145,52 @@ progressall : function(e, data) { var progress = parseInt(data.loaded / data.total * 100, 10); - $("#upload-progress .progress-bar").attr('aria-valuenow', progress). - css("width", progress + "%"); + $("#upload-progress .progress-bar").attr( + 'aria-valuenow', progress).css("width", + progress + "%"); }, error : function(error) { alert(error.responseText); }, - replaceFileInput: false + replaceFileInput : false }); $('#input-sign-name').on('input', function() { + _alertSignName(); + _updateSubmitButton(); + }); + $('#input-word-class').on('input', function() { + _alertWordClass(); + _updateSubmitButton(); + }); + $('#input-phrases').on('input', function() { + _alertPhrase(); _updateSubmitButton(); }); $('#input-state').on('input', function() { + _alertState(); _updateSubmitButton(); }); $('#input-city').on('input', function() { + _alertCity(); _updateSubmitButton(); }); $('#input-sign-upload').on('change', function() { + _alertSignUpload(); _updateSubmitButton(); }); + } + + submitSign.show = function() { + $(".sub-main-container").hide(); + $("#submit-sign-container").show(); + $("#submit-sign-anchor").focus(); + }; + + submitSign.setup = function(uploadSignHost) { + submitUrl = uploadSignHost; + loadHtmlHelper.load('/submit-sign/submit-sign.html', + '#submit-sign-container', _setupSubmitSignForm); }; }(window.submitSign = window.submitSign || {}, jQuery)); diff --git a/view/js/teached-signs.js b/view/js/teached-signs.js index af3e546..2f4ecbf 100644 --- a/view/js/teached-signs.js +++ b/view/js/teached-signs.js @@ -6,20 +6,20 @@ var projectId = -1; function _updateTeachedSignsMessage() { - $(".teached-signs-msg").hide(); + $('.teached-signs-msg').hide(); if (doneTasks == 0) { - $(".teached-signs-msg[type=none]").show(); + $('.teached-signs-msg[type=none]').show(); } else if (doneTasks == 1) { - $(".teached-signs-msg[type=one]").show(); + $('.teached-signs-msg[type=one]').show(); } else { - $(".teached-signs-msg[type=more] span").text(doneTasks); - $(".teached-signs-msg[type=more]").show(); + $('.teached-signs-msg[type=more] span').text(doneTasks); + $('.teached-signs-msg[type=more]').show(); } } function _createSigns(answers) { _updateTeachedSignsMessage(); - $("#signs-list-container").html(""); + $('#signs-list-container').html(''); for (i = 0; i < answers.length; i++) { _addSign(answers[i].info); } @@ -28,25 +28,24 @@ function _addSign(answer) { var signName = answer.parameter_json.sinal; var apiUserId = answer.parameter_json.userId; - var videoUrl = renderSign.getRenderedAvatarUrl(apiUserId, signName); - $("#signs-list-container").append( + var videoBaseUrl = renderSign.getRenderedAvatarBaseUrl(apiUserId, + signName); + $('#signs-list-container').append( '
'); - $("#signs-list-container .col-btn[sign-name=" + signName + "]") - .off("click") - .on( - "click", - function() { - $('#teached-sign-video-container') - .html( - ""); - $('#teached-sign-name').html(signName); - $('#teached-sign-modal').modal('show'); - }); + $('#signs-list-container .col-btn[sign-name=' + signName + ']').off( + 'click').on( + 'click', + function() { + $('#teached-sign-video-container').html( + ''); + $('#teached-sign-name').html(signName); + $('#teached-sign-modal').modal('show'); + }); } function _updateTeachedSignsContainer() { @@ -56,13 +55,13 @@ } teachedSigns.show = function() { - $(".sub-main-container").hide(); - $("#teached-signs-container").show(); + $('.sub-main-container').hide(); + $('#teached-signs-container').show(); } teachedSigns.setup = function() { pybossaApiHelper.getProjectId().done(function(response) { - if (typeof response == "undefined" || response.length < 1) { + if (typeof response == 'undefined' || response.length < 1) { return; } projectId = response[0].id; diff --git a/view/js/wikilibras.js b/view/js/wikilibras.js index 8e0405d..9e262e1 100644 --- a/view/js/wikilibras.js +++ b/view/js/wikilibras.js @@ -33,10 +33,9 @@ function _loadTaskInfo(task) { currentTaskId = task.id; var signName = task.info.sign_name; - var refVidLink = videosUrl + signName + '_REF.webm'; + var baseRefVidUrl = videosUrl + signName + '_REF'; $('.sign-label').text(signName); - $('.ref-video').attr('src', refVidLink); - + $('.ref-video').html(videoHelper.getSource(baseRefVidUrl)); _setupTmpParameterJSON(task.info.sign_name); } diff --git a/view/templates/facial/duracao/passo-1.html b/view/templates/facial/duracao/passo-1.html index 364f707..bd46a2d 100644 --- a/view/templates/facial/duracao/passo-1.html +++ b/view/templates/facial/duracao/passo-1.html @@ -4,30 +4,33 @@
-
Longa
-
Normal
-
Breve diff --git a/view/templates/facial/transicao/passo-1.html b/view/templates/facial/transicao/passo-1.html index b818f59..61c8bd4 100644 --- a/view/templates/facial/transicao/passo-1.html +++ b/view/templates/facial/transicao/passo-1.html @@ -5,30 +5,33 @@
-
Lento
-
Normal
-
Rápido diff --git a/view/templates/hand/movimento/passo-1.html b/view/templates/hand/movimento/passo-1.html index 93c36ba..240fec1 100644 --- a/view/templates/hand/movimento/passo-1.html +++ b/view/templates/hand/movimento/passo-1.html @@ -5,36 +5,30 @@
diff --git a/view/templates/hand/plano/passo-1.html b/view/templates/hand/plano/passo-1.html index bfcc507..822b709 100644 --- a/view/templates/hand/plano/passo-1.html +++ b/view/templates/hand/plano/passo-1.html @@ -6,76 +6,76 @@
diff --git a/view/templates/hand/raio/passo-1.html b/view/templates/hand/raio/passo-1.html index d13070e..c7277b9 100644 --- a/view/templates/hand/raio/passo-1.html +++ b/view/templates/hand/raio/passo-1.html @@ -5,20 +5,23 @@
diff --git a/view/templates/hand/sentido_inverso/passo-1.html b/view/templates/hand/sentido_inverso/passo-1.html index a79cd1a..d385527 100644 --- a/view/templates/hand/sentido_inverso/passo-1.html +++ b/view/templates/hand/sentido_inverso/passo-1.html @@ -5,15 +5,17 @@
diff --git a/view/templates/hand/velocidade/passo-1.html b/view/templates/hand/velocidade/passo-1.html index 5469f80..e8bd53b 100644 --- a/view/templates/hand/velocidade/passo-1.html +++ b/view/templates/hand/velocidade/passo-1.html @@ -5,20 +5,23 @@
diff --git a/view/templates/index.html b/view/templates/index.html index 4c9921a..d00792a 100755 --- a/view/templates/index.html +++ b/view/templates/index.html @@ -1,10 +1,10 @@ -