Commit 04cecb69 by jenkins

Merge Request accepted by jenkins build success

parents 205983ce 05aa24e4
Pipeline #490 failed with stage
in 0 seconds
......@@ -447,14 +447,14 @@ $selected_id = isset( $_GET['course'] ) ? $_GET['course'] : - 1;
$(document).ready(function() {
var ip = $.getJSON('http://gd.geobytes.com/GetCityDetails?callback=?', function(data) { var ipx = data.geobytesremoteip;
var ip = $.getJSON('https://gd.geobytes.com/GetCityDetails?callback=?', function(data) { var ipx = data.geobytesremoteip;
return ipx; });
$.getJSON("https://cors-anywhere.herokuapp.com/http://www.geoplugin.net/json.gp?ip="+ip,function(response){
$('#country_code').val(response.geoplugin_countryCode);
});
});
</script>
<div class="col-md-12 form-group">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment