PageSourceSearch

https://www.openairwireless.net/sites/all/modules/drupalexp/module…/asset/js/dexp_shortcode_bxslider.js?tapznm

js openairwireless.net collected 2026-10-08 06:38:42 UTC 2,513 bytes, 45 lines download raw bytes

1(function($){
2  "use strict";
3  var bxsliderProperties = ["mode","speed","slideMargin","startSlide","randomStart","slideSelector","infiniteLoop","hideControlOnEnd","easing","captions","ticker","tickerHover","adaptiveHeight","adaptiveHeightSpeed","video","responsive","useCSS","preloadImages","touchEnabled","swipeThreshold","oneToOneTouch","preventDefaultSwipeX","preventDefaultSwipeY","pager","pagerType","pagerShortSeparator","pagerSelector","pagerCustom","buildPager","controls","nextText","prevText","nextSelector","prevSelector","autoControls","startText","stopText","autoControlsCombine","autoControlsSelector","auto","pause","autoStart","autoDirection","autoHover","autoDelay","minSlides","maxSlides","moveSlides","slideWidth"];
4  var adjustOptions = function(options, container_width){
5    var _options = {};
6    $.extend(_options, options);
7    if((_options.slideWidth*_options.maxSlides + (_options.slideMargin*(_options.maxSlides-1))) < container_width){
8      _options.slideWidth = (container_width-(_options.slideMargin*(_options.maxSlides-1)))/_options.maxSlides;
9    }else{
10      _options.maxSlides = Math.floor((container_width-(_options.slideMargin*(_options.maxSlides-1)))/_options.slideWidth);
11      _options.maxSlides = _options.maxSlides == 0?1:_options.maxSlides;
12      _options.slideWidth = (container_width-(_options.slideMargin*(_options.maxSlides-1)))/_options.maxSlides;
13    }
14    return _options;
15  }
16  
17  Drupal.behaviors.dexp_bxslider_shortcode = {
18    attach: function(){
19      $('.dexp-shortcode-bxslider').once('shortcode').each(function(){
20        var $this = $(this);
21        //
22        var options = {};
23        $(bxsliderProperties).each(function(){
24          if($this.data(this.toString().toLowerCase()) != 'undefined'){
25            options[this.toString()] = $this.data(this.toString().toLowerCase());
26          }
27        });
28        if(!$this.data('controls')){
29          options.nextSelector = null;
30          options.prevSelector = null;
31        }
32        var container_width = $this.parents('.view-content').css({position:'relative'}).width();
33        var newoptions = adjustOptions(options, container_width);
34        var slide = $this.bxSlider(newoptions);
35        $(window).resize(function(){
36          var container_width = $this.parents('.view-content').width();
37          var newoptions = adjustOptions(options, container_width);
38          slide.destroySlider();
39          slide = $this.bxSlider(newoptions);
40        });
41        // 
42      });
43    }
44  };
45})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.