В Кардиффе состоялся объединительный поединок между чемпионом мира по версиям WBA Super, IBF, IBO Энтони Джошуа (21-0, 20 КО) и обладателем титула WBO в супертяжелом весе Джозефом Паркером (24-1, 18 КО). На кону стояло четыре чемпионских пояса, которые по итогам 12 раундов решением судей забрал AJ.
Смотрите лучшие фото боя в нашей фотогалерее.
$(document).ready(function () {
var galleryHolder = $(‘#gallery-items-13953’);
if(galleryHolder.length > 0){
var BigSlider = function(options){
var BigSliderObject = new function(){
var that = this;
this.options = {
mainContainer: false,
viewport: false,
slides: false,
lightBox: false,
controlLeft: false,
controlRight: false,
ProportionalResize: false,
Slider: false,
photoDescriptionContainer: false
};
this.init = function(options){
this.options = $.extend(that.options, options);
//this.options.mainContainer = galleryHolder;
this.options.slides = this.options.mainContainer.find(‘.news-list-item’);
this.options.lightBox = CustomLightBox({mainContainer: $(‘#custom-lightbox-13953’)});
this.options.controlLeft = this.options.mainContainer.find(‘.control-left’);
this.options.controlRight = this.options.mainContainer.find(‘.control-right’);
this.options.viewport = this.options.mainContainer.find(‘.viewport’);
this.options.ProportionalResize = ProportionalResize({element: this.options.slides, proportion: 0.56});
this.options.Slider = HalfSlider({
mainContainer: this.options.mainContainer.find(‘.items-holder’),
items: this.options.slides,
animationTime: 500
});
this.checkControlsActivity();
this.fillPhotoDescription();
this.adaptPicture();
this.addEventHandlers();
this.options.mainContainer.find(‘.controls’).removeClass(‘hide-fixed’);
return this;
};
this.adaptPicture = function(){
var pictureWidth = this.options.viewport.width();
this.options.slides.each(function(){
$(this).css({‘min-width’: pictureWidth});
that.options.ProportionalResize.resizeElement();
});
};
this.checkControlsActivity = function(){
if(this.options.Slider.maxFramesNext(1) > 0){
this.options.controlRight.addClass(‘active’);
}
else{
this.options.controlRight.removeClass(‘active’);
}
if(this.options.Slider.maxFramesPrev(1) > 0){
this.options.controlLeft.addClass(‘active’);
}
else{
this.options.controlLeft.removeClass(‘active’);
}
};
this.addEventHandlers = function(){
this.slideClickHandler();
this.controlNextClickHolder();
this.controlPrevClickHolder();
this.slidePrevNextHandler();
this.windowResizeHandler();
};
this.slideClickHandler = function () {
this.options.slides.click(function () {
var imageId = $(this).attr(‘data-element-id’);
that.options.lightBox.showImageById(imageId);
});
};
this.controlPrevClickHolder = function(){
this.options.controlLeft.click(function(){
if($(this).is(‘.active’)){
that.options.Slider.prev();
}
});
};
this.controlNextClickHolder = function(){
this.options.controlRight.click(function(){
if($(this).is(‘.active’)) {
that.options.Slider.next();
}
});
};
this.fillPhotoDescription = function(){
if(this.options.photoDescriptionContainer.length > 0){
var index = this.options.Slider.getCurrentSlideIndex();
if(this.options.photoDescriptionContainer.attr(‘data-filled-for-index’) != index){
var photoDescriptionElement = this.options.slides.eq(index).find(‘.slide-description’);
if(photoDescriptionElement.length > 0){
this.options.photoDescriptionContainer.html(photoDescriptionElement.html());
}
else{
this.options.photoDescriptionContainer.empty();
}
this.options.photoDescriptionContainer.attr(‘data-filled-for-index’, index);
}
}
};
this.keepPositionWhenResize = function(){
var index = this.options.Slider.getCurrentSlideIndex();
this.options.Slider.recalcPosition(index);
};
this.slidePrevNextHandler = function(){
this.options.Slider.options.mainContainer.on(‘web136_half_slider_prev web136_half_slider_next’, function(){
that.fillPhotoDescription();
that.checkControlsActivity();
});
};
this.windowResizeHandler = function(){
$(window).on(‘resize orientationchange’, function(){
that.adaptPicture();
that.keepPositionWhenResize();
});
};
};
return BigSliderObject.init(options);
};
var MiniatureSlider = function(options){
var MiniatureSliderObject = new function() {
var that = this;
this.options = {
mainContainer: false,
slides: false,
viewport: false,
controlLeft: false,
controlRight: false,
Slider: false,
itemsOnScreen: {
300: 2,
400: 3,
500: 4,
640: 5,
641: 2,
760: 3,
800: 4,
980: 5,
1000: 6
}
};
this.adaptQuantityPointsOrdered = [];
this.init = function(options){
this.options = $.extend(that.options, options);
this.options.ProportionalResize = ProportionalResize();
this.options.slides = this.options.mainContainer.find(‘.miniature-item ‘);
this.options.viewport = this.options.mainContainer.find(‘.viewport’);
this.options.controlLeft = this.options.mainContainer.find(‘.control-left’);
this.options.controlRight = this.options.mainContainer.find(‘.control-right’);
this.options.Slider = HalfSlider({
mainContainer: this.options.mainContainer.find(‘.items-holder’),
items: this.options.slides,
animationTime: 500,
minSlidesOnScreen: this.options.itemsOnScreen
});
this.checkControlsActivity();
this.orderAdaptQuantityPoints();
this.adaptSlides();
this.addEventHandler();
this.options.mainContainer.find(‘.controls’).removeClass(‘hide-fixed’);
return this;
};
this.orderAdaptQuantityPoints = function () {
var rawArray = [];
$.each(this.options.itemsOnScreen, function(index){
rawArray.push(index);
});
rawArray.sort(function(a, b){return a-b;});
this.adaptQuantityPointsOrdered = rawArray;
};
this.getCurrentSlidesQuantity = function(){
var itemsQuantityIndex = 0;
var windowWidth = $(window).get(0).innerWidth;
var adaptPointsLength = this.adaptQuantityPointsOrdered.length;
if(windowWidth = this.adaptQuantityPointsOrdered[adaptPointsLength -1]){
itemsQuantityIndex = this.adaptQuantityPointsOrdered[adaptPointsLength -1];
}
else{
//Края массива обработаны раньше
for(var i = 1; i this.adaptQuantityPointsOrdered[i — 1]&&
windowWidth this.adaptQuantityPointsOrdered[i]&&
windowWidth 0){
this.options.controlRight.addClass(‘active’);
}
else{
this.options.controlRight.removeClass(‘active’);
}
if(this.options.Slider.maxFramesPrev(1) > 0){
this.options.controlLeft.addClass(‘active’);
}
else{
this.options.controlLeft.removeClass(‘active’);
}
};
this.controlPrevClickHolder = function(){
this.options.controlLeft.click(function(){
that.options.Slider.prev();
});
};
this.controlNextClickHolder = function(){
this.options.controlRight.click(function(){
that.options.Slider.next();
});
};
this.windowResizeHandler = function(){
$(window).on(‘resize orientationchange’, function(){
that.adaptSlides();
that.keepPositionWhenResize();
});
};
this.slidePrevNextHandler = function(){
this.options.Slider.options.mainContainer.on(‘web136_half_slider_prev web136_half_slider_next’, function(){
that.checkControlsActivity();
});
};
};
return MiniatureSliderObject.init(options);
};
var Gallery = new function() {
var that = this;
this.mainContainer = false;
this.bigSlidesMainContainer = false;
this.BigSlider = false;
this.miniaturesMainContainer = false;
this.MiniatureSlider = false;
this.Preloader = false;
this.ImageLazyLoad = false;
this.init = function(){
this.mainContainer = galleryHolder;
this.Preloader = PreLoader({element: that.mainContainer.find(‘.general-preloader’)});
this.bigSlidesMainContainer = this.mainContainer.find(‘.big-slides-holder’);
this.BigSlider = BigSlider({
mainContainer: that.bigSlidesMainContainer,
photoDescriptionContainer: that.mainContainer.find(‘.current-slide-description’)
});
this.miniaturesMainContainer = this.mainContainer.find(‘.miniatures-holder’);
this.MiniatureSlider = MiniatureSlider({mainContainer: that.miniaturesMainContainer});
this.ImageLazyLoad = ImageLazyLoad({images:that.mainContainer.find(‘img’)});
this.addEventHandler();
this.openByHash();
this.Preloader.hide();
};
this.addEventHandler = function(){
this.miniatureSlideClickHandler();
this.bigSlidesControlClickHandler();
this.bigSlidesLoadHandler();
};
/**Открывание большого слайда при клике по миниатюре*/
this.miniatureSlideClickHandler = function(){
this.MiniatureSlider.options.slides.click(function(){
var index = that.MiniatureSlider.options.slides.index($(this));
that.BigSlider.options.Slider.moveToIndex(index);
that.BigSlider.fillPhotoDescription();
});
};
/**листание миниатюр при листании больших фоток*/
this.bigSlidesControlClickHandler = function(){
this.BigSlider.options.controlLeft.click(function(){
if($(this).is(‘.active’)) {
that.MiniatureSlider.options.Slider.prev();
}
});
this.BigSlider.options.controlRight.click(function(){
if($(this).is(‘.active’)) {
that.MiniatureSlider.options.Slider.next();
}
});
};
/**Открытие по хешу*/
this.openByHash = function(){
var hash = window.location.hash;
if(hash.length > 0){
hash = hash.replace(‘#’,»);
var bigSlideToActivation = this.BigSlider.options.slides.filter(‘[data-element-id=»‘+hash+'»]’);
var miniatureToActivation = this.MiniatureSlider.options.slides.filter(‘[data-element-id=»‘+hash+'»]’);
if(bigSlideToActivation.length > 0 && miniatureToActivation.length > 0){
var bigSlideIndex = this.BigSlider.options.slides.index(bigSlideToActivation);
var miniatureIndex = this.MiniatureSlider.options.slides.index(miniatureToActivation);
this.BigSlider.options.Slider.moveToIndex(bigSlideIndex);
this.MiniatureSlider.options.Slider.moveToIndex(miniatureIndex);
}
}
};
this.bigSlidesLoadHandler = function(){
this.BigSlider.options.slides.find(‘img’).on(‘web136_image_loaded’, function(){
$(this).siblings(‘.image-holder’).removeClass(‘transparent’);
});
};
};
Gallery.init();
}
});
Все подробности боя – в нашем текстовом онлайне.