Skip to content

Instantly share code, notes, and snippets.

@Fuwn
Last active April 2, 2020 03:05
Show Gist options
  • Save Fuwn/5b1a915bfe2615c467d268fb737f24d7 to your computer and use it in GitHub Desktop.
Save Fuwn/5b1a915bfe2615c467d268fb737f24d7 to your computer and use it in GitHub Desktop.
Request AES Key.
// You must have jQuery installed to use this script.
//
// --- How to use: ---
// 1. Install jQuery if not already installed.
// 2. Move THIS script into a safe directory.
// 3. Call THIS script in head via <script src="/path/to/Request-AES-Key.js"></script>
// 4. Copy THIS span tag and include somewhere on page; <span id="serverTime"></span>
// 5. Done.
var settings = { // Settings
"async": true,
"crossDomain": true,
"url": "https://benbotfn.tk/api/v1/aes",
"method": "GET",
"headers": {}
}
$.ajax(settings).done(function (response) { // Grabbing response
document.getElementById("serverTime").innerHTML = JSON.stringify(response); // Converting response to string and outputting
});
@XXDawgs
Copy link

XXDawgs commented Apr 2, 2020

so where do i type in this command

@Fuwn
Copy link
Author

Fuwn commented Apr 2, 2020

so where do i type in this command

@XXDawgs, read posted instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment