mirror of
https://github.com/Queer-Lexikon/regenbogenkarte
synced 2024-11-21 19:53:07 +00:00
Make phone link RFC 3966 compliant
This commit is contained in:
parent
54cfeefa02
commit
eb0b5e5e15
2 changed files with 10 additions and 3 deletions
|
@ -15,7 +15,13 @@
|
|||
"url": "http://localhost"
|
||||
}
|
||||
],
|
||||
"phones": [],
|
||||
"phones": [
|
||||
{
|
||||
"label": "Büro",
|
||||
"phone": "+49 234 56789",
|
||||
"phone_rfc3966": "tel:+49-234-56789"
|
||||
}
|
||||
],
|
||||
"location": {
|
||||
"address": "Einhornhöhle, August Großkopf-Weg, Herzberg",
|
||||
"lon": 51.635,
|
||||
|
|
|
@ -17,6 +17,7 @@ type OrgEmail = {
|
|||
type OrgPhone = {
|
||||
label: string;
|
||||
phone: string;
|
||||
phone_rfc3966: string;
|
||||
};
|
||||
|
||||
type OrgWebsite = {
|
||||
|
@ -143,8 +144,8 @@ const buildContent = (o: Organisation): string => {
|
|||
|
||||
for (const { label, url } of o.websites) result += li(label, url, "🌐");
|
||||
for (const { label, email } of o.emails) result += li(label, email, "📧");
|
||||
for (const { label, phone } of o.phones)
|
||||
result += li(`${label} (${phone})`, "tel:" + phone, "☎");
|
||||
for (const { label, phone, phone_rfc3966 } of o.phones)
|
||||
result += li(`${label} (${phone})`, phone_rfc3966, "☎");
|
||||
|
||||
result += `</ul>`;
|
||||
|
||||
|
|
Loading…
Reference in a new issue