layout.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. new WOW().init();
  2. if (!(/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/i).test(navigator.userAgent || navigator.vendor || window.opera)) {
  3. skrollr.init({
  4. forceHeight: false,
  5. smoothScrolling: true
  6. });
  7. }
  8. jQuery(document).ready(function($) {
  9. /* Fixed header */
  10. $(function() {
  11. "use strict";
  12. $('.main-header-fixed .main-header').hcSticky({});
  13. });
  14. /* Sticky bars */
  15. $(function() {
  16. "use strict";
  17. $('.sticky-nav').hcSticky({
  18. top: 50
  19. });
  20. });
  21. /* Main nav */
  22. $(function() {
  23. "use strict";
  24. $('.header-nav > li').hover(function(){
  25. $(this).addClass('sfHover');
  26. },
  27. function(){
  28. $(this).removeClass('sfHover');
  29. });
  30. //$('.header-nav').superfish({
  31. //
  32. //});
  33. });
  34. /* Responsive nav */
  35. $(function() {
  36. "use strict";
  37. $('#responsive-menu').click(function() {
  38. $('.main-header ul.main-nav').toggle();
  39. });
  40. });
  41. });