These are chat archives for alexey-shapilov/firstwatermark

21st
Jan 2015
alexey-shapilov
@alexey-shapilov
Jan 21 2015 12:45
@jobsboris27
var img = '<img src="'+self.watermark.elem.attr('src')+'" class="'+self.watermark.elem.attr('class') + ' '+ self.mosh.moshClone+ '" %style%>';
var imgs='';
for(var i = 0; i < self.mosh.copyX; i++ ) {
          for(var j = 0; j < self.mosh.copyY; j++) {
               imgs+=img.replace('%style%', 'style="left:'+(self.watermark.elemWidth * i)+'px; top:'+(self.watermark.elemHeight * j) +'px;"')
          }
}
mosh_body.html(imgs);