Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_nth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ngô Trung Hưng
venjob_nth
Commits
11225db1
Commit
11225db1
authored
Aug 19, 2020
by
Ngô Trung Hưng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use show() & hide() in js
parent
dc3976f3
Pipeline
#956
canceled with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/custom.js
+4
-4
No files found.
app/assets/javascripts/custom.js
View file @
11225db1
...
@@ -42,14 +42,14 @@ $(document).on("turbolinks:load", function(){
...
@@ -42,14 +42,14 @@ $(document).on("turbolinks:load", function(){
// show & hide password
// show & hide password
$
(
".icon_show_password"
).
on
(
'click'
,
function
()
{
$
(
".icon_show_password"
).
on
(
'click'
,
function
()
{
$
(
".input_password"
).
attr
(
'type'
,
'text'
);
$
(
".input_password"
).
attr
(
'type'
,
'text'
);
$
(
".icon_show_password"
).
css
(
'display'
,
'none'
)
$
(
".icon_show_password"
).
hide
(
)
$
(
".icon_hide_password"
).
css
(
'display'
,
'block'
)
$
(
".icon_hide_password"
).
show
(
)
});
});
$
(
".icon_hide_password"
).
on
(
'click'
,
function
()
{
$
(
".icon_hide_password"
).
on
(
'click'
,
function
()
{
$
(
".input_password"
).
attr
(
'type'
,
'password'
);
$
(
".input_password"
).
attr
(
'type'
,
'password'
);
$
(
".icon_hide_password"
).
css
(
'display'
,
'none'
)
$
(
".icon_hide_password"
).
hide
(
)
$
(
".icon_show_password"
).
css
(
'display'
,
'block'
)
$
(
".icon_show_password"
).
show
(
)
});
});
});
});
...
...
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