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 country = location.country_name;
console.log($(".myclass").text(country ));
});
});
div(class='myclass')
The most helpful JADE solutions
how to get client ip address using jade ?JADE Click to see more ... 650 126