updated website
This commit is contained in:
parent
0359020953
commit
01c49de4fc
@ -24,6 +24,7 @@
|
||||
inlineMath: [['$','$'], ['\\(','\\)']]}
|
||||
});
|
||||
</script>
|
||||
<script src="{{ .Site.BaseURL }}js/main.js"></script>
|
||||
|
||||
<link rel="icon" href="{{ .Site.BaseURL }}favicon.ico" />
|
||||
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}apple-touch-icon.png" />
|
||||
|
18
themes/hugo-theme-wave/static/js/main.js
Normal file
18
themes/hugo-theme-wave/static/js/main.js
Normal file
@ -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();
|
||||
});
|
Loading…
Reference in New Issue
Block a user