-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpp.js
More file actions
59 lines (39 loc) · 934 Bytes
/
pp.js
File metadata and controls
59 lines (39 loc) · 934 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
48
49
50
51
52
53
var slideIndex = 0;
carousel();
function carousel() {
var i;
var x = document.getElementsByClassName("slide");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
slideIndex++;
if (slideIndex > x.length) {slideIndex = 1}
x[slideIndex-1].style.display = "block";
setTimeout(carousel, 2000);
}
$(document).ready(function(){
$("p").mouseenter(function(){
$("p").css("background-color", "yellow");
});
});
function display(){
$( "li.list" )
.filter( ":odd" )
.hide()
.end()
.filter( ":even" )
.hover(function() {
$(".button3")
.toggleClass(".but");
$(this)
.next()
.stop( true, true )
.slideToggle();
});
}
setInterval(function() {
$(".item1").addClass('animating');
setTimeout(function() {
$(".item1").removeClass('animating');
}, 1000);
}, 3000);