Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jovan Maksimoski
BrainsterChallenges_JovanMaksimoski-FS15
Commits
4fa9eb18
Commit
4fa9eb18
authored
9 months ago
by
Jovan Maksimoski
Browse files
Options
Download
Email Patches
Plain Diff
ss
parent
b1a924a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
index.html
+1
-0
index.html
script.js
+1
-0
script.js
with
2 additions
and
0 deletions
+2
-0
index.html
+
1
-
0
View file @
4fa9eb18
...
...
@@ -14,6 +14,7 @@
</head>
<body>
<ul
id=
"bookList"
></ul>
<ul
id=
"list"
></ul>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<div
class=
"col-8"
>
...
...
This diff is collapsed.
Click to expand it.
script.js
+
1
-
0
View file @
4fa9eb18
...
...
@@ -44,6 +44,7 @@ function renderBookList() {
books
.
forEach
((
book
)
=>
{
const
listItem
=
document
.
createElement
(
"
li
"
);
listItem
.
textContent
=
`
${
book
.
title
}
by
${
book
.
author
}
`
;
listItem
.
textContent
=
`
${
book
.
title
}
by
${
book
.
author
}
`
;
if
(
book
.
maxPages
===
book
.
onPage
)
{
listItem
.
style
.
color
=
"
green
"
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment