Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debounce
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Ameen
debounce
Commits
74af31a7
Commit
74af31a7
authored
May 31, 2022
by
Muhammad Ameen
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debounce Project
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
0 deletions
+56
-0
app.js
app.js
+12
-0
inex.html
inex.html
+23
-0
style.css
style.css
+21
-0
No files found.
app.js
0 → 100644
View file @
74af31a7
function
debounce
()
{
let
x
=
setTimeout
(()
=>
{
console
.
log
(
"Muhammad Amenn"
);
searching
.
style
.
display
=
"block"
},
1000
);
clearTimeout
(
x
-
1
);
}
let
searching
=
document
.
getElementById
(
"searching"
)
searching
.
style
.
display
=
"none"
inex.html
0 → 100644
View file @
74af31a7
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<link
rel=
"stylesheet"
href=
"./style.css"
/>
<title>
Debounce
</title>
</head>
<body>
<div
class=
"mainContiner"
>
<input
type=
"text"
oninput=
"debounce()"
class=
"input"
placeholder=
"Search Here"
/>
<p
id=
"searching"
>
Searching........
</p>
</div>
<script
src=
"./app.js"
></script>
</body>
</html>
style.css
0 → 100644
View file @
74af31a7
body
{
padding
:
0
;
margin
:
0
;
}
.mainContiner
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
flex-direction
:
column
;
height
:
100vh
;
background-color
:
rgb
(
38
,
99
,
144
);
}
.input
{
width
:
50%
;
padding
:
20px
;
}
p
{
color
:
white
;
}
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