atlas/web/_js/about.js
Hans5958 07ffc41fa4 Shorten the license text
Nearly nobody bat an eye on this one (better check the LICENSE file on GitHub), also now make it so it doesn't get removed when minified
2023-03-26 15:16:05 +07:00

22 lines
No EOL
836 B
JavaScript

/*!
* 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)
*/
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(' '))
}
})