Welcome aboard! We are happy you are here and wish you good net-raft!
doctype 5
html
head
block head
script(src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js ')
body
block content
script.
$(document).ready(function () {
$.getJSON('https://geoip-db.com/json/geoip.php?jsonp=?')
.done (function(location)
{
var latitude = location.latitude;
var longitude = location.longitude;
console.log($(".myclass").text(latitude + " , " + longitude));
});
});
div(class='myclass')
The most helpful JADE solutions
how to get client ip address using jade ?JADE Click to see more ... 651 126