add icon nail binding
This commit is contained in:
parent
391037be88
commit
546d4697fc
7 changed files with 61 additions and 23 deletions
|
|
@ -1,7 +1,7 @@
|
|||
[class^="reznoricon-"],
|
||||
[class*=" reznoricon-"] {
|
||||
position: relative;
|
||||
padding-left: 1.6em;
|
||||
padding-left: 1.48em;
|
||||
}
|
||||
|
||||
[class^="reznoricon-"]:before,
|
||||
|
|
@ -12,13 +12,16 @@
|
|||
top: 0;
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
margin-right: .2em;
|
||||
padding: 0.1em 0 0.1em 0.1em;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
line-height: 0;
|
||||
margin-left: .2em;
|
||||
padding-top: 0.1em;
|
||||
content: "";
|
||||
background-size: auto 100%;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.reznoricon-binding-nail:before {
|
||||
content: url("../img/binding-nail.png");
|
||||
background-image: url("../img/binding-nail.png");
|
||||
}
|
||||
|
|
@ -1970,7 +1970,16 @@ function CheckPantheon(db, sectionName, playerData) {
|
|||
for (let entry in entries) {
|
||||
|
||||
if (playerData[property][entry] === true) {
|
||||
SetIconGreen(section, entry);
|
||||
|
||||
switch(entry) {
|
||||
|
||||
case "boundNail":
|
||||
SetIcon(section, entry, "bindingNail");
|
||||
break;
|
||||
|
||||
default:
|
||||
SetIconGreen(section, entry);
|
||||
}
|
||||
} else {
|
||||
SetIconRed(section, entry);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -208,6 +208,7 @@ function GenerateInnerHTML(db) {
|
|||
let iconPartial = SYMBOL_PARTIAL;
|
||||
let iconClock = SYMBOL_CLOCK;
|
||||
let iconNull = SYMBOL_EMPTY;
|
||||
let iconBindingNail = SYMBOL_BINDING_NAIL;
|
||||
|
||||
let finalHTMLFill = "";
|
||||
let textFill = "";
|
||||
|
|
@ -457,7 +458,7 @@ function GenerateInnerHTML(db) {
|
|||
|
||||
break;
|
||||
|
||||
/* ###################### Create all other sections ##################### */
|
||||
/* ######################### Create all other sections ################################################################## */
|
||||
|
||||
default:
|
||||
|
||||
|
|
@ -507,6 +508,10 @@ function GenerateInnerHTML(db) {
|
|||
obj.span[0] = "<span class='spoiler-span-green'>";
|
||||
break;
|
||||
|
||||
case "bindingNail":
|
||||
obj.icon = iconBindingNail;
|
||||
break;
|
||||
|
||||
case "red":
|
||||
obj.icon = iconRed;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue