Шаблон:Баннеры главная — различия между версиями
Ya.repin (обсуждение | вклад) |
Ya.repin (обсуждение | вклад) |
||
| Строка 1: | Строка 1: | ||
<html> | <html> | ||
| − | < | + | <head> |
| − | + | <meta charset="UTF-8"> | |
| − | height | + | <title>Document</title> |
| − | + | </head> | |
| − | + | <body> | |
| + | <iframe src="https://newyspu.ru/yspu_org/" frameborder="0"></iframe> | ||
| + | |||
| + | <style type="text/css"> | ||
| + | iframe { | ||
| + | position: absolute; | ||
| + | top: 0px; | ||
| + | left: 0px; | ||
| + | width: 100%; | ||
| + | height: 100%; | ||
| + | } | ||
| + | </style> | ||
| + | </body> | ||
| + | </html> | ||
<script> | <script> | ||
Версия 23:13, 17 января 2023
<script> $(function() {
$('.frame').load(function(){
var target = this; var content = $(target).contents().find('body'); $(target).height($(content).outerHeight(true));
$(content).on("DOMSubtreeModified click", function (event){ setTimeout(function(){ $(target).stop().animate({height: $(content).outerHeight(true)}, 1000); }, 700); }); }); }); </script>




