Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/Influencer-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsomrat <monnaf37@gmail.com>2020-04-27 08:48:42 +0300
committersomrat <monnaf37@gmail.com>2020-04-27 08:48:42 +0300
commit3280cb7100a2d3e84aed57460c8f751658827eb6 (patch)
tree1e3ac56b490ec7f48af47e9565debe2b7c602491
parent12afe68d048604ff52eb7515aa0ce53afe1ab4a5 (diff)
modified script
-rw-r--r--assets/js/script.js177
1 files changed, 87 insertions, 90 deletions
diff --git a/assets/js/script.js b/assets/js/script.js
index 6a9b037..8793186 100644
--- a/assets/js/script.js
+++ b/assets/js/script.js
@@ -1,120 +1,117 @@
-(function ($) {
- 'use strict';
-
// Preloader js
$(window).on('load', function () {
$('.preloader').fadeOut(100);
});
- $('body').scrollspy({
- target: '#navbarmain'
- });
+ (function ($) {
+ 'use strict';
- /*
- * ----------------------------------------------------------------------------------------
- * SMOTH SCROOL JS
- * ----------------------------------------------------------------------------------------
- */
-
- $('a.smoth-scroll').on('click', function (e) {
- var anchor = $(this);
- $('html, body').stop().animate({
- scrollTop: $(anchor.attr('href')).offset().top - 100
- }, 1000);
- e.preventDefault();
- });
+ $('body').scrollspy({
+ target: '#navbarmain'
+ });
+ /*
+ * ----------------------------------------------------------------------------------------
+ * SMOTH SCROOL JS
+ * ----------------------------------------------------------------------------------------
+ */
+
+ $('a.smoth-scroll').on('click', function (e) {
+ var anchor = $(this);
+ $('html, body').stop().animate({
+ scrollTop: $(anchor.attr('href')).offset().top - 100
+ }, 1000);
+ e.preventDefault();
+ });
- $('.testimonial-wrap').slick({
- slidesToShow: 3,
- slidesToScroll: 3,
- infinite: true,
- dots: false,
- arrows: false,
- autoplay: true,
- autoplaySpeed: 4000,
- responsive: [{
- breakpoint: 1024,
- settings: {
- slidesToShow: 2,
- slidesToScroll: 2,
- infinite: true,
- dots: true
- }
- },
- {
- breakpoint: 900,
- settings: {
- slidesToShow: 2,
- slidesToScroll: 2
- }
- }, {
- breakpoint: 600,
- settings: {
- slidesToShow: 1,
- slidesToScroll: 1
- }
- },
- {
- breakpoint: 480,
- settings: {
- slidesToShow: 1,
- slidesToScroll: 1
+
+ $('.testimonial-wrap').slick({
+ slidesToShow: 3,
+ slidesToScroll: 3,
+ infinite: true,
+ dots: false,
+ arrows: false,
+ autoplay: true,
+ autoplaySpeed: 4000,
+ responsive: [{
+ breakpoint: 1024,
+ settings: {
+ slidesToShow: 2,
+ slidesToScroll: 2
+ }
+ },
+ {
+ breakpoint: 900,
+ settings: {
+ slidesToShow: 2,
+ slidesToScroll: 2
+ }
+ }, {
+ breakpoint: 600,
+ settings: {
+ slidesToShow: 1,
+ slidesToScroll: 1
+ }
+ },
+ {
+ breakpoint: 480,
+ settings: {
+ slidesToShow: 1,
+ slidesToScroll: 1
+ }
}
- }
- ]
- });
+ ]
+ });
- $('.book-preview').each(function () {
- $(this).find('.popup-gallery').magnificPopup({
- type: 'image',
- gallery: {
- enabled: true
- }
+ $('.book-preview').each(function () {
+ $(this).find('.popup-gallery').magnificPopup({
+ type: 'image',
+ gallery: {
+ enabled: true
+ }
+ });
});
- });
- // SCROLL TO TOP
-
- $(window).on('scroll', function () {
- if ($(window).scrollTop() > 70) {
- $('.scroll-to-top').addClass('reveal');
- } else {
- $('.scroll-to-top').removeClass('reveal');
- }
- });
+ // SCROLL TO TOP
+ $(window).on('scroll', function () {
+ if ($(window).scrollTop() > 70) {
+ $('.scroll-to-top').addClass('reveal');
+ } else {
+ $('.scroll-to-top').removeClass('reveal');
+ }
+ });
- /* ----------------------------------------------------------- */
- /* Fixed header
- /* ----------------------------------------------------------- */
+ /* ----------------------------------------------------------- */
+ /* Fixed header
+ /* ----------------------------------------------------------- */
- $(window).on('scroll', function () {
- if ($(window).scrollTop() > 70) {
- $('.site-header').addClass('header-white');
- } else {
- $('.site-header').removeClass('header-white');
- }
- });
+ $(window).on('scroll', function () {
+ if ($(window).scrollTop() > 10) {
+ $('.site-header').addClass('header-white');
+ } else {
+ $('.site-header').removeClass('header-white');
+ }
+ });
- // Smooth scrolling using jQuery easing
- // jQuery for page scrolling feature - requires jQuery Easing plugin
+ // Smooth scrolling using jQuery easing
+ // jQuery for page scrolling feature - requires jQuery Easing plugin
- // Closes responsive menu when a scroll trigger link is clicked
- $('.smoth-scroll').on('click', function (event) {
- $('.navbar-collapse').collapse('hide');
- });
+ // Closes responsive menu when a scroll trigger link is clicked
+ $('.smoth-scroll').on('click', function (event) {
+ $('.navbar-collapse').collapse('hide');
+ });
-})(jQuery); \ No newline at end of file
+ })(jQuery); \ No newline at end of file