var SliderMe = (function() {
function SliderMe(){
this.containerItem = document.getElementById('container_item');
this.contentItem = document.getElementsByClassName('content_item');
this.contentItemCount = this.contentItem.length;
this.contentItemWidth = this.contentItem[0].offsetWidth;
this.count = 0;
this.containerItem.style.width = this.contentItemCount * this.contentItemWidth + 'px';
}
SliderMe.prototype.rightScroll = function() {
if(this.count >= 0 && this.count < this.contentItemCount) {
this.containerItem.style.marginLeft = -(this.count++ + 1) * this.contentItemWidth;
}
};
return SliderMe;
}());
var slidersMe = new SliderMe();