diff options
author | somrat <monnaf37@gmail.com> | 2020-04-11 07:39:41 +0300 |
---|---|---|
committer | somrat <monnaf37@gmail.com> | 2020-04-11 07:39:41 +0300 |
commit | 77e2cae6bca393d3d3f3aa1b0e850db51660f223 (patch) | |
tree | 2992950bbb814f391ffe4c2aac0fd0b1588121eb | |
parent | 9c372e73ec5498dabac8c7b278b2e6a579726aa1 (diff) |
modified preloader script
-rw-r--r-- | assets/js/script.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/assets/js/script.js b/assets/js/script.js index ff3101e..51888a8 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -1,13 +1,11 @@ +// Preloader js +$(window).on('load', function () { + $('.preloader').fadeOut(100); +}); + (function ($) { 'use strict'; - - // Preloader js - $(window).on('load', function () { - $('.preloader').fadeOut(100); - }); - - // Sticky Menu $(window).scroll(function () { if ($('.navigation').offset().top > 100) { @@ -49,7 +47,7 @@ other operations, as below elements are bingding to the parallax. */ if (!parallaxBox) { - return ; + return; } var @@ -169,4 +167,4 @@ -})(jQuery); +})(jQuery);
\ No newline at end of file |