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

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

Материал из Ярославский педагогический университет
Перейти к: навигация, поиск
Строка 6: Строка 6:
 
scroll=no
 
scroll=no
 
</websiteFrame>
 
</websiteFrame>
 +
 +
<iframe class="frame" src="https://newyspu.ru/yspu_org/"></iframe>
 +
 +
<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>

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

<iframe class="frame" src="https://newyspu.ru/yspu_org/"></iframe>

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