-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.js
More file actions
56 lines (43 loc) · 973 Bytes
/
scripts.js
File metadata and controls
56 lines (43 loc) · 973 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
54
55
56
/*
var el = document.getElementById();
function fadeIn(el) {
el.style.opacity = 0;
var tick = function() {
el.style.opacity = +el.style.opacity + 0.01;
if (+el.style.opacity < 1) {
(window.requestAnimationFrame && requestAnimationFrame(tick)) || setTimeout(tick, 16)
}
};
tick();
}
fadeIn(el);
*/
/*
$(document).ready(function() {
function fadeIn() {
$("body").fadeIn()
}
function prevPage(page) {
// Does animation stuff and goes to prev page
$("body").fadeOut();
}
function nextPage(page) {
// Does animation stuff and goes to next page
$("body").fadeOut();
}
}
*/
$(document).ready(function() {
$('#body').fadeIn(300);
$(".arrow").click(function(){
$("body").fadeOut(300);
var location = $(this).attr("alt");
setTimeout(function() {
$("body").fadeOut(300);
console.log("hey");
console.log(location);
console.log("there");
window.location.href = location;
}, 300);
});
});