Please create an account or log in to build a reputation and unlock more editing privileges!!!
Widget talk:Google Presentation
Code Modifications
Hi Sergey,
I had to make some code modifications to get the newer form of Google Presentations to work with your Presentation widget. I'm not a real coder, so I hope you can take the time to check the changes I made to ensure they're accurate.
- You can see the results here...
http://portlandwiki.org/Widget:Google_Presentation
- and here...
http://portlandwiki.org/Sandbox/GoogleServices
Thanks!
- Davydog 15:37, March 12, 2012 (AST)
- ORIGINAL CODE
<includeonly><!--{if $size eq 'medium'}--><iframe src='http://docs.google.com/EmbedSlideshow?docid=<!--{$docid|escape:'urlpathinfo'}-->&size=m' frameborder='0' width='555' height='451'></iframe>
<!--{elseif $size eq 'large'}--><iframe src='http://docs.google.com/EmbedSlideshow?docid=<!--{$docid|escape:'urlpathinfo'}-->&size=l' frameborder='0' width='700' height='559'></iframe><!--{else}-->
<iframe src='http://docs.google.com/EmbedSlideshow?docid=<!--{$docid|escape:'urlpathinfo'}-->' frameborder='0' width='410' height='342'></iframe><!--{/if}--></includeonly>
- MODIFIED CODE (Modified by Dave Myers.)
<includeonly><iframe width="<!--{$width|escape:'html'|default:500}-->" height="<!--{$height|escape:'html'|default:300}-->" frameborder="1" src="https://docs.google.com/
<!--{if isset($id)}-->presentation/embed?id=<!--{$id|escape:'urlpathinfo'}-->&embedded=1
<!--{elseif isset($docid)}-->EmbedSlideshow?docid=<!--{$docid|escape:'urlpathinfo'}-->&hgd=1<!--{/if}-->"></iframe></includeonly>
Google Presentation Change Again
Google Presentations have changed again!
I've also reinstated the sizes, but as per the new google sizes: small = 480x389, medium = 960x 789, large = 1140x1109
</noinclude><includeonly><iframe frameborder="0" src="https://docs.google.com/presentation/d/<!--{if isset($id)}--><!--{$id|escape:'urlpathinfo'}-->&embedded=1<!--{elseif isset($docid)}--><!--{$docid|escape:'urlpathinfo'}--><!--{/if}-->/embed?start=false&loop=false&delayms=3000" <!--{if $size eq 'medium'}--> width='960' height='749' <!--{elseif $size eq 'large'}-->width='1440' height='1109' <!--{elseif $size eq 'small'}-->width='480' height='389' <!--{else}--> width='480' height='389'<!--{/if}--> allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" ></iframe></includeonly>
You could option out the autostart, autoadvance and loop if you wanted it.
There is a bug with JS errors coming up about the iframe not matching the site. Unfortunately this is a known Google/Webkit bug. https://code.google.com/p/chromium/issues/detail?id=43173
--Vickyntz (Contributions • Message) 22:44, May 9, 2013 (AST)