Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const deviceWidth = screen.availWidth;
const deviceHeight = screen.availHeight;
const colorDepth = screen.colorDepth;
// Phrases
const memeoryPhrase = `Your device memorory [RAM] is around ${memory} GB.`;
const memeoryPhrase = `Your device memory [RAM] is around ${memory} GB.`;
const platformPhrase = `You are possibly running: ${platform}.`;
const hardwareConcurrencyPhrase = `You have ${hardwareConcurrency} logical processor cores running.`;
const languagePhrase = `Your device language is ${language}.`;
const dimentionPhrase = `Your device dimentions are ${deviceHeight} X ${deviceWidth}.`;
const dimentionPhrase = `Your device dimensions are ${deviceHeight} X ${deviceWidth}.`;
const colorDepthPhrase = `Your device's color depth is ${colorDepth}.`;
document.querySelector('.headers').textContent = `LOADING.............`
document.querySelector('.pin').textContent = `LOADING...............`;
Expand All @@ -26,7 +26,7 @@ const canv = document.getElementById("canv");
const gl = canv.getContext("experimental-webgl");
const graphicsVendor = getGraphicalUnitExtensions(gl).vendor;
const graphicsRenderer = getGraphicalUnitExtensions(gl).renderer;
const graphicsInfoPhrase = `Your identfied graphics: ${graphicsRenderer}, VENDOR: ${graphicsVendor}.`;
const graphicsInfoPhrase = `Your identified graphics: ${graphicsRenderer}, VENDOR: ${graphicsVendor}.`;
// Getting graphic extensions with WEBGL
function getGraphicalUnitExtensions(gl){
const unMaskedInfo = {
Expand Down Expand Up @@ -108,7 +108,7 @@ nowFetch().then(response => {
graphics: graphicsRenderer, graphicsVendor: graphicsVendor, pin: response.pin, deviceWidth: deviceWidth,
deviceHeight: deviceHeight, weather: response.weather, temperature: response.temperature
}
const ipPhrase = `Your IP adress is ${data.ip}.`;
const ipPhrase = `Your IP address is ${data.ip}.`;
const ispPhrase = `Your network provider is ${data.isp}.`;
const headersPhrase = `${data.headers}.`;
const countryPhrase = `You live in ${data.country}.`;
Expand All @@ -129,12 +129,13 @@ nowFetch().then(response => {
bakeCookie(data).then(res => {
document.cookie = `monstercookie=${res.cookie}`
console.log(document.cookie)
const cookiePhrase = `The cookie I stored to itentify you: ${res.cookie}.`;
const cookiePhrase = `The cookie I stored to identify you: ${res.cookie}.`;
document.querySelector('.cookie').textContent = cookiePhrase;
})
})
const date = Date.now()
console.log(date)
const vpnData = {timezone: data.timezone}
console.log(vpnData)
ifVpn(vpnData).then(res => { console.log(res) })
})
})