Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
15cbdf59
Commit
15cbdf59
authored
Jun 09, 2022
by
unknown
Browse files
Remoção da qnt de caracteres restantes na edição
parent
94367c34
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/projeto/editar.blade.php
View file @
15cbdf59
...
...
@@ -257,31 +257,6 @@
<
script
>
$
(
'input'
)
.
on
(
"input"
,
function
(){
var
maxlength
=
$
(
this
)
.
attr
(
"maxlength"
);
var
currentLength
=
$
(
this
)
.
val
()
.
length
;
var
idInput
=
$
(
this
)
.
attr
(
"id"
);
if
(
currentLength
>=
maxlength
){
$
(
"#caracsRestantes"
+
idInput
)
.
html
(
"Caracteres restantes: "
+
(
maxlength
-
this
.
value
.
length
));
}
else
if
(
currentLength
==
0
){
$
(
"#caracsRestantes"
+
idInput
)
.
html
(
""
);
}
else
{
$
(
"#caracsRestantes"
+
idInput
)
.
html
(
"Caracteres restantes: "
+
(
maxlength
-
this
.
value
.
length
));
}
});
$
(
document
)
.
ready
(
function
()
{
$
(
'#nomeParticipante'
)
.
keyup
(
function
()
{
$
(
'#display'
)
.
text
(
$
(
this
)
.
val
());
if
(
$
(
'#nomeParticipante'
)
.
val
()
==
""
){
$
(
'#display'
)
.
hide
();
$
(
'#pontos'
)
.
hide
();
}
else
{
$
(
'#display'
)
.
show
();
$
(
'#pontos'
)
.
show
();
}
});
$
.
validator
.
addMethod
(
"alpha"
,
function
(
value
,
element
)
{
return
this
.
optional
(
element
)
||
value
==
value
.
match
(
/^
[
A
-
Za
-
záàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ
]
+
$
/
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment