mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-11-09 03:24:14 +01:00
30 lines
No EOL
1.1 KiB
JavaScript
30 lines
No EOL
1.1 KiB
JavaScript
/*
|
|
========================================================================
|
|
The 2022 r/place Atlas
|
|
|
|
An atlas of Reddit's 2022 r/place, with information to each
|
|
artwork of the canvas provided by the community.
|
|
|
|
Copyright (c) 2017 Roland Rytz <roland@draemm.li>
|
|
Copyright (c) 2022 Place Atlas contributors
|
|
|
|
Licensed under the GNU Affero General Public License Version 3
|
|
https://place-atlas.stefanocoding.me/license.txt
|
|
========================================================================
|
|
*/
|
|
|
|
const redditWrapperEl = document.querySelector('#reddit-contributors-wrapper')
|
|
fetch('all-authors.txt')
|
|
.then(response => response.text())
|
|
.then(text => text.trim().split('\n').sort())
|
|
.then(contributors => {
|
|
document.querySelector('#reddit-contributors-count').textContent = contributors.length
|
|
for (const index in contributors) {
|
|
contributor = contributors[index]
|
|
const userEl = document.createElement('a')
|
|
userEl.href = 'https://reddit.com/user/' + contributor
|
|
userEl.textContent = contributor
|
|
redditWrapperEl.appendChild(userEl)
|
|
redditWrapperEl.appendChild(document.createTextNode(' '))
|
|
}
|
|
}) |