diff options
author | somratpro <abdulmonnafsomrat@gmail.com> | 2021-04-27 06:37:33 +0300 |
---|---|---|
committer | somratpro <abdulmonnafsomrat@gmail.com> | 2021-04-27 06:37:33 +0300 |
commit | b35b9b12ccc6aa4451e50bc5b8604587d444afc6 (patch) | |
tree | a350397104f031682d2c1585368574b5e2909d08 | |
parent | d1d0ffe17a518e680802d530c4c8b64695ecf477 (diff) |
fix js error
-rw-r--r-- | assets/js/script.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/assets/js/script.js b/assets/js/script.js index 98d7e7b..a1f00c0 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -1,8 +1,10 @@ -$(document).on('turbolinks:load', function () { +// Preloader js +$(window).on('load', function () { + $('.preloader').fadeOut(100); +}); + +$(document).ready(function () { 'use strict'; - - // prelaoder - $('.preloader').delay(100).fadeOut(10); //slider $('.slider').not('.slick-initialized').slick({ @@ -13,4 +15,4 @@ $(document).on('turbolinks:load', function () { arrows: false }); -})(jQuery);
\ No newline at end of file +});
\ No newline at end of file |