-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootScript.js
More file actions
34 lines (19 loc) · 805 Bytes
/
Copy pathbootScript.js
File metadata and controls
34 lines (19 loc) · 805 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
console.log("Hello World!"); //for reference
window.onload = function(){
var logo = $(".header");
TweenLite.to(logo, 5, {left:"440px", ease:Bounce.easeOut});
}
/*This controls the height of the background image*/
function jqUpdateSize(){
// Get the dimensions of the viewport
var width = $(window).width();
var height = $(window).height();
$('#jqWidth').html(width); // Display the width
$('#jqHeight').html(height); // Display the height
$(".header-image").css("height", height-51);
console.log("Width: " + width);
console.log("Height " + height);
};
$(document).ready(jqUpdateSize); // When the page first loads
$(window).resize(jqUpdateSize); // When the browser changes size
/*This is the end of the function that controls height*/