Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Full Stack harjoitustyö
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AA2875
Full Stack harjoitustyö
Commits
90ddfcd3
Commit
90ddfcd3
authored
2 years ago
by
AA2875
Browse files
Options
Downloads
Patches
Plain Diff
Roskis icon
parent
1ce7df35
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
V2/img/trash.png
+0
-0
0 additions, 0 deletions
V2/img/trash.png
V2/page/code.js
+4
-2
4 additions, 2 deletions
V2/page/code.js
V2/page/index.html
+3
-3
3 additions, 3 deletions
V2/page/index.html
V2/page/styles.css
+8
-1
8 additions, 1 deletion
V2/page/styles.css
with
15 additions
and
6 deletions
V2/img/trash.png
0 → 100644
+
0
−
0
View file @
90ddfcd3
7.76 KiB
This diff is collapsed.
Click to expand it.
V2/page/code.js
+
4
−
2
View file @
90ddfcd3
...
...
@@ -84,9 +84,11 @@ function createDeleteButton(jump) {
let
delDivClass
=
document
.
createAttribute
(
'
class
'
)
delDivClass
.
value
=
'
jumpItemDeleteButton
'
deleteDiv
.
setAttributeNode
(
delDivClass
)
let
deleteButton
=
document
.
createTextNode
(
'
Poista
'
)
// let deleteButton = document.createTextNode('Poista')
let
deleteButton
=
document
.
createElement
(
'
img
'
)
deleteButton
.
src
=
"
../img/trash.png
"
deleteDiv
.
appendChild
(
deleteButton
)
delete
Div
.
onclick
=
function
()
{
cancelDelete
(
jump
.
_id
)
}
delete
Button
.
onclick
=
function
()
{
cancelDelete
(
jump
.
_id
)
}
return
deleteDiv
}
...
...
This diff is collapsed.
Click to expand it.
V2/page/index.html
+
3
−
3
View file @
90ddfcd3
...
...
@@ -9,10 +9,10 @@
<body
onload=
"init()"
>
<div
id=
"container"
>
<h1>
Hypyt
</h1>
<input
type=
"text"
placeholder=
"Hyppy nro."
id=
"newJumpNumber"
/>
<input
type=
"text"
placeholder=
"Hyppy nro."
id=
"newJumpNumber"
onkeypress=
"return /[0-9]/i.test(event.key)"
/>
<input
type=
"text"
placeholder=
"Päivä"
id=
"newJumpDate"
/>
<input
type=
"text"
placeholder=
"Korkeus"
id=
"newJumpHeight"
/>
<input
type=
"text"
placeholder=
"Vapaa"
id=
"newJumpFalltime"
/>
<input
type=
"text"
placeholder=
"Korkeus"
id=
"newJumpHeight"
onkeypress=
"return /[0-9]/i.test(event.key)"
/>
<input
type=
"text"
placeholder=
"Vapaa"
id=
"newJumpFalltime"
onkeypress=
"return /[0-9]/i.test(event.key)"
/>
<button
onclick=
"addJump()"
id=
"addJumpBtn"
>
Lisää
</button>
<p
id=
"sortJumpsButton"
onclick=
"changeJumpOrder()"
>
Järjestys ▼
</p>
<ul
id=
"jumpsList"
></ul>
...
...
This diff is collapsed.
Click to expand it.
V2/page/styles.css
+
8
−
1
View file @
90ddfcd3
...
...
@@ -49,9 +49,16 @@ li {
}
.jumpItemDeleteButton
{
cursor
:
pointer
;
color
:
darkred
;
margin
:
10px
0
0
0
;
text-align
:
right
;
}
.jumpItemDeleteButton
>
img
{
width
:
1.2em
;}
.jumpItemDeleteButton
>
img
:hover
{
filter
:
invert
(
37%
)
sepia
(
28%
)
saturate
(
6866%
)
hue-rotate
(
340deg
)
brightness
(
109%
)
contrast
(
106%
);
cursor
:
pointer
;
}
.headerJumpDate
{
...
...
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