Skip to content

Instantly share code, notes, and snippets.

Forked from nealpoole/index.html
Last active August 29, 2015 14:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save samueltcsantos/fbd1a9df89b131043795 to your computer and use it in GitHub Desktop.
<div id="issuu-widget">
<script type="text/javascript" src="/wp-includes/js/swfobject.js"></script>
<script type="text/javascript">
function loadIssuuWidget(result) {
var doc =[0];
var link = jQuery('<a />').attr({
href: '' + doc.docname,
jQuery('<img id="issuu-thumbnail" />').attr({
src: '' + doc.documentId + '/jpg/page_1_thumb_large.jpg',
width: 300
jQuery("#issuu-thumbnail").on("click", function(e) {
var attributes = {
id: 'issuu-viewer'
var params = {
allowfullscreen: 'true',
menu: 'false',
wmode: 'transparent'
var flashvars = {
jsAPIClientDomain: '',
mode: 'mini',
documentId: doc.documentId
swfobject.embedSWF("", "issuu-widget", "300", "300", "9.0.0","swfobject/expressInstall.swf", flashvars, params, attributes);
<script type="text/javascript" src=";sortBy=epoch&amp;pageSize=1&amp;jsonCallback=loadIssuuWidget"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment