-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
15 lines (15 loc) · 1.27 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script src="epibox.js"></script>
<link rel="stylesheet" href="epibox.css">
<body onload="epibox.ini()">
<h2>epiBox <span style="font-size:x-small">[<a href="https://github.com/episphere/epibox" target="_blank">code</a>] [<a href="https://www.youtube.com/watch?v=eu5wtCSt3DQ" target="_blank">video</a>] [<a href="https://github.com/episphere/epibox/issues" target="_blank">issues</a>]</span></h2>
<pre id="epibox_msg"></pre>
<button onclick="epibox.login()">Login</button>
<button onclick="epibox.checkToken()">Check</button>
<button onclick="epibox.refreshToken()">Refresh</button>
<button onclick="(async function(){await epibox.getUser();if(epibox.oauth){epibox.msg(JSON.stringify(epibox.oauth.user,null,3))}})()">User</button>
<button onclick="epibox.logout()">Logout</button>
<button onclick="localStorage.removeItem('epiboxtoken');location.reload()">Restart</button>
<button onclick="epibox.downloadCredentials()">Download Credentials<br><b style="color:red;background-color:yellow;font-size:small">Careful with this file!</b></button>
<hr>
<p style="font-size:small;color:gray">If you were sent to this page from an epiSphere application, please return to the parent page after logging in here. You can close the page, the session will be managed directly from the application.</p>
</body>