2023-03-22 16:38:18 +01:00
|
|
|
/*!
|
|
|
|
* The 2022 r/place Atlas
|
|
|
|
* Copyright (c) 2017 Roland Rytz <roland@draemm.li>
|
|
|
|
* Copyright (c) 2022 Place Atlas contributors
|
|
|
|
* Licensed under AGPL-3.0 (https://place-atlas.stefanocoding.me/license.txt)
|
|
|
|
*/
|
2022-07-03 07:11:05 +02:00
|
|
|
|
|
|
|
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
|
2023-04-16 19:12:02 +02:00
|
|
|
for (const contributor of contributors) {
|
2022-07-03 07:11:05 +02:00
|
|
|
const userEl = document.createElement('a')
|
|
|
|
userEl.href = 'https://reddit.com/user/' + contributor
|
|
|
|
userEl.textContent = contributor
|
|
|
|
redditWrapperEl.appendChild(userEl)
|
|
|
|
redditWrapperEl.appendChild(document.createTextNode(' '))
|
|
|
|
}
|
|
|
|
})
|