mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Move IP geolocation service. Temporary until a suitable replacement can be found.
This commit is contained in:
parent
fcb3474312
commit
98411f0715
1 changed files with 4 additions and 6 deletions
|
@ -27,13 +27,12 @@
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<h4><strong>Connection Details</strong></h4>
|
<h4><strong>Connection Details</strong></h4>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li>ISP: <strong><span id="isp"></span></strong></li>
|
<li>Organization: <strong><span id="organization"></span></strong></li>
|
||||||
<li>AS: <strong><span id="as"></span></strong></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<span class="text-muted">Service provided by www.telize.com.</span>
|
<span class="text-muted">Telize service written by <a href="https://github.com/fcambus/telize" target="_blank">Frederic Cambus</a>.</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -42,7 +41,7 @@
|
||||||
<script>
|
<script>
|
||||||
function getUserLocation(ip_address) {
|
function getUserLocation(ip_address) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'https://www.telize.com/geoip/' + ip_address,
|
url: 'https://telize.myhtpc.co.za/geoip/' + ip_address,
|
||||||
cache: true,
|
cache: true,
|
||||||
async: true,
|
async: true,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
|
@ -58,8 +57,7 @@
|
||||||
$('#timezone').html(data.timezone);
|
$('#timezone').html(data.timezone);
|
||||||
$('#lat').html(data.latitude);
|
$('#lat').html(data.latitude);
|
||||||
$('#lon').html(data.longitude);
|
$('#lon').html(data.longitude);
|
||||||
$('#isp').html(data.isp);
|
$('#organization').html(data.organization);
|
||||||
$('#as').html(data.asn);
|
|
||||||
},
|
},
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue