1
0
This repository has been archived on 2023-12-27. You can view files and clone it, but cannot push or open issues or pull requests.
DotDeploy/resources/public/o2c.html
Tony Grosinger 24afe901b9 Started adding api documentation
Using Swagger. Visit the root directory to see it in action or /api-docs
to see the raw json files.
2014-06-26 20:27:05 -07:00

15 lines
360 B
HTML

<script>
var qp = null;
if(window.location.hash) {
qp = location.hash.substring(1);
}
else {
qp = location.search.substring(1);
}
qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}',
function(key, value) {
return key===""?value:decodeURIComponent(value) }
):{}
window.opener.onOAuthComplete(qp);
window.close();
</script>