first commit

This commit is contained in:
unknown
2021-09-20 10:41:30 +03:00
commit f648144db7
44 changed files with 1615 additions and 0 deletions

5
js/jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

76
js/main.js Normal file
View File

@@ -0,0 +1,76 @@
$(document).ready(function() {
/* Navigation burger onclick side navigation show */
$('.burger-container').on('click', function() {
$('.main-navigation').toggle('slow');
if($('#myBtn').hasClass('change')) {
$('body').addClass('stop-scroll');
} else {
$('body').removeClass('stop-scroll');
}
});
/* About me slider */
$('.about-me-slider').slick({
slidesToShow: 1,
prevArrow: '<span class="span-arrow slick-prev"><</span>',
nextArrow: '<span class="span-arrow slick-next">></span>'
});
/* Blog slider */
$('.blog-slider').slick({
slidesToShow: 2,
prevArrow: '<span class="span-arrow slick-prev"><</span>',
nextArrow: '<span class="span-arrow slick-next">></span>',
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 1
}
}
]
});
});
var counta = 0;
$(window).scroll(function(e){
/* Onscroll number counter */
var statisticNumbers = $('.single-count');
if(statisticNumbers.length) {
var oTop = statisticNumbers.offset().top - window.innerHeight;
if (counta == 0 && $(window).scrollTop() > oTop) {
$('.count').each(function() {
var $this = $(this),
countTo = $this.attr('data-count');
$({
countNum: $this.text()
}).animate({
countNum: countTo
},
{
duration: 2000,
easing: 'swing',
step: function() {
$this.text(Math.floor(this.countNum));
},
complete: function() {
$this.text(this.countNum);
}
});
});
counta = 1;
}
}
});

1
js/slick.min.js vendored Normal file

File diff suppressed because one or more lines are too long