Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김유현
/
How much are you earning now
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김유현
2019-12-05 20:53:42 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
61998964c0402d5164fee26d7d67eb3139437b1d
61998964
1 parent
f62dc638
Modify index.html
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
index.html
js/script.js
index.html
View file @
6199896
<html>
<head>
<link
rel=
"stylesheet"
href=
"css/style.css"
>
<script
src=
"https://code.jquery.com/jquery-2.2.1.min.js"
></script>
</head>
<body>
<a
href=
"#"
class=
"button"
>
How much are you earning now?
</a>
...
...
@@ -33,7 +34,26 @@
</form>
</div>
</div>
<script
type=
"text/javascript"
src=
"js/script.js"
></script>
</body>
<script
type=
"text/javascript"
>
$
(
'.button'
).
on
(
'click'
,
function
(
e
)
{
e
.
preventDefault
();
$
(
this
).
addClass
(
'active'
);
});
$
(
'.modal-wrapper'
).
find
(
'label'
).
on
(
'click'
,
function
()
{
$
(
'.button'
).
removeClass
(
'active'
);
});
$
(
'.input-text'
).
focus
(
function
()
{
$
(
this
).
parents
(
'.input-box'
).
addClass
(
'focus'
);
})
$
(
'.input-text'
).
blur
(
function
()
{
if
(
$
(
this
).
val
())
{
$
(
this
).
parents
(
'.input-box'
).
addClass
(
'focus'
);
}
else
{
$
(
this
).
parents
(
'.input-box'
).
removeClass
(
'focus'
);
}
});
</script>
</html>
\ No newline at end of file
...
...
js/script.js
deleted
100644 → 0
View file @
f62dc63
$
(
'.button'
).
on
(
'click'
,
function
(
e
)
{
e
.
preventDefault
();
$
(
this
).
addClass
(
'active'
);
});
$
(
'.modal-wrapper'
).
find
(
'label'
).
on
(
'click'
,
function
()
{
$
(
'.button'
).
removeClass
(
'active'
);
});
$
(
'.input-text'
).
focus
(
function
()
{
$
(
this
).
parents
(
'.input-box'
).
addClass
(
'focus'
);
})
$
(
'.input-text'
).
blur
(
function
()
{
if
(
$
(
this
).
val
())
{
$
(
this
).
parents
(
'.input-box'
).
addClass
(
'focus'
);
}
else
{
$
(
this
).
parents
(
'.input-box'
).
removeClass
(
'focus'
);
}
});
\ No newline at end of file
Please
register
or
login
to post a comment