-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnazzy-archives.js
55 lines (41 loc) · 1.23 KB
/
snazzy-archives.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
jQuery(document).ready(function($) {
snazzy_mini=parseInt(SnazzySettings.snazzy_mini);
snazzy_fx=parseInt(SnazzySettings.snazzy_fx);
snazzy_corners=parseInt(SnazzySettings.snazzy_corners);
if (snazzy_mini)
{
$('.sz_day').hide();
}
if (snazzy_fx==1)
{
$(".sz_carousel").jCarouselLite({
btnNext: "#szright",
btnPrev: "#szleft",
// mouseWheel: true, // scrolling left - right with mouse wheel. you need to uncomment mousewheel.js in the code
visible:4, // number of visible elements
circular:false, //is it circular
def_width:116, // width + padding width
def_height:0
});
$('.sz_month').css('width','100px');
}
if (snazzy_corners)
{
$('.sz_img').corner();
}
$('#toggle_pages').click(function(){
$('.sz_page').toggle();
});
$('#toggle_posts').click(function(){
$('.sz_post').toggle();
});
$('#toggle_all').click(function(){
$('.sz_day').toggle();
});
$('.sz_date_day').click(function(){
$(this).next('.sz_day').slideToggle();
});
$('.sz_date_mon').click(function(){
$(this).next('.sz_month').children('.sz_day').toggle();
});
});