Skip to content

Commit 2a8bf51

Browse files
committed
added onresize event
1 parent 1347bb8 commit 2a8bf51

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

js/2secrets.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
var shapes;
2-
main();
2+
window.onresize = function() {
3+
setup();
4+
}
5+
6+
$(function() {
7+
setup();
8+
});
39

4-
function main() {
10+
function setup() {
511
var height = $('body').height();
612
var width = $('body').width();
713

0 commit comments

Comments
 (0)