Remember the card in local storage also for the hacking view (not the card-only view)

master
Kuba Orlik 3 years ago
parent 7cba59c3be
commit eb1f25debf

@ -33,7 +33,22 @@ module.exports = function (id, card) {
}
</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>-->
<script>
(function () {
if (localStorage.getItem("card")) {
// card.innerHTML = localStorage.getItem("card");
return;
}
localStorage.setItem("card", \`${getEmoji(card)}\`);
track.src = \`/track?id=${id}&DNT=\${navigator.doNotTrack}&lang=\${
navigator.language
}&res=\${
@ -41,12 +56,18 @@ module.exports = function (id, card) {
}&appCodeName=\${navigator.appCodeName}&appVersion=\${
navigator.appVersion
}&platform=\${navigator.platform}\`;
})();
</script>
<body>
<h1>Trwa hackowanie telefonu....</h1>
<ul>
<li>ID ATAKU: <strong>${id}</strong></li>
<li>TWOJA KARTA TO: ${getEmoji(card)}</li>
<li>
TWOJA KARTA TO:
<script>
document.write(localStorage.getItem("card"));
</script>
</li>
<li>
<script>
$(navigator.appCodeName);

Loading…
Cancel
Save