Add an apple-touch-icon. Reintroduce viewport.
This commit is contained in:
parent
7e835b05b0
commit
c500fb953a
12
index.js
12
index.js
@ -34,20 +34,22 @@ app.get('/', (req, res) => {
|
||||
`<!doctype html>
|
||||
<html lang='en'>
|
||||
<head>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||
<link rel='apple-touch-icon' href='./touch_icon.png'>
|
||||
<title>
|
||||
${theStrategy.toLowerCase()}
|
||||
</title>
|
||||
<meta charset="utf-8">
|
||||
<meta charset='utf-8'>
|
||||
</head>
|
||||
<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">
|
||||
<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'>
|
||||
${theStrategy.toLowerCase()}
|
||||
</div>
|
||||
</body>
|
||||
</html>`;
|
||||
|
||||
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();
|
||||
});
|
||||
|
||||
@ -80,7 +82,7 @@ app.post('/', (req, res, next) => {
|
||||
path: `/api/chat.postMessage?token=${process.env.BOTACCESSTOKEN}&channel=${channel}&text=${theStrategy}`,
|
||||
},
|
||||
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);
|
||||
})
|
||||
).end();
|
||||
|
BIN
touch_icon.png
Normal file
BIN
touch_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.6 KiB |
Loading…
Reference in New Issue
Block a user