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){
|
||||
return JSON.stringify(s);
|
||||
}
|
||||
html=`
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>${htmlEnc(title)}</title>
|
||||
<meta content=${strEscape(title)} property="og:title" />
|
||||
<meta content=${strEscape(description)} property="og:description" />
|
||||
<meta content=${strEscape(icon)} property="og:image" />
|
||||
</head>
|
||||
</html>
|
||||
`
|
||||
html=
|
||||
`<!DOCTYPE html>`+
|
||||
`<html lang="en">`+
|
||||
`<head>`+
|
||||
`<title>${htmlEnc(title)}</title>`+
|
||||
`<meta content=${strEscape(title)} property="og:title"/>`+
|
||||
`<meta content=${strEscape(description)} property="og:description"/>`+
|
||||
`<meta content=${strEscape(icon)} property="og:image"/>`+
|
||||
`</head>`+
|
||||
`</html>`
|
||||
res.type('html');
|
||||
res.send(html);
|
||||
return true;
|
||||
|
|
|
@ -1848,4 +1848,32 @@ form div{
|
|||
width:100%;
|
||||
height:.5in;
|
||||
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