var scrollPos = 0;
$(window).scroll(function(){
var st = $(this).scrollTop();
if (st > scrollPos){
$('#result').html('Вниз');
} else {
$('#result').html('Вверх');
}
scrollPos = st;
});
navContainer: '.main-content .slide-one-nav', // первый
navContainer: '.main-content .slide-two-nav', // второй
<div class="custom-nav owl-nav slide-one-nav"></div>
<div class="custom-nav owl-nav slide-two-nav"></div>
const s = arraySum([]);
console.log(s);
function arraySum(arr) {
let sum = 0;
if (arr.length) {
sum = arr.reduce((a, b) => {
return (parseFloat(a) || 0) + (parseFloat(b) || 0);
});
} else {
sum = 0;
}
return sum;
}
<html>
<head>
<script src="jquery.js"></script>
<script>
$(function(){
$("#includedContent").load("b.html");
});
</script>
</head>
<body>
<div id="includedContent"></div>
</body>
</html>