(function ($, Drupal, drupalSettings) { Drupal.behaviors.mtSliderRevolutionBoxedWidth = { attach: function (context, settings) { if (drupalSettings.magazineplus.sliderRevolutionBoxedWidthInit.slideshowBoxedWidthNavigationStyle == "bullets") { var bulletsEnable = true, tabsEnable = false; thumbsEnable = false; } else if (drupalSettings.magazineplus.sliderRevolutionBoxedWidthInit.slideshowBoxedWidthNavigationStyle == "titles_carousel") { var tabsEnable = true, bulletsEnable = false; thumbsEnable = false; } else { var tabsEnable = false, bulletsEnable = false; thumbsEnable = true; } $(context).find('.slideshow-boxedwidth .slider-revolution').once('mtSliderRevolutionBoxedWidthInit').revolution({ sliderType:"standard", sliderLayout: "auto", gridwidth: [1140,970,750,450], gridheight: drupalSettings.magazineplus.sliderRevolutionBoxedWidthInit.slideshowBoxedWidthInitialHeight, delay: drupalSettings.magazineplus.sliderRevolutionBoxedWidthInit.slideshowBoxedWidthEffectTime, disableProgressBar:'off', responsiveLevels:[1199,991,767,480], navigation: { onHoverStop:"off", arrows:{ enable:true, tmp: "", left:{ h_align:"left", v_align:"top", h_offset:50, v_offset:40 }, right:{ h_align:"left", v_align:"top", h_offset:120, v_offset:40 } }, bullets:{ style:"", enable:bulletsEnable, direction:"horizontal", space: 5, h_align: drupalSettings.magazineplus.sliderRevolutionBoxedWidthInit.slideshowBoxedWidthBulletsPosition, v_align:"bottom", h_offset: 0, v_offset: 20, tmp:"", }, thumbnails: { style:"", enable:thumbsEnable, width:370, height:95, min_width:240, tmp:'