app.js 2.5 KB

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