Simon Bruder
10b8d432d5
This applies the REUSE specification to the repository, so the licensing information can be tracked for every file individually.
27 lines
876 B
JavaScript
27 lines
876 B
JavaScript
// SPDX-FileCopyrightText: 2021-2022 Simon Bruder <simon@sbruder.de>
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
(() => {
|
|
const givenName = document.getElementById('name').innerText.split(" ")[0].toLowerCase()
|
|
const domain = location.host
|
|
|
|
if (domain === "sbruder.de") {
|
|
const mailAddress = givenName + '@' + domain
|
|
const mailEl = document.getElementById('email')
|
|
mailEl.innerText = mailAddress
|
|
mailEl.href = `mailto:${mailAddress}`
|
|
|
|
const matrixAddress = '@' + givenName + ':' + domain
|
|
const matrixEl = document.getElementById('matrix')
|
|
matrixEl.innerText = matrixAddress
|
|
matrixEl.href = `https://matrix.to/#/${matrixAddress}`
|
|
}
|
|
|
|
const forbiddenWordEls = Array.from(document.getElementsByClassName("forbiddenword"))
|
|
forbiddenWordEls.forEach(el => {
|
|
el.innerHTML = "blockchain"
|
|
el.classList.add("processed")
|
|
})
|
|
})()
|