瀏覽代碼

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

master
Leonard Kim 6 年之前
父節點
當前提交
13cfd61c83
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      index.html

+ 4
- 1
index.html 查看文件

@@ -93,12 +93,15 @@
93 93
                         + "font-size:small;"
94 94
                         + "cursor: pointer'>" + showMoreText + "</a>"
95 95
                         + "&nbsp;&nbsp;&nbsp;"
96
-                        + "<a href='" + href + "' style='"
96
+                        + "<a id ='reloadLink' style='"
97 97
                         + "text-decoration: underline;"
98 98
                         + "font-size:small;"
99 99
                         + "'>reload now</a>"
100 100
                         + "</div>";
101 101
 
102
+                    var reloadLink = document.getElementById('reloadLink');
103
+                    reloadLink.setAttribute('href', href);
104
+
102 105
                     var showMoreElem = document.getElementById("showMore");
103 106
                     showMoreElem.addEventListener('click', function () {
104 107
                             var moreInfoElem

Loading…
取消
儲存