Line 1: | Line 1: | ||
<php> | <php> | ||
− | print "<script src='http://wave-api.appspot.com/public/embed.js' type='text/javascript'></script> | + | print "<head><script src='http://wave-api.appspot.com/public/embed.js' type='text/javascript'></script> |
<script type='text/javascript'> | <script type='text/javascript'> | ||
function initialize() { | function initialize() { | ||
Line 7: | Line 7: | ||
wavePanel.init(document.getElementById('waveframe')); | wavePanel.init(document.getElementById('waveframe')); | ||
} | } | ||
− | </script>"; | + | </script></head> |
+ | <body onload='initialize()'> | ||
+ | <div id='waveframe' style='width: 500px; height: 100%'></div> | ||
+ | </body>"; | ||
</php> | </php> |
<php> print "<head><script src='http://wave-api.appspot.com/public/embed.js' type='text/javascript'></script>
<script type='text/javascript'> function initialize() { var wavePanel = new WavePanel('http://wave.google.com/a/wavesandbox.com/'); wavePanel.loadWave('wavesandbox.com!w+waveID'); wavePanel.init(document.getElementById('waveframe')); }
</script></head> <body onload='initialize()'>
</body>";
</php>