Widget:Charsheet: различия между версиями
Материал из Ролевой сервер "tales.pw"
Xunto (обсуждение | вклад) |
Xunto (обсуждение | вклад) |
||
| Строка 1: | Строка 1: | ||
| + | <script type="text/javascript"> | ||
| + | function AdjustIframeHeightOnLoad() { document.getElementById("form-iframe").style.height = document.getElementById("form-iframe").contentWindow.document.body.scrollHeight + "px"; } | ||
| + | function AdjustIframeHeight(i) { document.getElementById("form-iframe").style.height = parseInt(i) + "px"; } | ||
| + | </script> | ||
| + | |||
<iframe src="https://test.tales.pw/{name}" | <iframe src="https://test.tales.pw/{name}" | ||
width="100%" | width="100%" | ||
| Строка 4: | Строка 9: | ||
onload="AdjustIframeHeightOnLoad()" | onload="AdjustIframeHeightOnLoad()" | ||
/> | /> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Версия 22:42, 25 июля 2019
<script type="text/javascript"> function AdjustIframeHeightOnLoad() { document.getElementById("form-iframe").style.height = document.getElementById("form-iframe").contentWindow.document.body.scrollHeight + "px"; } function AdjustIframeHeight(i) { document.getElementById("form-iframe").style.height = parseInt(i) + "px"; } </script>
<iframe src="https://test.tales.pw/{name}"
width="100%" frameborder='no' onload="AdjustIframeHeightOnLoad()"
/>