JS window size class
JS window size class
Out of context: Reply #5
- Started
- Last post
- 7 Responses
- dbloc0
something of this nature....not sure if syntax is completely right.
setSizeClass = function() {
var winWidth = $(window).width();
$("body").addclass(winWidth);};
$(document).ready(function() {
setSizeClass();
});