Fix/rewrite resize handling method

Now, if `this.enableResizing` is  on,  rainydays will get window's width and height every 100ms.
this is not good for performance, so I change to use `window.resize` instead of `setInterval`.