Commit 9379e4ac by nadeem.qasmi

download all page location fixed again http, https not works

parent 05aa24e4
Pipeline #491 passed with stage
in 0 seconds
...@@ -445,16 +445,23 @@ $selected_id = isset( $_GET['course'] ) ? $_GET['course'] : - 1; ...@@ -445,16 +445,23 @@ $selected_id = isset( $_GET['course'] ) ? $_GET['course'] : - 1;
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
var ip = $.getJSON('https://gd.geobytes.com/GetCityDetails?callback=?', function(data) { var ipx = data.geobytesremoteip; var ips ='00';
return ipx; });
$.getJSON('http://gd.geobytes.com/GetCityDetails?callback=?', function(data) {
$.getJSON("https://cors-anywhere.herokuapp.com/http://www.geoplugin.net/json.gp?ip="+ip,function(response){ ips = data.geobytesremoteip;
$.getJSON("https://cors-anywhere.herokuapp.com/http://www.geoplugin.net/json.gp?ip="+ips,function(response){
$('#country_code').val(response.geoplugin_countryCode); $('#country_code').val(response.geoplugin_countryCode);
}); });
}); });
});
</script> </script>
<div class="col-md-12 form-group"> <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