mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
Merge pull request #420 from MujeebullahKalwar/count-badge-fix
Fixed Footer Count Badge
This commit is contained in:
@ -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")
|
||||||
|
|
||||||
|
@ -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")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user