-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstuff.js
More file actions
33 lines (28 loc) · 709 Bytes
/
Copy pathstuff.js
File metadata and controls
33 lines (28 loc) · 709 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
(function ($) {
$(document).ready(function () {
$('.flexslider').flexslider({
animation: "slide",
controlsContainer: ".flex-container"
});
function deg () {
var angles = [-3,-2,2,3];
return angles[Math.floor(Math.random()*angles.length)];
}
$('#sponsorShots').find('li').each(function (i) {
$(this).css({
"-webkit-transform": 'rotate(' + deg() + 'deg)',
"-moz-transform": 'rotate(' + deg() + 'deg)'
});
});
/* ======= Smooth Scrolling ======= */
$("a.topLink").click(function() {
$("html, body").animate({
scrollTop: $($(this).attr("href")).offset().top - 160
}, {
duration: 500,
easing: "swing"
});
return false;
});
});
}(jQuery));