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

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

Материал из Ярославский педагогический университет
Перейти к: навигация, поиск
Строка 1: Строка 1:
  
 
<html>
 
<html>
<head>
 
 
<iframe class="frame" src="https://newyspu.ru/yspu_org/"></iframe>
 
<iframe class="frame" src="https://newyspu.ru/yspu_org/"></iframe>
</head>
 
 
</html>
 
</html>
 
<script>
 
<script>
Строка 14: Строка 12:
 
$(content).on("DOMSubtreeModified click", function (event){
 
$(content).on("DOMSubtreeModified click", function (event){
 
setTimeout(function(){
 
setTimeout(function(){
$(target).stop().animate({height: $(content).outerHeight(true)}, 200);
+
$(target).stop().animate({height: $(content).outerHeight(true)}, 100%);
}, 400);
+
}, 700);
 
});
 
});
 
});
 
});
 
});
 
});
 
</script>
 
</script>

Версия 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)}, 100%); }, 700); }); }); }); </script>