condence HTML
This commit is contained in:
parent
69de205064
commit
81dd5516b5
2 changed files with 38 additions and 11 deletions
21
index.js
21
index.js
|
@ -77,17 +77,16 @@ async function inviteres(req,res){
|
||||||
function strEscape(s){
|
function strEscape(s){
|
||||||
return JSON.stringify(s);
|
return JSON.stringify(s);
|
||||||
}
|
}
|
||||||
html=`
|
html=
|
||||||
<!DOCTYPE html>
|
`<!DOCTYPE html>`+
|
||||||
<html lang="en">
|
`<html lang="en">`+
|
||||||
<head>
|
`<head>`+
|
||||||
<title>${htmlEnc(title)}</title>
|
`<title>${htmlEnc(title)}</title>`+
|
||||||
<meta content=${strEscape(title)} property="og:title" />
|
`<meta content=${strEscape(title)} property="og:title"/>`+
|
||||||
<meta content=${strEscape(description)} property="og:description" />
|
`<meta content=${strEscape(description)} property="og:description"/>`+
|
||||||
<meta content=${strEscape(icon)} property="og:image" />
|
`<meta content=${strEscape(icon)} property="og:image"/>`+
|
||||||
</head>
|
`</head>`+
|
||||||
</html>
|
`</html>`
|
||||||
`
|
|
||||||
res.type('html');
|
res.type('html');
|
||||||
res.send(html);
|
res.send(html);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -1849,3 +1849,31 @@ form div{
|
||||||
height:.5in;
|
height:.5in;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
.rolediv{
|
||||||
|
font-size:.15in;
|
||||||
|
width:fit-content;
|
||||||
|
background:var(--blank-bg);
|
||||||
|
padding:.04in;
|
||||||
|
border-radius:.05in;
|
||||||
|
border: solid .03in var(--black);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.colorrolediv{
|
||||||
|
width:.125in;
|
||||||
|
height:.125in;
|
||||||
|
display:inline-block;
|
||||||
|
background:var(--role-color);
|
||||||
|
margin-right:.04in;
|
||||||
|
border-radius:.1in;
|
||||||
|
border:solid .01in var(--black);
|
||||||
|
}
|
||||||
|
.rolesbox{
|
||||||
|
flex-grow:1;
|
||||||
|
display:flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-content: flex-end;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: flex-end;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue