custom.js
1.29 KB
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
56
57
58
59
60
61
62
63
64
65
// JavaScript Document
window.onload = function() {
var myPhotoSwipe = $("#gallery a").photoSwipe({
enableMouseWheel: false,
enableKeyboard: false,
allowUserZoom: false,
loop:false
});
};
$(document).ready(function(){
setTimeout(function() { window.scrollTo(0, 1) }, 100);
var slider = new Swipe(document.getElementById('slider'));
$('.next-but-swipe').click(function(){
slider.next();
return false;
});
$('.prev-but-swipe').click(function(){
slider.prev();
return false;
});
$('.toggle-plus').click(function(){
$(this).toggleClass('toggle-plus-selected');
$(this).parent().find('.toggle-content').toggle(100);
return false;
});
$('.toggle-arrow').click(function(){
$(this).toggleClass('toggle-arrow-selected');
$(this).parent().find('.toggle-content').toggle(100);
return false;
});
$(".notification-quit-red").click(function(){
$(".notification-box-red").hide("slow");
return false;
});
$(".notification-quit-green").click(function(){
$(".notification-box-green").hide("slow");
return false;
});
$(".notification-quit-yellow").click(function(){
$(".notification-box-yellow").hide("slow");
return false;
});
$(".notification-quit-blue").click(function(){
$(".notification-box-blue").hide("slow");
return false;
});
});