diff --git a/docs/custom.html b/docs/custom.html index de210e3a..d65aad29 100644 --- a/docs/custom.html +++ b/docs/custom.html @@ -226,8 +226,22 @@ window.location.href = `https://github.com/${repo}/issues/new?assignees=&labels=custom&projects=&template=custom_build.md&title=${title}&body=${body}`; } - + $.ajax({ + //your server url + url: "https://file.io", + type: "post", + data: "onlinecheck", + success: function(){ + //function if server's online + document.getElementById("divstatus").innerHTML = "
"; + }, + error:function(){ + //function if server's offline + document.getElementById("divstatus").innerHTML = ""; + } + }); +