-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathhome.js
40 lines (36 loc) · 870 Bytes
/
home.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
$(function () {
var lastInstall = '#node'
, allowToggle = true;
$('.install').on('click', 'a.toggle', function (e) {
e.preventDefault();
e.stopPropagation();
if (!allowToggle) return;
var which = $(this).attr('href');
allowToggle = false;
$(lastInstall + '.install').animate({
opacity: 0
}, 250, function () {
$(this).css({ display: 'none' });
allowToggle = true;
});
$(which + '.install')
.css({
display: 'block'
, opacity: 0
})
.animate({
opacity: 1
}, 250);
lastInstall = which;
});
$('.callouts .call').mouseenter(function (e) {
$(this).find('.bg').stop().animate({
opacity: 0.6
}, 250);
});
$('.callouts .call').mouseleave(function (e) {
$(this).find('.bg').stop().animate({
opacity: 0
}, 250);
});
});