diff --git a/rwd-images/rwd-images.js b/rwd-images/rwd-images.js index 6890cf6..499a3c5 100644 --- a/rwd-images/rwd-images.js +++ b/rwd-images/rwd-images.js @@ -10,7 +10,8 @@ var rwdi = (function(){ var defaults = { clientSideOnly: false, - widthBreakPoint: 480 + widthBreakPoint: 480, + htmlClass: "rwd-imgs-lrg" }; //mixins from rwd_images global if( 'rwd_images' in win ){ @@ -40,6 +41,9 @@ return; } + //add HTML class + doc.documentElement.className += " " + rwdi.htmlClass; + //find and replace img elements var findrepsrc = function(){ var imgs = doc.getElementsByTagName('img'),