Skip to content

Commit 877e79f

Browse files
authored
feat: add date in the list link of other results (#79)
1 parent c43b9a9 commit 877e79f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/popup/popup.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,16 @@ function makeList(section, ecoindex) {
122122
pageLink.textContent = ecoindex.url;
123123
pageLink.setAttribute("href", ecoindex.url);
124124
pageLink.style.paddingLeft = "5px";
125+
pageLink.style.textDecoration = "none";
125126
pageLink.setAttribute("target", "_blank");
126127
li.appendChild(pageLink);
127128

129+
const pageLinkDate = document.createElement("span");
130+
pageLinkDate.style.fontSize = "0.8rem";
131+
pageLinkDate.textContent = `(${convertDate(ecoindex.date)})`;
132+
pageLinkDate.style.paddingLeft = "5px";
133+
pageLink.appendChild(pageLinkDate);
134+
128135
const ul = section.getElementsByTagName("ul")[0];
129136
ul.appendChild(li);
130137
}

0 commit comments

Comments
 (0)