how to create window resize code example
Example 1: detect resize window javascript
window.addEventListener('resize', functionName);
Example 2: window resize done
function resizedw(){
// Haven't resized in 100ms!
}
var doit;
window.onresize = function(){
clearTimeout(doit);
doit = setTimeout(resizedw, 100);
};