Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schdesign-to-do-list
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dseben
schdesign-to-do-list
Commits
26845884
Commit
26845884
authored
Sep 21, 2020
by
dseben
Browse files
Options
Downloads
Patches
Plain Diff
first commit
parent
fafd7a52
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
index.html
+28
-0
28 additions, 0 deletions
index.html
notes.txt
+8
-0
8 additions, 0 deletions
notes.txt
script.js
+14
-0
14 additions, 0 deletions
script.js
style.css
+3
-0
3 additions, 0 deletions
style.css
with
53 additions
and
0 deletions
index.html
0 → 100644
+
28
−
0
View file @
26845884
<!DOCTYPE html>
<html
lang=
"hu"
>
<head>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
/>
<link
rel=
"stylesheet"
href=
"style.css"
/>
<title>
Schdesign Todo
</title>
</head>
<body>
<h1>
My first todo project
</h1>
<input
type=
"text"
id=
"task-input"
/>
<button
id=
"add-task"
>
Click me!
</button>
<div
id=
"todo-list"
>
<ul
id=
"tasks"
>
<li
class=
"task"
>
<input
type=
"checkbox"
id=
"task0"
/>
<label
for=
"task0"
>
1. tennivaló
</label>
<button>
X
</button>
</li>
<li>
2. tennivaló
</li>
</ul>
</div>
<script
src=
"script.js"
></script>
</body>
</html>
This diff is collapsed.
Click to expand it.
notes.txt
0 → 100644
+
8
−
0
View file @
26845884
Font-awesome
#DDD
placeholder (input type = "text"-re)
///////
To look up later:
• position:relative; position:absolute;
This diff is collapsed.
Click to expand it.
script.js
0 → 100644
+
14
−
0
View file @
26845884
addBttn
=
document
.
getElementById
(
"
add-task
"
);
addBttn
.
onclick
=
addTask
;
function
addTask
()
{
inputValue
=
document
.
getElementById
(
"
task-input
"
).
value
;
taskList
=
document
.
getElementById
(
"
tasks
"
);
taskLi
=
document
.
createElement
(
"
li
"
);
taskLi
.
setAttribute
(
"
class
"
,
"
task
"
);
taskLi
.
innerText
=
inputValue
;
taskList
.
appendChild
(
taskLi
);
}
This diff is collapsed.
Click to expand it.
style.css
0 → 100644
+
3
−
0
View file @
26845884
#tasks
{
color
:
red
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment