diff options
author | JinweiClarkChao <[email protected]> | 2014-09-23 22:34:14 +0800 |
---|---|---|
committer | Jinwei Zhao <[email protected]> | 2017-01-13 15:07:44 +0800 |
commit | b214f38d2c24a890ce36512a0c8bab965e27a508 (patch) | |
tree | 1522b651444407cbf120798e79be4657f1b472ab /Code/ZJW/javascripts/site.js | |
parent | e13882d1656b143533cec307a19425e0a56ec999 (diff) | |
download | jinwei.me-b214f38d2c24a890ce36512a0c8bab965e27a508.tar.gz |
README
Diffstat (limited to 'Code/ZJW/javascripts/site.js')
-rw-r--r-- | Code/ZJW/javascripts/site.js | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ | |||
1 | (function() { | ||
2 | var canvas; | ||
3 | |||
4 | canvas = $('#processing'); | ||
5 | |||
6 | $(window).on("load", function() { | ||
7 | canvas.width = window.innerWidth; | ||
8 | canvas.height = window.innerHeight; | ||
9 | return console.log(canvas.width, canvas.height); | ||
10 | }); | ||
11 | |||
12 | }).call(this); | ||