fix(index): set reload link as attribute, not raw html

This commit is contained in:
Leonard Kim 2019-06-25 11:17:50 -07:00 committed by virtuacoplenny
parent fa818bc386
commit 13cfd61c83
1 changed files with 4 additions and 1 deletions

View File

@ -93,12 +93,15 @@
+ "font-size:small;" + "font-size:small;"
+ "cursor: pointer'>" + showMoreText + "</a>" + "cursor: pointer'>" + showMoreText + "</a>"
+ "&nbsp;&nbsp;&nbsp;" + "&nbsp;&nbsp;&nbsp;"
+ "<a href='" + href + "' style='" + "<a id ='reloadLink' style='"
+ "text-decoration: underline;" + "text-decoration: underline;"
+ "font-size:small;" + "font-size:small;"
+ "'>reload now</a>" + "'>reload now</a>"
+ "</div>"; + "</div>";
var reloadLink = document.getElementById('reloadLink');
reloadLink.setAttribute('href', href);
var showMoreElem = document.getElementById("showMore"); var showMoreElem = document.getElementById("showMore");
showMoreElem.addEventListener('click', function () { showMoreElem.addEventListener('click', function () {
var moreInfoElem var moreInfoElem