In this repo i store all my websites, each in a different branch
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.8 KiB

  1. $(function () {
  2. "use strict";
  3. $(document).ready(function () {
  4. // Slider Video
  5. $('.intro-Rev_Video').revolution({
  6. sliderType: "hero",
  7. delay: 9000,
  8. startwidth: 1170,
  9. startheight: 500,
  10. fullScreen: "on",
  11. forceFullWidth: "on",
  12. minFullScreenHeight: "320",
  13. touchenabled: "off",
  14. });
  15. // Slider Dark Light
  16. var revslider_two = $('.intro-RevSlider');
  17. revslider_two.revolution({
  18. delay: 15000,
  19. startwidth: 1170,
  20. startheight: 500,
  21. hideThumbs: 10,
  22. hideTimerBar: "off",
  23. fullWidth: "off",
  24. fullScreen: "on",
  25. fullScreenOffsetContainer: "",
  26. navigationStyle: "preview4",
  27. navigationType: "none",
  28. });
  29. // Header color "dark" "light |-------------------------------------------------------"
  30. revslider_two.bind("revolution.slide.onchange", function (e, data) {
  31. var color = $(this).find('li').eq(data.slideIndex - 1).data('slide');
  32. if (color == 'dark-slide') {
  33. $('#header').addClass('header').removeClass('header-light');
  34. $('#header').removeClass('header-default');
  35. }
  36. if (color == 'light-slide') {
  37. $('#header').addClass('header-light').removeClass('header-dark');
  38. $('#header').removeClass('header-default');
  39. }
  40. if (color == 'default-slide') {
  41. $('#header').removeClass('header-dark');
  42. $('#header').removeClass('header-light');
  43. $('#header').addClass('header');
  44. }
  45. // console.log("rev slide color: " + color);
  46. });
  47. });
  48. });