Merge pull request #1354 from aragonc/1.11.x

iframe height hot potatoes
pull/2487/head
Alex Aragon Calixto 9 years ago committed by GitHub
commit c748a33fb1
  1. 9
      main/exercise/showinframes.php

@ -78,12 +78,9 @@ $noPHP_SELF = true;
$htmlHeadXtra[] = '
<script>
$(document).ready( function(){
var height = $(this).innerHeight( - 20;
if (height < 0) {
height = "95%";
}
$("#hotpotatoe").css("height", height);
});
var height = $(this).innerHeight() - 20;
$("#hotpotatoe").css("height", height)
});
</script>';
$interbreadcrumb[]= array ("url"=>"./exercise.php", "name"=> get_lang('Exercises'));

Loading…
Cancel
Save