index.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. lexar
  3. Author - bootstrapdevelop
  4. Project Version - v1.0
  5. */
  6. (function ($) {
  7. "use strict";
  8. /**sticky*/
  9. $("#header").sticky({topSpacing:0});
  10. //auto close navbar-collapse on click a
  11. $('.nav-item>[data-scroll]').on('click', function () {
  12. $('.navbar-toggler:visible').click();
  13. });
  14. // owl-carousel
  15. // $(".what_say_sldier").owlCarousel({
  16. // loop:true,
  17. // margin:30,
  18. // nav:false,
  19. // dots:true,
  20. // responsive:{
  21. // 0:{
  22. // items:1
  23. // },
  24. // 600:{
  25. // items:2
  26. // },
  27. // 1000:{
  28. // items:3
  29. // }
  30. // }
  31. // });
  32. //
  33. // $(".pricing_slider").owlCarousel({
  34. // loop:true,
  35. // margin:0,
  36. // nav:false,
  37. // dots:true,
  38. // responsive:{
  39. // 0:{
  40. // items:1
  41. // },
  42. // 600:{
  43. // items:2
  44. // },
  45. // 1000:{
  46. // items:3
  47. // }
  48. // }
  49. // });
  50. // $(".team_slider").owlCarousel({
  51. // loop:true,
  52. // margin:10,
  53. // nav:false,
  54. // dots:true,
  55. // responsive:{
  56. // 0:{
  57. // items:1
  58. // },
  59. // 600:{
  60. // items:2
  61. // },
  62. // 1000:{
  63. // items:3
  64. // },
  65. // 1200:{
  66. // items:4
  67. // }
  68. // }
  69. // });
  70. // Select all links with hashes
  71. /*
  72. lexar - Software HTML5 Landing Page
  73. Author - nilssatasiya
  74. Project Version - v1.0
  75. */
  76. (function ($) {
  77. "use strict";
  78. //auto close navbar-collapse on click a
  79. $('.nav-item').on('click', function () {
  80. $('.navbar-toggler:visible').click();
  81. });
  82. $('a[href*="#"]')
  83. // Remove links that don't actually link to anything
  84. .not('[href="#"]')
  85. .not('[href="#0"]')
  86. .not('[href="#video-modal"]')
  87. .click(function(event) {
  88. // On-page links
  89. if (
  90. location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') &&
  91. location.hostname == this.hostname
  92. ) {
  93. // Figure out element to scroll to
  94. var target = $(this.hash);
  95. target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
  96. // Does a scroll target exist?
  97. if (target.length) {
  98. // Only prevent default if animation is actually gonna happen
  99. event.preventDefault();
  100. $('html, body').animate({
  101. scrollTop: target.offset().top
  102. }, 1000, function() {
  103. // Callback after animation
  104. });
  105. }
  106. }
  107. });
  108. })(jQuery);
  109. $(document).ready(function(){
  110. $('[data-toggle="tooltip"]').tooltip();
  111. });
  112. $(".loader_pre").fadeTo(1,1).fadeOut(1);
  113. })(jQuery);