-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunc.js
118 lines (107 loc) · 3.45 KB
/
func.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
$(function () {
var smoke_pos = 0,
smoke_sudu = 4;
vare
time1, time2;
var $work = $('main .row a');
setInterval(function () {
$(".smoke").css({backgroundPosition: '0' + (smoke_pos -= smoke_sudu) + 'px'});
}, 30);
// $.Velocity.hook($('.smoke'), "backgroundpositionX", "0");
// var time1 =
// setInterval(function () {
//
// $('.smoke').velocity({
// backgroundPositionY: "-=4px",
// }, {
// duration: 30,
// easing: "linear",
//// loop: true,
////// complete: "revert",
//// complete: o(),
// });
// }, 30);
//// clearInterval('time2');
//$('.jumbotron').mouseover(
// function () {
//// alert("he");
// clearInterval(time1);
// time2 = setInterval(function () {
// $('.smoke').velocity({
// backgroundPositionY: "-=8px",
// }, {
// duration: 30,
// easing: "linear",
// });
//
// });
// })
// .mouseout(function () {
// clearInterval(time2);
// time1 = setInterval(function () {
// $('.smoke').velocity({
// backgroundPositionY: "-=4px",
// }, {
// duration: 30,
// easing: "linear",
// });
// }, 30);
// });
$('.jumbotron')
.mouseover(function () {
$(this).css("backgroundPosition", "0 -300px");
smoke_sudu = 8
})
.mouseout(function () {
$(this).css("backgroundPosition", "0 0");
smoke_sudu = 4
});
// $work.bind('mouseover', function () {
// var $this = $(this);
// var desc = $this.attr('desc')
// $this.data('name', $this.html());
// desc == '' ? 0 : $this.html(desc);
// }).bind('mouseout', function () {
// var $this = $(this);
// $this.attr('desc', $this.html());
// $this.html($this.data('name'));
// });
$("[desc]")
.bind('mouseover', function () {
var $this = $(this);
var desc = $this.attr('desc');
$this.data('name', $this.html());
desc == '' ? 0 : $this.html(desc);
})
.bind('mouseout', function () {
var $this = $(this);
$this.attr('desc', $this.html());
$this.html($this.data('name'));
});
// $('#all').bind('click',function(){
// $work.css('display','block');
// return false;
// });
// $('#css').bind('click',function(){
// $work.css('display','none');
// $('.' + $(this)[0].id).css('display','block')
//// $('.js').css('display','none');
// return false;
//
// })
// $('#js').bind('click',function(){
// $work.css('display','block');
// $('.css').css('display','none');
// return false;
// })
// $(".nav a").bind("click",function(){
// if (!this.id == ''){
// $work.css('display','none');
// $('.' + this.id).css('display','block');
// }
// })
$("[data-select]").bind("click", function () {
$work.css('display', 'none');
$($(this).attr('data-select')).css('display', 'block');
});
});