ComplianceServer/oldcode/Core.Web/Views/MoGo2Url/Index.cshtml

32 lines
665 B
Plaintext

@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<iframe src="@Html.Raw(ViewBag.Url)" sandbox="allow-scripts allow-top-navigation allow-same-origin" class="x-iframe" id="x-iframe"></iframe>
<style>
.x-iframe {
width: 100%;
height: 100%;
}
body, .x-body {
margin: 0;
padding: 0;
border: 0;
overflow: hidden;
height: 100%;
}
</style>
<script>
var win = window.open(
"@Html.Raw(ViewBag.Url)",
"_blank",
"top=200,left=200,width=1500,height=700,menubar=no,toolbar=no,status=no,scrollbars=yes"
);
console.log(win)
</script>