Commit f2656f67c58aac6b9920eedeae79bf55b9667ff4
1 parent
d5e58853
validar
Showing
1 changed file
with
16 additions
and
15 deletions
js/inline/Readme_pt_br.md
@@ -3,17 +3,17 @@ | @@ -3,17 +3,17 @@ | ||
3 | --- | 3 | --- |
4 | ## Action | 4 | ## Action |
5 | 5 | ||
6 | -Action to be registered in funifier when execute an event. | 6 | +Ação a ser registrada no funifier quando executar um evento. |
7 | 7 | ||
8 | ### Parameters | 8 | ### Parameters |
9 | 9 | ||
10 | -**Attributes (Optional)** | 10 | +** Atributos (Opcional)** |
11 | 11 | ||
12 | * **name**: String - name of attribute | 12 | * **name**: String - name of attribute |
13 | * **type**: Option - type of attribute | 13 | * **type**: Option - type of attribute |
14 | * **function**: String - function that dynamically capture the value of the attribute | 14 | * **function**: String - function that dynamically capture the value of the attribute |
15 | 15 | ||
16 | -#### Example | 16 | +#### Exemplo |
17 | 17 | ||
18 | ```javascript | 18 | ```javascript |
19 | return Funifier._$('#idade').val(); | 19 | return Funifier._$('#idade').val(); |
@@ -22,24 +22,24 @@ Action to be registered in funifier when execute an event. | @@ -22,24 +22,24 @@ Action to be registered in funifier when execute an event. | ||
22 | 22 | ||
23 | ## Event | 23 | ## Event |
24 | 24 | ||
25 | -Event type to be monitored | 25 | +Tipo de evento a ser monitorado |
26 | 26 | ||
27 | --- | 27 | --- |
28 | ## Selector | 28 | ## Selector |
29 | 29 | ||
30 | -HTML element that will be mapped the event | 30 | +Elemento HTML que irá ser mapeado o evento |
31 | 31 | ||
32 | --- | 32 | --- |
33 | 33 | ||
34 | ## Page | 34 | ## Page |
35 | 35 | ||
36 | -Page(s) that will be monitoring the event | 36 | +Página (s) que irá acompanhar o evento |
37 | 37 | ||
38 | --- | 38 | --- |
39 | 39 | ||
40 | ## Pre Script (Optional) | 40 | ## Pre Script (Optional) |
41 | 41 | ||
42 | -Function performed before HTML element be mapped(bind) | 42 | +Função realizada antes elemento HTML ser mapeado (vincular) |
43 | 43 | ||
44 | ### Javascript available variables: | 44 | ### Javascript available variables: |
45 | - element: DOM element | 45 | - element: DOM element |
@@ -56,7 +56,7 @@ Function performed before HTML element be mapped(bind) | @@ -56,7 +56,7 @@ Function performed before HTML element be mapped(bind) | ||
56 | 56 | ||
57 | #### Example | 57 | #### Example |
58 | 58 | ||
59 | -Case the element is rendered by ajax, can create a function to call the function "track" manually | 59 | +Caso o elemento seja processado por ajax, pode criar uma função para chamar a função "Track" manualmente |
60 | 60 | ||
61 | ```javascript | 61 | ```javascript |
62 | Funifier ._ $ ('body'). On ('click', trigger.selector, function () { | 62 | Funifier ._ $ ('body'). On ('click', trigger.selector, function () { |
@@ -64,14 +64,15 @@ Funifier ._ $ ('body'). On ('click', trigger.selector, function () { | @@ -64,14 +64,15 @@ Funifier ._ $ ('body'). On ('click', trigger.selector, function () { | ||
64 | }); | 64 | }); |
65 | ``` | 65 | ``` |
66 | 66 | ||
67 | -##### Note 1: When we are using the id of the "trigger", must inform the trigger type attribute as "TRIGGER_HTML" in function "Funifier.track()" | ||
68 | -##### Note 2: If you do the "track" manually, you must return false in pre validate to avoid unexpected behavior, for example register "track" more than once | 67 | +##### Nota 1: Quando estamos usando o id do "Track", deve informar o atributo tipo de Track como "TRIGGER_HTML" na função "Funifier.track ()" |
68 | + | ||
69 | +##### Nota 2: Se você fizer um "track" manualmente, você deve retornar falso em pré validação a fim de evitar um comportamento inesperado, por exemplo registrar "track" mais de uma vez | ||
69 | 70 | ||
70 | --- | 71 | --- |
71 | 72 | ||
72 | # Pre Validation (Optional) | 73 | # Pre Validation (Optional) |
73 | 74 | ||
74 | -Validation function performed before to be registered "track" on the funifier. Expect the return as a boolean, case the return is "false", cancel the process and will not be registered the "track" on the Funifier. | 75 | +Função de validação realizada antes de ser registrada "track" no funifier. Esperar o retorno como um boolean, caso o retorno é "falso", cancelar o processo e não serão registrados a "faixa" no Funifier. |
75 | 76 | ||
76 | ### Javascript available variables: | 77 | ### Javascript available variables: |
77 | - element: DOM element | 78 | - element: DOM element |
@@ -86,7 +87,7 @@ Validation function performed before to be registered "track" on the funifier. E | @@ -86,7 +87,7 @@ Validation function performed before to be registered "track" on the funifier. E | ||
86 | * **post_script**: String | 87 | * **post_script**: String |
87 | * **pre_validation_script**: String | 88 | * **pre_validation_script**: String |
88 | 89 | ||
89 | -#### Example | 90 | +#### Exemplo |
90 | 91 | ||
91 | ```javascript | 92 | ```javascript |
92 | var value = Funifier._$('# name').val(); | 93 | var value = Funifier._$('# name').val(); |
@@ -116,13 +117,13 @@ Function performed after the track. | @@ -116,13 +117,13 @@ Function performed after the track. | ||
116 | * **post_script**: String | 117 | * **post_script**: String |
117 | * **pre_validation_script**: String | 118 | * **pre_validation_script**: String |
118 | 119 | ||
119 | -#### Example | 120 | +#### Exemplo |
120 | 121 | ||
121 | ```javascript | 122 | ```javascript |
122 | alert('action tracked'); | 123 | alert('action tracked'); |
123 | ``` | 124 | ``` |
124 | 125 | ||
125 | -##### Note: In some cases these function can not be performed, depend of the context, for example: redirection of page. | 126 | +##### Nota: Em alguns casos, estas funções não podem ser executadas, dependem do contexto, por exemplo: redirecionamento da página. |
126 | 127 | ||
127 | --- | 128 | --- |
128 | 129 | ||
@@ -131,4 +132,4 @@ Function performed after the track. | @@ -131,4 +132,4 @@ Function performed after the track. | ||
131 | If the event is "page view" can be done "Track" manually | 132 | If the event is "page view" can be done "Track" manually |
132 | 133 | ||
133 | # Name (Optional) | 134 | # Name (Optional) |
134 | -Name for reference in the studio | ||
135 | \ No newline at end of file | 135 | \ No newline at end of file |
136 | +Nome de referência no estúdio | ||
136 | \ No newline at end of file | 137 | \ No newline at end of file |