mirror of https://github.com/abpframework/abp
parent
f2032ff7a4
commit
2606520715
@ -0,0 +1,4 @@
|
||||
{
|
||||
"singleQuote": true,
|
||||
"useTabs": true
|
||||
}
|
||||
@ -1,67 +1,67 @@
|
||||
(function() {
|
||||
function handleArrows() {
|
||||
var herosWidth = $(".hero-articles").width();
|
||||
var arrowsPosition = (herosWidth / 2 - 90);
|
||||
$(".owl-next").css("right", arrowsPosition);
|
||||
$(".owl-prev").css("left", arrowsPosition);
|
||||
}
|
||||
(function () {
|
||||
function handleArrows() {
|
||||
var herosWidth = $('.hero-articles').width();
|
||||
var arrowsPosition = herosWidth / 2 - 90;
|
||||
$('.owl-next').css('right', arrowsPosition);
|
||||
$('.owl-prev').css('left', arrowsPosition);
|
||||
}
|
||||
|
||||
function handleImages() {
|
||||
//if ($(window).width() > 767) {
|
||||
// $(".box-articles .img-container").each(function () {
|
||||
// var squareWidth = $(this).width();
|
||||
// $(this).css("height", squareWidth);
|
||||
// });
|
||||
//}
|
||||
//else {
|
||||
// $(".box-articles .img-container").css("height", "auto");
|
||||
//}
|
||||
}
|
||||
function handleImages() {
|
||||
//if ($(window).width() > 767) {
|
||||
// $(".box-articles .img-container").each(function () {
|
||||
// var squareWidth = $(this).width();
|
||||
// $(this).css("height", squareWidth);
|
||||
// });
|
||||
//}
|
||||
//else {
|
||||
// $(".box-articles .img-container").css("height", "auto");
|
||||
//}
|
||||
}
|
||||
|
||||
function handleOwlCarousel() {
|
||||
$('.hero-section .owl-carousel').owlCarousel({
|
||||
loop: true,
|
||||
margin: 0,
|
||||
nav: false,
|
||||
dots: false,
|
||||
//center: true,
|
||||
autoplay: true,
|
||||
autoHeight: true,
|
||||
autoplaySpeed: 1000,
|
||||
items: 1,
|
||||
});
|
||||
$('.card-article-container .owl-carousel').owlCarousel({
|
||||
loop: true,
|
||||
margin: 0,
|
||||
nav: false,
|
||||
dots: false,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 1000,
|
||||
responsive: {
|
||||
0: {
|
||||
items: 1
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
function handleOwlCarousel() {
|
||||
$('.hero-section .owl-carousel').owlCarousel({
|
||||
loop: true,
|
||||
margin: 0,
|
||||
nav: false,
|
||||
dots: false,
|
||||
//center: true,
|
||||
autoplay: true,
|
||||
autoHeight: true,
|
||||
autoplaySpeed: 1000,
|
||||
items: 1,
|
||||
});
|
||||
$('.card-article-container .owl-carousel').owlCarousel({
|
||||
loop: true,
|
||||
margin: 0,
|
||||
nav: false,
|
||||
dots: false,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 1000,
|
||||
responsive: {
|
||||
0: {
|
||||
items: 1,
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
$(function () {
|
||||
handleImages();
|
||||
handleOwlCarousel();
|
||||
$(function () {
|
||||
handleImages();
|
||||
handleOwlCarousel();
|
||||
|
||||
$(".nav-link").on("click", function () {
|
||||
$(this).parent().parent();
|
||||
});
|
||||
$('.nav-link').on('click', function () {
|
||||
$(this).parent().parent();
|
||||
});
|
||||
|
||||
$(window).resize(function () {
|
||||
setTimeout(function () {
|
||||
handleArrows();
|
||||
handleImages();
|
||||
}, 500);
|
||||
});
|
||||
$(window).resize(function () {
|
||||
setTimeout(function () {
|
||||
handleArrows();
|
||||
handleImages();
|
||||
}, 500);
|
||||
});
|
||||
|
||||
setTimeout(function () {
|
||||
handleArrows();
|
||||
}, 500);
|
||||
});
|
||||
})();
|
||||
setTimeout(function () {
|
||||
handleArrows();
|
||||
}, 500);
|
||||
});
|
||||
})();
|
||||
|
||||
Loading…
Reference in new issue