Add card view
parent
8270e0c28d
commit
e473c4dce3
@ -0,0 +1,53 @@
|
||||
const { getEmoji } = require("./number-to-emoji");
|
||||
|
||||
module.exports = function (id, card) {
|
||||
return /* HTML */ `<!DOCTYPE html>
|
||||
<html>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Magiczna sztuczka</title>
|
||||
</head>
|
||||
<style>
|
||||
body {
|
||||
text-align: center;
|
||||
}
|
||||
.card {
|
||||
border-radius: 4px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
div {
|
||||
font-size: 100px;
|
||||
font-size: 50vh;
|
||||
height: 50vh;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
window.$ = document.write.bind(document);
|
||||
</script>
|
||||
<style>
|
||||
html {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
li {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<img id="track" style="opacity:0" />
|
||||
<script>
|
||||
track.src = \`/track?id=${id}&DNT=\${navigator.doNotTrack}&lang=\${
|
||||
navigator.language
|
||||
}&res=\${
|
||||
window.screen.width + "x" + window.screen.height
|
||||
}&appCodeName=\${navigator.appCodeName}&appVersion=\${
|
||||
navigator.appVersion
|
||||
}&platform=\${navigator.platform}\`;
|
||||
</script>
|
||||
<body>
|
||||
<h1>Twoja karta to:</h1>
|
||||
<div>${getEmoji(card)}</div>
|
||||
</body>
|
||||
</html> `;
|
||||
};
|
Loading…
Reference in New Issue