Skip to content

Commit b10336b

Browse files
committed
dos2unix template files
Signed-off-by: Nir Izraeli <nirizr@gmail.com>
1 parent 9221b5c commit b10336b

File tree

2 files changed

+343
-343
lines changed

2 files changed

+343
-343
lines changed
+119-119
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,119 @@
1-
/*---LEFT BAR ACCORDION----*/
2-
$(function() {
3-
$('#nav-accordion').dcAccordion({
4-
eventType: 'click',
5-
autoClose: true,
6-
saveState: true,
7-
disableLink: true,
8-
speed: 'slow',
9-
showCount: false,
10-
autoExpand: true,
11-
// cookie: 'dcjq-accordion-1',
12-
classExpand: 'dcjq-current-parent'
13-
});
14-
});
15-
16-
var Script = function () {
17-
18-
19-
// sidebar dropdown menu auto scrolling
20-
21-
jQuery('#sidebar .sub-menu > a').click(function () {
22-
var o = ($(this).offset());
23-
diff = 250 - o.top;
24-
if(diff>0)
25-
$("#sidebar").scrollTo("-="+Math.abs(diff),500);
26-
else
27-
$("#sidebar").scrollTo("+="+Math.abs(diff),500);
28-
});
29-
30-
31-
32-
// sidebar toggle
33-
34-
$(function() {
35-
function responsiveView() {
36-
var wSize = $(window).width();
37-
if (wSize <= 768) {
38-
$('#container').addClass('sidebar-close');
39-
$('#sidebar > ul').hide();
40-
}
41-
42-
if (wSize > 768) {
43-
$('#container').removeClass('sidebar-close');
44-
$('#sidebar > ul').show();
45-
}
46-
}
47-
$(window).on('load', responsiveView);
48-
$(window).on('resize', responsiveView);
49-
});
50-
51-
$('.fa-bars').click(function () {
52-
if ($('#sidebar > ul').is(":visible") === true) {
53-
$('#main-content').css({
54-
'margin-left': '0px'
55-
});
56-
$('#sidebar').css({
57-
'margin-left': '-210px'
58-
});
59-
$('#sidebar > ul').hide();
60-
$("#container").addClass("sidebar-closed");
61-
} else {
62-
$('#main-content').css({
63-
'margin-left': '210px'
64-
});
65-
$('#sidebar > ul').show();
66-
$('#sidebar').css({
67-
'margin-left': '0'
68-
});
69-
$("#container").removeClass("sidebar-closed");
70-
}
71-
});
72-
73-
// custom scrollbar
74-
$("#sidebar").niceScroll({styler:"fb",cursorcolor:"#4ECDC4", cursorwidth: '3', cursorborderradius: '10px', background: '#404040', spacebarenabled:false, cursorborder: ''});
75-
76-
$("html").niceScroll({styler:"fb",cursorcolor:"#4ECDC4", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled:false, cursorborder: '', zindex: '1000'});
77-
78-
// widget tools
79-
80-
jQuery('.panel .tools .fa-chevron-down').click(function () {
81-
var el = jQuery(this).parents(".panel").children(".panel-body");
82-
if (jQuery(this).hasClass("fa-chevron-down")) {
83-
jQuery(this).removeClass("fa-chevron-down").addClass("fa-chevron-up");
84-
el.slideUp(200);
85-
} else {
86-
jQuery(this).removeClass("fa-chevron-up").addClass("fa-chevron-down");
87-
el.slideDown(200);
88-
}
89-
});
90-
91-
jQuery('.panel .tools .fa-times').click(function () {
92-
jQuery(this).parents(".panel").parent().remove();
93-
});
94-
95-
96-
// tool tips
97-
98-
$('.tooltips').tooltip();
99-
100-
// popovers
101-
102-
$('.popovers').popover();
103-
104-
105-
106-
// custom bar chart
107-
108-
if ($(".custom-bar-chart")) {
109-
$(".bar").each(function () {
110-
var i = $(this).find(".value").html();
111-
$(this).find(".value").html("");
112-
$(this).find(".value").animate({
113-
height: i
114-
}, 2000)
115-
})
116-
}
117-
118-
119-
}();
1+
/*---LEFT BAR ACCORDION----*/
2+
$(function() {
3+
$('#nav-accordion').dcAccordion({
4+
eventType: 'click',
5+
autoClose: true,
6+
saveState: true,
7+
disableLink: true,
8+
speed: 'slow',
9+
showCount: false,
10+
autoExpand: true,
11+
// cookie: 'dcjq-accordion-1',
12+
classExpand: 'dcjq-current-parent'
13+
});
14+
});
15+
16+
var Script = function () {
17+
18+
19+
// sidebar dropdown menu auto scrolling
20+
21+
jQuery('#sidebar .sub-menu > a').click(function () {
22+
var o = ($(this).offset());
23+
diff = 250 - o.top;
24+
if(diff>0)
25+
$("#sidebar").scrollTo("-="+Math.abs(diff),500);
26+
else
27+
$("#sidebar").scrollTo("+="+Math.abs(diff),500);
28+
});
29+
30+
31+
32+
// sidebar toggle
33+
34+
$(function() {
35+
function responsiveView() {
36+
var wSize = $(window).width();
37+
if (wSize <= 768) {
38+
$('#container').addClass('sidebar-close');
39+
$('#sidebar > ul').hide();
40+
}
41+
42+
if (wSize > 768) {
43+
$('#container').removeClass('sidebar-close');
44+
$('#sidebar > ul').show();
45+
}
46+
}
47+
$(window).on('load', responsiveView);
48+
$(window).on('resize', responsiveView);
49+
});
50+
51+
$('.fa-bars').click(function () {
52+
if ($('#sidebar > ul').is(":visible") === true) {
53+
$('#main-content').css({
54+
'margin-left': '0px'
55+
});
56+
$('#sidebar').css({
57+
'margin-left': '-210px'
58+
});
59+
$('#sidebar > ul').hide();
60+
$("#container").addClass("sidebar-closed");
61+
} else {
62+
$('#main-content').css({
63+
'margin-left': '210px'
64+
});
65+
$('#sidebar > ul').show();
66+
$('#sidebar').css({
67+
'margin-left': '0'
68+
});
69+
$("#container").removeClass("sidebar-closed");
70+
}
71+
});
72+
73+
// custom scrollbar
74+
$("#sidebar").niceScroll({styler:"fb",cursorcolor:"#4ECDC4", cursorwidth: '3', cursorborderradius: '10px', background: '#404040', spacebarenabled:false, cursorborder: ''});
75+
76+
$("html").niceScroll({styler:"fb",cursorcolor:"#4ECDC4", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled:false, cursorborder: '', zindex: '1000'});
77+
78+
// widget tools
79+
80+
jQuery('.panel .tools .fa-chevron-down').click(function () {
81+
var el = jQuery(this).parents(".panel").children(".panel-body");
82+
if (jQuery(this).hasClass("fa-chevron-down")) {
83+
jQuery(this).removeClass("fa-chevron-down").addClass("fa-chevron-up");
84+
el.slideUp(200);
85+
} else {
86+
jQuery(this).removeClass("fa-chevron-up").addClass("fa-chevron-down");
87+
el.slideDown(200);
88+
}
89+
});
90+
91+
jQuery('.panel .tools .fa-times').click(function () {
92+
jQuery(this).parents(".panel").parent().remove();
93+
});
94+
95+
96+
// tool tips
97+
98+
$('.tooltips').tooltip();
99+
100+
// popovers
101+
102+
$('.popovers').popover();
103+
104+
105+
106+
// custom bar chart
107+
108+
if ($(".custom-bar-chart")) {
109+
$(".bar").each(function () {
110+
var i = $(this).find(".value").html();
111+
$(this).find(".value").html("");
112+
$(this).find(".value").animate({
113+
height: i
114+
}, 2000)
115+
})
116+
}
117+
118+
119+
}();

0 commit comments

Comments
 (0)