Mudanças entre as edições de "Widget:CreatorReward"
Ir para navegação
Ir para pesquisar
m |
m |
||
| Linha 47: | Linha 47: | ||
.rc-sprite-wrap { | .rc-sprite-wrap { | ||
width: | width: 40px; | ||
height: | height: 40px; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: #f5f5f5; | background: #f5f5f5; | ||
| Linha 74: | Linha 74: | ||
font-size: 13px; | font-size: 13px; | ||
color: #666; | color: #666; | ||
margin: | margin: 2px 0 0 0; | ||
line-height: 1.4; | line-height: 1.4; | ||
} | } | ||
| Linha 112: | Linha 112: | ||
} | } | ||
.rc-reqs { | .rc-reqs-list { | ||
list-style: disc; | |||
margin: 0; | |||
padding-left: 18px; | |||
font-size: 13px; | font-size: 13px; | ||
color: #333; | color: #333; | ||
line-height: 1.8; | |||
} | |||
.rc-reqs-list li { | |||
margin-bottom: 2px; | |||
} | } | ||
| Linha 177: | Linha 183: | ||
div.appendChild(document.createTextNode(str)); | div.appendChild(document.createTextNode(str)); | ||
return div.innerHTML; | return div.innerHTML; | ||
} | |||
function reqsToListHtml(reqStr) { | |||
if (!reqStr || !reqStr.trim()) return ''; | |||
var items = reqStr.split('*').map(function (s) { return s.trim(); }).filter(function (s) { return s.length > 0; }); | |||
if (items.length === 0) return ''; | |||
var html = '<ul class="rc-reqs-list">'; | |||
for (var j = 0; j < items.length; j++) { | |||
html += '<li>' + items[j] + '</li>'; | |||
} | |||
html += '</ul>'; | |||
return html; | |||
} | } | ||
| Linha 213: | Linha 231: | ||
html += ' </p>'; | html += ' </p>'; | ||
if (d.yt_req) { | if (d.yt_req) { | ||
html += ' | html += ' ' + reqsToListHtml(d.yt_req); | ||
} | } | ||
if (d.yt_note) { | if (d.yt_note) { | ||
| Linha 228: | Linha 246: | ||
html += ' </p>'; | html += ' </p>'; | ||
if (d.tw_req) { | if (d.tw_req) { | ||
html += ' | html += ' ' + reqsToListHtml(d.tw_req); | ||
} | } | ||
if (d.tw_note) { | if (d.tw_note) { | ||