Fix Radio Page schedule widget iframe size
This commit is contained in:
parent
0c4888fbd6
commit
4c6ba869e3
2 changed files with 15 additions and 2 deletions
|
@ -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">
|
<div class="wrapper">
|
||||||
|
|
||||||
|
@ -18,7 +32,7 @@
|
||||||
|
|
||||||
<div id="tab-1" class="schedule tab_content current">
|
<div id="tab-1" class="schedule tab_content current">
|
||||||
<?php //echo $this->action('weekly-program','embed', 'default', array('style' => 'premium', 'useiframe' => '1')); ?>
|
<?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>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ body {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
max-width: 750px;
|
max-width: 750px;
|
||||||
/*margin: 0 auto;*/
|
/*margin: 0 auto;*/
|
||||||
margin-bottom: 140px;
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
/*left: 50%;
|
/*left: 50%;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue