fix div flex for other entries
This commit is contained in:
parent
6625c018f9
commit
8613ce53b5
3 changed files with 13 additions and 1 deletions
|
|
@ -5044,6 +5044,7 @@ function GenerateInnerHTML(db) {
|
|||
var notchOvercharmedImage = "<img src='".concat(_img_notch_overcharmed_png__WEBPACK_IMPORTED_MODULE_5__, "' class='notch' alt='notch image' title='Charm Notch (Overcharmed)'>");
|
||||
var geoNormalImage = "<img src='".concat(_img_geo_png__WEBPACK_IMPORTED_MODULE_6__, "' class='geo-symbol' alt='geo symbol image' title='Geo'>");
|
||||
var geoShadeImage = "<img src='".concat(_img_geo_shade_png__WEBPACK_IMPORTED_MODULE_7__, "' class='geo-symbol' alt='shade geo symbol image' title='Shade Geo'>");
|
||||
var div = "<div class='single-entry'>";
|
||||
var divFlex = "<div class='flex-container align-center'>";
|
||||
/* #################### Different behaviour depending on the section ####################### */
|
||||
|
||||
|
|
@ -5069,7 +5070,9 @@ function GenerateInnerHTML(db) {
|
|||
/* ############## Looping entries (intro) ############### */
|
||||
for (var entry in entries) {
|
||||
obj.b = ["", ""];
|
||||
obj.p = "<span class='p-left-small'></span>";
|
||||
obj.span = ["<b>", "</b>"];
|
||||
obj.div = div;
|
||||
|
||||
if (entries[entry].hasOwnProperty("icon")) {
|
||||
switch (entries[entry].icon) {
|
||||
|
|
@ -5191,6 +5194,7 @@ function GenerateInnerHTML(db) {
|
|||
obj.span = ["<span>", "</span>"];
|
||||
obj.icon = iconNull;
|
||||
obj.textPrefix = "";
|
||||
obj.div = div;
|
||||
/* display only one (current) hint */
|
||||
|
||||
obj.textSuffix = entries[sections[section].current].spoiler;
|
||||
|
|
@ -5225,9 +5229,11 @@ function GenerateInnerHTML(db) {
|
|||
obj.textPrefix = entries[_entry].name;
|
||||
obj.textSuffix = "\u2014 ".concat(entries[_entry].spoiler);
|
||||
obj.wiki = entries[_entry].wiki;
|
||||
obj.p = "<span class='p-left-small'></span>";
|
||||
obj.b = ["<a class=\"wiki\" href=\"".concat(WIKI_LINK).concat(obj.wiki, "\" target=\"_blank\">"), "</a>"];
|
||||
obj.span = ["<span class='spoiler-span'>", "</span>"];
|
||||
obj.spoiler = ["<span class='spoiler-text'>", "</span>"];
|
||||
obj.div = div;
|
||||
|
||||
if (entries[_entry].hasOwnProperty("amount")) {
|
||||
if (entries[_entry].hasOwnProperty("disabled")) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -164,6 +164,7 @@ function GenerateInnerHTML(db) {
|
|||
let notchOvercharmedImage = `<img src='${NOTCH_OVERCHARMED_IMAGE}' class='notch' alt='notch image' title='Charm Notch (Overcharmed)'>`;
|
||||
let geoNormalImage = `<img src='${GEO_IMAGE}' class='geo-symbol' alt='geo symbol image' title='Geo'>`;
|
||||
let geoShadeImage = `<img src='${GEO_SHADE_IMAGE}' class='geo-symbol' alt='shade geo symbol image' title='Shade Geo'>`;
|
||||
let div = `<div class='single-entry'>`;
|
||||
let divFlex = `<div class='flex-container align-center'>`;
|
||||
|
||||
|
||||
|
|
@ -200,7 +201,9 @@ function GenerateInnerHTML(db) {
|
|||
for (let entry in entries) {
|
||||
|
||||
obj.b = ["", ""];
|
||||
obj.p = "<span class='p-left-small'></span>";
|
||||
obj.span = ["<b>", "</b>"];
|
||||
obj.div = div;
|
||||
|
||||
if (entries[entry].hasOwnProperty("icon")) {
|
||||
|
||||
|
|
@ -329,6 +332,7 @@ function GenerateInnerHTML(db) {
|
|||
obj.span = ["<span>", "</span>"];
|
||||
obj.icon = iconNull;
|
||||
obj.textPrefix = "";
|
||||
obj.div = div;
|
||||
|
||||
/* display only one (current) hint */
|
||||
obj.textSuffix = entries[sections[section].current].spoiler;
|
||||
|
|
@ -365,9 +369,11 @@ function GenerateInnerHTML(db) {
|
|||
obj.textSuffix = `— ${entries[entry].spoiler}`;
|
||||
obj.wiki = entries[entry].wiki;
|
||||
|
||||
obj.p = "<span class='p-left-small'></span>";
|
||||
obj.b = [`<a class="wiki" href="${WIKI_LINK}${obj.wiki}" target="_blank">`, "</a>"];
|
||||
obj.span = ["<span class='spoiler-span'>", "</span>"];
|
||||
obj.spoiler = ["<span class='spoiler-text'>", "</span>"];
|
||||
obj.div = div;
|
||||
|
||||
if (entries[entry].hasOwnProperty("amount")) {
|
||||
if (entries[entry].hasOwnProperty("disabled")) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue