Widget:Google Books: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''. | To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''. | ||
</noinclude><includeonly><!--{counter name="bookDivID" assign="bookDivID"}--><div id="viewerCanvas<!--{$bookDivID|escape:'html'}-->" style="width: <!--{$width|escape:'html'|default:'600'}-->px; height: <!--{$height|escape:'html'|default:500}-->px"></div> | </noinclude><includeonly><!--{counter name="bookDivID" assign="bookDivID"}--><div id="viewerCanvas<!--{$bookDivID|escape:'html'}-->" style="width: <!--{$width|escape:'html'|default:'600'}-->px; height: <!--{$height|escape:'html'|default:500}-->px"></div> | ||
<!--{if $bookDivID == 1}--><script type="text/javascript" src="// | <!--{if $bookDivID == 1}--><script type="text/javascript" src="//books.google.com/books/previewlib.js"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
var widgetbooks = []; | var widgetbooks = []; | ||
Line 37: | Line 37: | ||
widgetbooks[widgetbooks.length] = { element: 'viewerCanvas<!--{$bookDivID|escape:'quotes'}-->', id: '<!--{$id|escape:'quotes'}-->' }; | widgetbooks[widgetbooks.length] = { element: 'viewerCanvas<!--{$bookDivID|escape:'quotes'}-->', id: '<!--{$id|escape:'quotes'}-->' }; | ||
showbooks(); | showbooks(); | ||
GBS_insertEmbeddedViewer('widget.id',600,500); | |||
</script> | </script> | ||
<script type="text/javascript | <script type="text/javascript"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
</script></includeonly> | </script></includeonly> |
Revision as of 11:55, 15 August 2020
This widget allows you to embed Google Books on your wiki page.
Created by Arv
Using this widget
For information on how to use this widget, see widget description page on MediaWikiWidgets.org.
Copy to your site
To use this widget on your site, just install MediaWiki Widgets extension and copy the full source code of this page to your wiki as page Widget:Google Books.