-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #372 from Sami3160/master
Enhanced UI of About page
- Loading branch information
Showing
8 changed files
with
496 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"heros":"0", | ||
"eleslugs":"0", | ||
"slugs":"0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
var anchorData = document.getElementsByTagName('a'); | ||
var anchorDataLength = anchorData.length; | ||
for(let i = 0; i < anchorDataLength; i++){ | ||
if(anchorData[i].innerHTML.includes('Contributed by -')) { | ||
anchorData[i].innerHTML = anchorData[i].innerHTML.replace('Contributed by -', 'Contributor</br>'); | ||
// var anchorData = document.getElementsByTagName('a'); | ||
// var anchorDataLength = anchorData.length; | ||
// for(let i = 0; i < anchorDataLength; i++){ | ||
// if(anchorData[i].innerHTML.includes('Contributed by -')) { | ||
// anchorData[i].innerHTML = anchorData[i].innerHTML.replace('Contributed by -', 'Contributor</br>'); | ||
// } | ||
// } | ||
|
||
const path="./count.json" | ||
var heros = document.getElementById("hero") | ||
var slugs = document.getElementById("slugs") | ||
var eleslugs = document.getElementById("eleslugs") | ||
|
||
window.onload=(event)=>{ | ||
data={ | ||
heros:heros.childElementCount, | ||
slugs:slugs.childElementCount, | ||
eleslugs:eleslugs.childElementCount, | ||
} | ||
} | ||
localStorage.setItem("data",JSON.stringify(data)) | ||
} |