Merge pull request #420 from MujeebullahKalwar/count-badge-fix

Fixed Footer Count Badge
This commit is contained in:
Sunface
2023-07-14 14:01:57 +08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@ -114,7 +114,8 @@ var initAll = function () {
var ele = document.createElement("div"); var ele = document.createElement("div");
ele.setAttribute("align","center"); ele.setAttribute("align","center");
var count = document.createElement("img") var count = document.createElement("img")
count.setAttribute("src", "https://visitor-badge.glitch.me/badge?page_id=practice/en/" + path); // count.setAttribute("src", "https://visitor-badge.glitch.me/badge?page_id=practice/en/" + path);
count.setAttribute("src", "https://api.visitorbadge.io/api/visitors?labelColor=%23595959&countColor=%230d81c3&style=flat-square&path=practice/en/" + path);
ele.appendChild(count); ele.appendChild(count);
var divider =document.createElement("hr") var divider =document.createElement("hr")

View File

@ -114,7 +114,8 @@ var initAll = function () {
var ele = document.createElement("div"); var ele = document.createElement("div");
ele.setAttribute("align","center"); ele.setAttribute("align","center");
var count = document.createElement("img") var count = document.createElement("img")
count.setAttribute("src", "https://visitor-badge.glitch.me/badge?page_id=practice/en/" + path); // count.setAttribute("src", "https://visitor-badge.glitch.me/badge?page_id=practice/en/" + path);
count.setAttribute("src", "https://api.visitorbadge.io/api/visitors?labelColor=%23595959&countColor=%230d81c3&style=flat-square&path=practice/en/" + path);
ele.appendChild(count); ele.appendChild(count);
var divider =document.createElement("hr") var divider =document.createElement("hr")