Browse Source

Remove remaining owl arrow handlers from blog.js

pull/26005/head
maliming 2 weeks ago
parent
commit
3e6d0b1b4b
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 12
      modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Shared/Scripts/blog.js

12
modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Shared/Scripts/blog.js

@ -1,11 +1,4 @@
(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 () {
@ -27,13 +20,8 @@
$(window).resize(function () {
setTimeout(function () {
handleArrows();
handleImages();
}, 500);
});
setTimeout(function () {
handleArrows();
}, 500);
});
})();

Loading…
Cancel
Save