shim.html 740 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html>
  3. <head class="no-skrollr">
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  6. <title>Your title</title>
  7. </head>
  8. <body>
  9. <div id="skrollr-body">
  10. <!--
  11. Put all your elements here.
  12. -->
  13. </div>
  14. <script type="text/javascript" src="dist/skrollr.min.js"></script>
  15. <!--[if lt IE 9]>
  16. <script type="text/javascript" src="dist/skrollr.ie.min.js"></script>
  17. <![endif]-->
  18. <script type="text/javascript">
  19. var s = skrollr.init();
  20. //Or you may call the init-function at some other point. You could for example use an image preloader.
  21. /*
  22. window.onload = function() {
  23. //Calling it twice doesn't hurt.
  24. skrollr.init();
  25. };
  26. */
  27. </script>
  28. </body>
  29. </html>