Wrocław
teraz
jutro
- Czwartek 14 listopada,
- Elżbieta,
- Wszerad,
- Józef,
- Antyd,
- Serapion,
- Klementyn,
- Judyta,
- Hipacy,
- Laurenty,
- Kosma,
- Lewin,
- Damian,
- Agryppa,
- Teodot,
- Maria,
- Paweł oraz
- Montan
kamma
do wyczerpania zapasów
kamma
do wyczerpania zapasów
');
$('.showMoreNav-175 .prevLink').hide();
$('.showMoreNav-175 .moreLink').click(moreLinkClick);
$('.showMoreNav-175 .prevLink').click(function()
{
var prevLink = $(this);
margin_top = 0;
lvl = 0;
list.animate({ marginTop: margin_top+'px'}, 'slow', function()
{
var moreLink = $('.showMoreNav-175 .moreLink');
moreLink.off('click');
moreLink.click(moreLinkClick);
moreLink.removeClass("noMoreList");
if(!lvl) prevLink.hide(); //usuwamy przycisk cofania
});
});
function moreLinkClick()
{
var $this = $(this);
if (!data_loaded)
{
var url = '/?task=ajax.getArticlesCategory',
options = {};
options.moduleid = 175;
$.getJSON(url, options)
.success(function(res)
{
$('#boxContent-175').append(res.data);
data_loaded = true;
moreLinkClick($this);
})
.fail(function(){ return false; })
}
if (data_loaded)
{
$('.showMoreNav-175 .prevLink').show();
if (lvl < max_lvl)
{
margin_top -= parseInt(list.siblings().eq(lvl).css('height'));
list.animate({ marginTop: margin_top+'px'}, 'slow');
lvl++;
}
if (lvl === max_lvl){
$this.off('click');
$this.addClass("noMoreList");
}
}
}
});
})(jQuery);
Moja książka o konstrukcji
'));
}
});
$(".activity-more").on("click", function(){
$maxHeight;
var $this = $(this);
var element = $this.prev();
switch (element.data("action"))
{
case "colapse":
element.css('max-height', $maxHeight+'px');
element.data("action", "expand");
$this.text('więcej')
break;
default:
element.css('max-height', '');
element.data("action", "colapse");
$this.text('mniej');
break;
}
});
})
})(jQuery);