sud.onWindowResize
JS
sud.onWindowResize(function callback)Listens for the window resize event.
Parameters
- function callback: The callback function for the window resize event.
Parameters of the callback function
- Object res: Returns the window size after the change.
Properties of res:
| Property | Type | Description |
|---|---|---|
| windowWidth | number | The window width after the change, in px |
| windowHeight | number | The window height after the change, in px |
