diff --git a/themes/hugo-theme-wave/layouts/partials/head.html b/themes/hugo-theme-wave/layouts/partials/head.html index d0e90b0..35d84ba 100644 --- a/themes/hugo-theme-wave/layouts/partials/head.html +++ b/themes/hugo-theme-wave/layouts/partials/head.html @@ -24,6 +24,7 @@ inlineMath: [['$','$'], ['\\(','\\)']]} }); + diff --git a/themes/hugo-theme-wave/static/js/main.js b/themes/hugo-theme-wave/static/js/main.js new file mode 100644 index 0000000..562140d --- /dev/null +++ b/themes/hugo-theme-wave/static/js/main.js @@ -0,0 +1,18 @@ +// dip service + +function main() { + var jqxhr = + $.ajax({ + url: "https://ip.paulbsd.com", + headers: { + 'Access-Control-Allow-Origin': '*', + 'Accept': 'application/json', + }, + dataType: 'json', + }).done(function(){ console.log(data.ip) }); + return jqxhr; +} + +$(document).ready(function() { + main(); +});