Skip to content

Commit

Permalink
Create z00mdetect.js
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSobky committed Oct 12, 2022
1 parent ab951bf commit 399c90e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions z00mdetect.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const express = require('express');
const app = express();
const PORT = process.env.PORT || 9333;

app.all('/', (req, res) => res.send(`
Calculating your default signature....
<script>
window.onload = () => {
let orientation = screen.orientation ? screen.orientation.angle :
window.orientation;
let screenHeight = Math.abs(orientation) !== 90 ? screen.height : screen.width;
let signature = window.devicePixelRatio + screenHeight / window.innerHeight;
location.href = '//z00mtrack.herokuapp.com/#' + signature;
};
</script>
`));

app.listen(PORT);

0 comments on commit 399c90e

Please sign in to comment.