-
Notifications
You must be signed in to change notification settings - Fork 41
/
Detail.cshtml
30 lines (23 loc) · 1.01 KB
/
Detail.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@{
ViewBag.Title = "Detail";
Layout = "~/Views/Shared/_LayoutWOPI.cshtml";
}
<form id="office_form" name="office_form" target="office_frame" action='@ViewData["wopi_urlsrc"]' method="post">
<input name="access_token" value='@ViewData["access_token"]' type="hidden" />
<input name="access_token_ttl" value='@ViewData["access_token_ttl"]' type="hidden" />
</form>
<span id="frameholder"></span>
<script type="text/javascript">
var frameholder = document.getElementById("frameholder");
var office_frame = document.createElement("iframe");
office_frame.name = "office_frame";
office_frame.id ="office_frame";
// The title should be set for accessibility
office_frame.title = "Office Online Frame";
// This attribute allows true fullscreen mode in slideshow view
// when using PowerPoint Online's 'view' action.
office_frame.setAttribute("allowfullscreen", "true");
frameholder.appendChild(office_frame);
document.getElementById("office_form").submit();
</script>