'
+ '
'
@@ -336,6 +336,7 @@ function DrawNavigator(project, pages) {
for (const page of pages) {
list = list + ''
}
menu.innerHTML = list
@@ -344,20 +345,23 @@ function DrawNavigator(project, pages) {
function DrawContacts(contacts) {
if (!contacts) return;
var contact_list = '
ÐонÑакÑÑ
'
- for (const contact of contacts) {
+ for (contact of contacts) {
const url = new URL(contact)
var ref
- console.log(url)
switch (url.protocol) {
case 'http':
case 'https:':
- ref = '⌂ '+url.hostname
+ ref = '
'+url.hostname
break
case 'mailto:':
- ref = '✉ '+url.pathname
+ ref = '
'+url.pathname
+ break
+ case 'tg:':
+ ref = '
'+url.pathname
+ contact = 'tg://resolve?domain='+url.pathname
break
default:
- ref = '🖅 '+url.pathname
+ ref = '
'+url.pathname
}
contact_list += '
'+ref+''
}