Различие между версиями «Участник:Vitalik/Gadget-HideEmptyness.js»

Содержимое удалено Содержимое добавлено
test
готово
Строка 61:
function isLastInSection($item) {
var $next = $item.next();
var debug = $.inArray($next.prop("tagName"), ['H1', 'H2', 'H3', 'H4']) != -1
|| $next.attr('id') == 'catlinks'
|| $next.hasClass('stub-main-footer');
alert($item.html());
alert($.inArray($next.prop("tagName"), ['H1', 'H2', 'H3', 'H4']));
alert($next.attr('id') == 'catlinks');
alert($next.hasClass('stub-main-footer'));
alert(debug);
return $.inArray($next.prop("tagName"), ['H1', 'H2', 'H3', 'H4']) != -1
|| $next.attr('id') == 'catlinks'