2021-10-25 03:22:49 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Online</title>
|
2021-11-03 04:26:06 -05:00
|
|
|
<style>
|
|
|
|
html, body, iframe
|
|
|
|
{
|
|
|
|
margin: 0px;
|
|
|
|
padding: 0px;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
</style>
|
2021-10-25 03:22:49 -05:00
|
|
|
</head>
|
|
|
|
<body>
|
2021-11-11 05:55:50 -06:00
|
|
|
<form id="form" action enctype="multipart/form-data" target="coolframe" method="post">
|
2021-10-25 03:22:49 -05:00
|
|
|
<input name="access_token" value="test" type="hidden"/>
|
|
|
|
</form>
|
2021-11-11 05:55:50 -06:00
|
|
|
<iframe id="coolframe" name= "coolframe" style="width:100%;height:100%;position:absolute;">
|
2021-10-25 03:22:49 -05:00
|
|
|
</iframe>
|
|
|
|
<script>
|
|
|
|
function constructWopiUrl() {
|
|
|
|
var wopiUrl = window.location.protocol + "//" + window.location.host + window.location.pathname + "?";
|
2021-11-09 08:27:49 -06:00
|
|
|
wopiUrl = wopiUrl.replace("debug.html", "cool.html");
|
2021-11-08 00:52:41 -06:00
|
|
|
var wopiSrc = window.location.protocol + "//" + window.location.host + "/wopi/files/" + encodeURIComponent(window.location.search.substring(window.location.search.indexOf("=")+2));
|
2021-10-25 03:22:49 -05:00
|
|
|
wopiUrl = wopiUrl + "WOPISrc=" + wopiSrc;
|
|
|
|
return wopiUrl
|
|
|
|
}
|
|
|
|
var form = document.getElementById("form");
|
|
|
|
form.action = constructWopiUrl();
|
|
|
|
form.submit();
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|