Create debug.html

This commit is contained in:
Ocarinaoftime 2024-10-02 11:09:59 -04:00 committed by GitHub
parent f06da0bee0
commit 198103ae72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

19
debug.html Normal file
View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>Debug</title>
<style>
#consoleOutput {
top: 130px;
z-index: 1;
}
</style>
</head>
<body onload="var ec = new ECommerceInterface();document.getElementById('consoleOutput').value = ec.getLog();document.getElementById('myP').innerText = ec.getLog();">
<a href="javascript:history.back()">Return to Shop</a>
<textarea id="consoleOutput" rows="16" style="width: 100%" readonly>EC Logging</textarea>
<a href="javascript:var xml = new XMLHttpRequest();xml.open('POST', 'https://oss-auth.shop.wii.com/ecs/log');xml.send(document.getElementById('myP').innerText);">Send log to server</a>
<p id="myP" hidden></p>
</body>
</html>