.subList {
...
position: absolute;
top: 0;
left: 0;
...
}
.items:last-child {
.subList {
right: 0;
}
}
<a class="on" href="javascript:;">Включить</a>
<a class="off" href="javascript:;">Выключить</a>
<div class="text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur, molestiae!
</div>
.text {
display: none;
}
.on {
&.is-active {
color: green;
}
}
.off {
&.is-active {
color: grey;
}
}
$on = $('.on');
$off = $('.off');
$text = $('.text');
active = 'is-active';
$on.click(function() {
$text.fadeIn(300);
$on.addClass(active);
$off.removeClass(active);
})
$off.click(function() {
$text.fadeOut(300);
$on.removeClass(active);
$off.addClass(active);
})
<div id="load_numAll-shet" style="display:none">
<div data-num="10" id="load_numAll" >10</div>
<div data-num="50" id="load_numAll" >50</div>
<div data-num="70" id="load_numAll" >70</div>
<div data-num="80" id="load_numAll" >80</div>
</div>
<div id="load_numAll-show"></div>
var $showBox = $('#load_numAll-show');
var $numbers = $('#load_numAll-shet div');
var sum = 0;
$numbers.each(function() {
sum += parseInt($(this).data('num'));
});
$showBox.text(sum);
var $showBox = document.getElementById('load_numAll-show');
var $numbers = document.querySelectorAll('#load_numAll-shet div');
var sum = 0;
for(var i = 0; i < $numbers.length; i++) {
sum += Number($numbers[i].dataset.num);
}
$showBox.innerText = sum;