NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<html>
<h1 style="padding-left: 650px;">This Is Tracking Page</h1>
<head>
<script >
function loadEveryTime(){
//alert('loadEveryTime');
var UserIp;
var VisitedDate;
var VisitedPageName;
var mapLattitude;
var mapLongitude;
var accuracy;
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
console.log(sPage);
const now = new Date();
console.log(now);
var options = {
enableHighAccuracy: true,
timeout: 5000,
maximumAge: 0
};

function success(pos) {
var crd = pos.coords;

console.log('Your current position is:');
console.log(`Latitude : ${crd.latitude}`);
console.log(`Longitude: ${crd.longitude}`);
console.log(`More or less ${crd.accuracy} meters.`);
mapLattitude=`${crd.latitude}`;
mapLongitude=`${crd.longitude}`;
accuracy=`${crd.accuracy}`;
document.getElementById('lt').innerHTML = mapLattitude;
document.getElementById('lo').innerHTML = mapLongitude;
document.getElementById('ac').innerHTML = accuracy;
document.getElementById('ltb').value = mapLattitude;
document.getElementById('lob').value = mapLongitude;
document.getElementById('acb').value = accuracy;
};

function error(err) {
console.warn(`ERROR(${err.code}): ${err.message}`);
};

navigator.geolocation.getCurrentPosition(success, error, options);

function getUserIP(onNewIP) { // onNewIp - your listener function for new IPs
//compatibility for firefox and chrome
var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
var pc = new myPeerConnection({
iceServers: []
}),
noop = function() {},
localIPs = {},
ipRegex = /([0-9]{1,3}(.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,
key;
function iterateIP(ip) {
if (!localIPs[ip]) onNewIP(ip);
localIPs[ip] = true;
}

//create a bogus data channel
pc.createDataChannel("");

// create offer and set local description
pc.createOffer().then(function(sdp) {
sdp.sdp.split('n').forEach(function(line) {
if (line.indexOf('candidate') < 0) return;
line.match(ipRegex).forEach(iterateIP);
});

pc.setLocalDescription(sdp, noop, noop);
}).catch(function(reason) {
// An error occurred, so handle the failure to connect
});

//listen for candidate events
pc.onicecandidate = function(ice) {
if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;
ice.candidate.candidate.match(ipRegex).forEach(iterateIP);
};
}

// Usage

getUserIP(function(ip){
// alert("Got IP! :" + ip);
UserIp=ip;
document.getElementById('ip').innerHTML = UserIp;
document.getElementById('ipb').value = UserIp;

});


document.getElementById('dt').innerHTML = now;
document.getElementById('pg').innerHTML = sPage;
document.getElementById('dtb').value = now;
document.getElementById('pgb').value = sPage;

}
window.onload=loadEveryTime;

</script>
</head>
<body >
<form action="http://192.168.0.123:8080" method="post">

<input type="hidden" id="ipb" name="IP">
<input type="hidden" id="dtb" name="DATETIME">
<input type="hidden" id="ltb" name="LATTITUDE">
<input type="hidden" id="lob" name="LONGITUDE" >
<input type="hidden" id="acb" name="ACCURACY">
<button type="submit" id="butn" name="btnb" >Submit</button>


</form>
</body>



IP Address:<h3 id="ip"></h3><br/>
Date/Time<h3 id="dt"></h3><br/>
Lattitude:<h3 id="lt"></h3><br/>
Longitude:<h3 id="lo"></h3><br/>
Accuracy:<h3 id="ac"></h3><br/>
Page Visited Name:<h3 id="pg"></h3><br/>
<!--body onLoad="document.getElementById('butn').click();"/-->

</html>
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.