-
Let the club name be
AAA
-
Let the image to be displayed beside the player name in club
AAA
beplayerclub.png
-
Convert this image to
base64
string using sites like https://www.base64-image.de . This will generatebase64
string forplayerclub.png
let us call itplayerclubBase64
-
Let the image to be displayed when mouseover or clicked on the image beside the player name be 'playerclubdetails.png'
-
Convert this image to
base64
string using sites like https://www.base64-image.de . This will generatebase64
string forplayerclub.png
let us call itplayerclubdetailsBase64
-
Open the
index.js
file to add the new details
Update cMap
to point to the name
cMap = {
"AAA" : "PLAYERCLUB" //notice that playerclub is now in caps
}
Update the images
to point the playerclub
to the base64 representation
images = {
"playerclub" : "playerclubBase64" //value gotten from https://www.base64-image.de page
}
Update the tips
to point the playerclubdetailsBase64
to the base64 representation
images = {
"playerclub" : "playerclubdetailsBase64" //value gotten from https://www.base64-image.de page
}
That's it!