Версия для слабовидящих

Шаблон:Баннеры главная — различия между версиями

Материал из Ярославский педагогический университет
Перейти к: навигация, поиск
Строка 14: Строка 14:
 
left: 0px;
 
left: 0px;
 
width: 100%;
 
width: 100%;
height: 100%;
+
height: 700px;
 
}
 
}
 
</style>
 
</style>

Версия 23:13, 17 января 2023

Document

<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>