Add an apple-touch-icon. Reintroduce viewport.

This commit is contained in:
nicholas 2019-03-17 00:36:17 -04:00
parent 7e835b05b0
commit c500fb953a
Signed by: nicholas
GPG Key ID: 3A36364AF023486C
2 changed files with 7 additions and 5 deletions

View File

@ -34,20 +34,22 @@ app.get('/', (req, res) => {
`<!doctype html> `<!doctype html>
<html lang='en'> <html lang='en'>
<head> <head>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='apple-touch-icon' href='./touch_icon.png'>
<title> <title>
${theStrategy.toLowerCase()} ${theStrategy.toLowerCase()}
</title> </title>
<meta charset="utf-8"> <meta charset='utf-8'>
</head> </head>
<body style="background-color:#111; margin:0; padding:0; display:flex;align-items:center;justify-content:center;min-height:24em;"> <body style='background-color:#111; margin:0; padding:0; display:flex;align-items:center;justify-content:center;min-height:24em;'>
<div style="color:#eee;margin:0 auto; max-width:80%;flex:1;text-align:center;font-family:Futura;font-size:30px;line-height:40px"> <div style='color:#eee;margin:0 auto; max-width:80%;flex:1;text-align:center;font-family:Futura;font-size:30px;line-height:40px'>
${theStrategy.toLowerCase()} ${theStrategy.toLowerCase()}
</div> </div>
</body> </body>
</html>`; </html>`;
res.write(theTree); res.write(theTree);
logger.log('\non '+moment().format("dddd, MMMM Do YYYY, h:mma").toLowerCase()+' a card was drawn'); logger.log('\non '+moment().format('dddd, MMMM Do YYYY, h:mma').toLowerCase()+' a card was drawn');
res.end(); res.end();
}); });
@ -80,7 +82,7 @@ app.post('/', (req, res, next) => {
path: `/api/chat.postMessage?token=${process.env.BOTACCESSTOKEN}&channel=${channel}&text=${theStrategy}`, path: `/api/chat.postMessage?token=${process.env.BOTACCESSTOKEN}&channel=${channel}&text=${theStrategy}`,
}, },
response => response.on('data', b => { response => response.on('data', b => {
logger.log('\non '+moment().format("dddd, MMMM Do YYYY, h:mma").toLowerCase()+' a card was drawn'); logger.log('\non '+moment().format('dddd, MMMM Do YYYY, h:mma').toLowerCase()+' a card was drawn');
logger.log(' via slack: '+b); logger.log(' via slack: '+b);
}) })
).end(); ).end();

BIN
touch_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB