Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. (function ($) {
  2. "use strict";
  3. // Preloader
  4. $(window).on('load', function () {
  5. if ($('#preloader').length) {
  6. $('#preloader').delay(100).fadeOut('slow', function () {
  7. $(this).remove();
  8. });
  9. }
  10. });
  11. // Back to top button
  12. $(window).scroll(function() {
  13. if ($(this).scrollTop() > 100) {
  14. $('.back-to-top').fadeIn('slow');
  15. } else {
  16. $('.back-to-top').fadeOut('slow');
  17. }
  18. });
  19. $('.back-to-top').click(function(){
  20. $('html, body').animate({scrollTop : 0},1500, 'easeInOutExpo');
  21. return false;
  22. });
  23. var nav = $('nav');
  24. var navHeight = nav.outerHeight();
  25. /*--/ ScrollReveal /Easy scroll animations for web and mobile browsers /--*/
  26. window.sr = ScrollReveal();
  27. sr.reveal('.foo', { duration: 1000, delay: 15 });
  28. /*--/ Carousel owl /--*/
  29. $('#carousel').owlCarousel({
  30. loop: true,
  31. margin: -1,
  32. items: 1,
  33. nav: true,
  34. navText: ['<i class="ion-ios-arrow-back" aria-hidden="true"></i>', '<i class="ion-ios-arrow-forward" aria-hidden="true"></i>'],
  35. autoplay: true,
  36. autoplayTimeout: 3000,
  37. autoplayHoverPause: true
  38. });
  39. /*--/ Animate Carousel /--*/
  40. $('.intro-carousel').on('translate.owl.carousel', function () {
  41. $('.intro-content .intro-title').removeClass('zoomIn animated').hide();
  42. $('.intro-content .intro-price').removeClass('fadeInUp animated').hide();
  43. $('.intro-content .intro-title-top, .intro-content .spacial').removeClass('fadeIn animated').hide();
  44. });
  45. $('.intro-carousel').on('translated.owl.carousel', function () {
  46. $('.intro-content .intro-title').addClass('zoomIn animated').show();
  47. $('.intro-content .intro-price').addClass('fadeInUp animated').show();
  48. $('.intro-content .intro-title-top, .intro-content .spacial').addClass('fadeIn animated').show();
  49. });
  50. /*--/ Navbar Collapse /--*/
  51. $('.navbar-toggle-box-collapse').on('click', function () {
  52. $('body').removeClass('box-collapse-closed').addClass('box-collapse-open');
  53. });
  54. $('.close-box-collapse, .click-closed').on('click', function () {
  55. $('body').removeClass('box-collapse-open').addClass('box-collapse-closed');
  56. $('.menu-list ul').slideUp(700);
  57. });
  58. /*--/ Navbar Menu Reduce /--*/
  59. $(window).trigger('scroll');
  60. $(window).bind('scroll', function () {
  61. var pixels = 50;
  62. var top = 1200;
  63. if ($(window).scrollTop() > pixels) {
  64. $('.navbar-default').addClass('navbar-reduce');
  65. $('.navbar-default').removeClass('navbar-trans');
  66. } else {
  67. $('.navbar-default').addClass('navbar-trans');
  68. $('.navbar-default').removeClass('navbar-reduce');
  69. }
  70. if ($(window).scrollTop() > top) {
  71. $('.scrolltop-mf').fadeIn(1000, "easeInOutExpo");
  72. } else {
  73. $('.scrolltop-mf').fadeOut(1000, "easeInOutExpo");
  74. }
  75. });
  76. /*--/ Property owl /--*/
  77. $('#property-carousel').owlCarousel({
  78. loop: true,
  79. margin: 30,
  80. responsive: {
  81. 0: {
  82. items: 1,
  83. },
  84. 769: {
  85. items: 2,
  86. },
  87. 992: {
  88. items: 3,
  89. }
  90. }
  91. });
  92. /*--/ Property owl owl /--*/
  93. $('#property-single-carousel').owlCarousel({
  94. loop: true,
  95. margin: 0,
  96. nav: true,
  97. navText: ['<i class="ion-ios-arrow-back" aria-hidden="true"></i>', '<i class="ion-ios-arrow-forward" aria-hidden="true"></i>'],
  98. responsive: {
  99. 0: {
  100. items: 1,
  101. }
  102. }
  103. });
  104. /*--/ News owl /--*/
  105. $('#new-carousel').owlCarousel({
  106. loop: true,
  107. margin: 30,
  108. responsive: {
  109. 0: {
  110. items: 1,
  111. },
  112. 769: {
  113. items: 2,
  114. },
  115. 992: {
  116. items: 3,
  117. }
  118. }
  119. });
  120. /*--/ Testimonials owl /--*/
  121. $('#testimonial-carousel').owlCarousel({
  122. margin: 0,
  123. autoplay: true,
  124. nav: true,
  125. animateOut: 'fadeOut',
  126. animateIn: 'fadeInUp',
  127. navText: ['<i class="ion-ios-arrow-back" aria-hidden="true"></i>', '<i class="ion-ios-arrow-forward" aria-hidden="true"></i>'],
  128. autoplayTimeout: 4000,
  129. autoplayHoverPause: true,
  130. responsive: {
  131. 0: {
  132. items: 1,
  133. }
  134. }
  135. });
  136. })(jQuery);