From b214f38d2c24a890ce36512a0c8bab965e27a508 Mon Sep 17 00:00:00 2001 From: JinweiClarkChao Date: Tue, 23 Sep 2014 22:34:14 +0800 Subject: README --- Code/ZJW/javascripts/site.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Code/ZJW/javascripts/site.js (limited to 'Code/ZJW/javascripts/site.js') diff --git a/Code/ZJW/javascripts/site.js b/Code/ZJW/javascripts/site.js new file mode 100644 index 0000000..5570df0 --- /dev/null +++ b/Code/ZJW/javascripts/site.js @@ -0,0 +1,12 @@ +(function() { + var canvas; + + canvas = $('#processing'); + + $(window).on("load", function() { + canvas.width = window.innerWidth; + canvas.height = window.innerHeight; + return console.log(canvas.width, canvas.height); + }); + +}).call(this); -- cgit v1.2.3