func.js
1008 Bytes
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
$(function(){
$(".review-image-modal").fancybox({
buttons: [
"zoom",
"fullScreen",
"download",
"thumbs",
"close"
]
});
$('.header .header__burger').click(function(){
var this_btn = $(this);
var wrap = this_btn.closest('.header');
wrap.toggleClass('active-menu');
});
$('body').click(function(e){
var target = $(e.target);
if (!target.hasClass('.header__burger') && target.closest('.header__burger').length === 0){
$('header.header').removeClass('active-menu');
}
});
});
var spinStart = function(button) {
button.prop('disabled', true);
if (!button.find('.button-loader').length){
button.html('<div class="button-loader"></div>' + button.html());
}
};
var spinStop= function(button) {
button.prop('disabled', false);
button.find('.button-loader').remove();
};
var cl = function(obj){
console.log(obj);
}