Шаблон:Баннеры главная — различия между версиями
Ya.repin (обсуждение | вклад) |
Ya.repin (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | <html> | ||
+ | <head> | ||
<iframe class="frame" src="https://newyspu.ru/yspu_org/"></iframe> | <iframe class="frame" src="https://newyspu.ru/yspu_org/"></iframe> | ||
− | + | </head> | |
+ | </html> | ||
<script> | <script> | ||
$(function() { | $(function() { |
Версия 23:10, 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)}, 200); }, 400); }); }); }); </script>