Created
July 30, 2020 05:39
-
-
Save LinZap/9abe4d6887a8fc7f6a9520e0b12c61ca to your computer and use it in GitHub Desktop.
HD5 Embeds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// 值機人員帳號,需帶入 iframe src 中 | |
$AgentID = "kenneth" | |
?> | |
<iframe | |
src="http://10.9.173.143/CTISignIn.aspx?AgentID=<?= $AgentID ?>&UnitID=Lafresh&TenantId=Lafresh" | |
id="frameid" | |
frameborder="0" | |
width="100%" | |
></iframe> | |
<!-- 調整 iframe 大小,隨裝置大小改變而改變 --> | |
<script language="javascript"> | |
var iframe = document.getElementById('frameid') | |
var header = document.getElementById('header') | |
var ribbon = document.getElementById('ribbon') | |
iframe.height = window.innerHeight - ribbon.clientHeight - header.clientHeight - 7 | |
window.addEventListener('resize', function(e){ | |
iframe.height = window.innerHeight - ribbon.clientHeight - header.clientHeight - 7 | |
}); | |
</script> | |
<!-- 顯示 CSS 修正 --> | |
<style> | |
#main{ | |
padding-bottom: 0px; | |
min-height: initial; | |
} | |
#content{ | |
padding: 0px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment