\n
\n
\n'
} else {
}
} else {
if (index.genru == key && usedUrl.indexOf(thisUrl) == -1) {
if (index.genru == 'colBoxTopStories') {
let icon = index.cover;
let subtitle = index.subtitle;
icon = (!icon) ? '/images/logo/1200x630_500x500_business.gif' : icon;
outputHtml += '
\n';
outputHtml += '\n';
let kwi = (index.keyword) ? keywordcheck(index.keyword) : '';
if(kwi) outputHtml += '' + kwi + '\n';
if(subtitle) outputHtml += '' + index.subtitle + '
\n';
outputHtml += '\n';
outputHtml+= '\n';
} else if (index.genru == 'colBoxRecommend') {
let icon = index.icon ? index.icon : '/images/logo/240_business.png';
outputHtml += '
\n';
outputHtml += '\n';
let kwi = (index.keyword) ? keywordcheck(index.keyword) : '';
if(kwi) outputHtml += '' + kwi + '\n';
if(index.subtitle) outputHtml += '\n';
outputHtml += '\n';
outputHtml += '\n';
} else if (index.genru == 'colBoxNewsNewArticle') {
outputHtml += '
' + index.title + '\n';
} else {
};
preGenru = index.genru;
usedUrl.push(thisUrl);
count++
}
}
}
}
const setHtml = function() {
if (!setKeys) return;
for (let i in setKeys) {
if (document.getElementById(i)) {
document.getElementById(i).innerHTML = renderHtml(i, setKeys[i])
}
};
};
setHtml();
})();