Fix Radio Page schedule widget iframe size

This commit is contained in:
drigato 2015-06-15 16:07:42 -04:00
parent 0c4888fbd6
commit 4c6ba869e3
2 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,17 @@
<script language="JavaScript">
function autoResize(id){
var newheight;
var newwidth;
if(document.getElementById){
newheight=document.getElementById(id).contentWindow.document .body.scrollHeight;
newwidth=document.getElementById(id).contentWindow.document .body.scrollWidth;
}
document.getElementById(id).height= (newheight) + "px";
document.getElementById(id).width= (newwidth) + "px";
}
</script>
<div class="wrapper">
@ -18,7 +32,7 @@
<div id="tab-1" class="schedule tab_content current">
<?php //echo $this->action('weekly-program','embed', 'default', array('style' => 'premium', 'useiframe' => '1')); ?>
<iframe id="schedule_iframe" height="500px" scrolling="no" frameborder="0" src=<?php echo $this->stationUrl."embed/weekly-program?style=premium"?>></iframe>
<iframe onLoad="autoResize('schedule_iframe');" id="schedule_iframe" height="300px" scrolling="yes" frameborder="0" src=<?php echo $this->stationUrl."embed/weekly-program?style=premium"?>></iframe>
</div>

View file

@ -9,7 +9,6 @@ body {
visibility: hidden;
max-width: 750px;
/*margin: 0 auto;*/
margin-bottom: 140px;
padding: 10px;
position: absolute;
/*left: 50%;