Skip to content

Commit 8ef9325

Browse files
committed
Highlight active page link
1 parent 3cc592e commit 8ef9325

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/pagination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function makePageLink(currentUrl, currentStart, start, linkText) {
1919
var tagStart = '<a href="';
2020
if (currentStart == start) {
2121
uri = "#";
22-
if (!linkText.toString().substring(0, 1) === "&") { // Don't modify arrows
22+
if (linkText.toString().substring(0, 1) !== "&") { // Don't modify arrows
2323
tagStart = '<a class="active" href="';
2424
}
2525
}

public/search.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
text-decoration: none;
4848
}
4949
.pagination a.active {
50-
background-color: #4CAF50;
50+
background-color: #0d3760;
5151
color: white;
5252
}
5353
.pagination a:hover:not(.active) {

0 commit comments

Comments
 (0)