Skip to content

kernity/jquery-scribd-rotate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Scribd Rotate

jQuery Scribd Rotate is a jQuery plugin that add rotation feature to scribd seamless viewer It's a simple hack that inject two button and use jqueryRotate library

Be careful, it's not an official SCRIBD PLUGIN it's just a littre js monckeypatch.

Requirements

This plugin use the jQueryRotate plugin to perform the rotation.

http://code.google.com/p/jqueryrotate/

Usage

<link rel="stylesheet" type="text/css" href="../lib/css/jquery.scribd-rotate.css">

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript" src="http://www.scribd.com/javascripts/scribd_api.js"></script>
<script type="text/javascript" src="../lib/js/jQueryRotate.js"></script>
<script type="text/javascript" src="../lib/js/jquery.scribd-rotate.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    var scribd_doc = scribd.Document.getDoc('114202204', 'key-125pv9320u4k8rlpgg6f');
    $('#embedded_doc').scribdRotate({
       scribd_doc: scribd_doc
    });
  })
</script>

Notes

IE support is disabled for the moment. It'll be fixed in a future version after I find time to debug it on an "evil" windows VM ;-)

Screenshots

Author

Khalid Yagoubi (@kernity)

Other

MIT License

Copyright (c) 2012, Khalid Yagoubi

About

A simple jquery plugin monckey patching Scribd by adding rotation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published