Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function($) {
- $('.source').each(function() {
- var selector = '#' + $(this).data('source-id');
- Tipped.create(this, $(selector)[0], {
- skin: 'white',
- hook: 'topleft',
- hideOn: 'click',
- showOn: 'click',
- maxWidth: 250,
- closeButton: true
- });
- });
- });
- function loadApp() {
- // Create the flipbook
- $('.flipbook').turn({
- // Width
- width: 900,
- // Height
- height: 620,
- // Elevation
- elevation: 50,
- // Enable gradients
- gradients: true,
- duration: 1000,
- pages: 16,
- // Auto center this flipbook
- autoCenter: true,
- });
- }
- // Load the HTML4 version if there's not CSS transform
- yepnope({
- test: Modernizr.csstransforms,
- yep: ['lib/turn.js'],
- nope: ['lib/turn.html4.min.js'],
- both: ['css/basic.css'],
- complete: loadApp
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement