Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. $(document).ready(function($) {
  2. $('.source').each(function() {
  3. var selector = '#' + $(this).data('source-id');
  4. Tipped.create(this, $(selector)[0], {
  5. skin: 'white',
  6. hook: 'topleft',
  7. hideOn: 'click',
  8. showOn: 'click',
  9. maxWidth: 250,
  10. closeButton: true
  11.  
  12. });
  13. });
  14. });
  15.  
  16. function loadApp() {
  17. // Create the flipbook
  18. $('.flipbook').turn({
  19. // Width
  20. width: 900,
  21. // Height
  22. height: 620,
  23. // Elevation
  24. elevation: 50,
  25. // Enable gradients
  26. gradients: true,
  27. duration: 1000,
  28. pages: 16,
  29. // Auto center this flipbook
  30. autoCenter: true,
  31. });
  32. }
  33. // Load the HTML4 version if there's not CSS transform
  34.  
  35. yepnope({
  36. test: Modernizr.csstransforms,
  37. yep: ['lib/turn.js'],
  38. nope: ['lib/turn.html4.min.js'],
  39. both: ['css/basic.css'],
  40. complete: loadApp
  41. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement