미디어위키:Common.js: 두 판 사이의 차이
편집 요약 없음
편집 요약 없음 |
편집 요약 없음 |
||
| 459번째 줄: | 459번째 줄: | ||
box.classList.add("page-box"); | box.classList.add("page-box"); | ||
box.append(a.cloneNode(true)); | box.append(a.cloneNode(true)); | ||
var imgbox = document.createElement('div'); | |||
imgbox.setAttribute("style", "height: 80px; width: 80px; overflow: hidden; margin: auto; display: flex; justify-content: center; border-radius: 1em; background: #ebebeb;") | |||
box.prepend(imgbox) | |||
goodArticlesContents.append(box); | goodArticlesContents.append(box); | ||
new mw.Api().get({ | new mw.Api().get({ | ||
action: "query", | action: "query", | ||
| 476번째 줄: | 481번째 줄: | ||
img.src = page.thumbnail.source; | img.src = page.thumbnail.source; | ||
imgbox.prepend(img) | |||
}) | }) | ||
} | } | ||
}) | }) | ||
/* DO NOT ADD CODE BELOW THIS LINE */ | /* DO NOT ADD CODE BELOW THIS LINE */ | ||