PageSourceSearch

https://www.shinwakk.jp/js/jquery/dbpas/jquery.dbpas.carousel.min.js?1717024646

js shinwakk.jp collected 2026-10-04 13:24:14 UTC 8,059 bytes, 1 lines download raw bytes

1Object.create||(Object.create=function(){function F(){}return function(o){if(1!=arguments.length)throw new Error("Object.create implementation only accepts one parameter.");return F.prototype=o,new F}}()),function($,win,doc,undefined){"use strict";function destroy(elem){var $data=$.data($(elem)[0],"dbpasCarousel");$data?(clearInterval($data.timerHandle),$(elem).parent().parent().find("*").off(".dbpasCarousel"),$(elem).unwrap().unwrap().siblings("[data-carousel-control]").remove(),$(elem).find(".caption").remove(),$(elem).removeAttr("style").children().removeAttr("style"),$(elem).removeData("dbpasCarousel")):console.log("dbpasCarousel: unable to destroy selected element!")}var Carousel={init:function(options,elem){var self=this;self.elem=elem,self.$elem=$(elem),self.options=$.extend({},$.fn.dbpasCarousel.options,options),self.timerHandle=null,self.$queue=$({}),self.build(),self.$wrapper=self.$elem.parent(),self.$controlLeft=self.$wrapper.siblings('[data-carousel-control="left"]'),self.$controlRight=self.$wrapper.siblings('[data-carousel-control="right"]'),self.$li=self.$elem.find("li"),self.$first_li=self.$elem.find("li:first"),self.maxOuterWidth=0,self.maxWidth=0;var slider_name="#dbpas-slider";self.options.b_id&&(slider_name+=self.options.b_id),self.options.name&&(slider_name="#"+self.options.name),self.get_deta_row=$(slider_name).attr("data-row"),self.get_deta_count=1,self.get_deta_max=$(slider_name).attr("data-max"),self.get_data_width=$(slider_name).attr("data-width"),self.maxLeftCount=self.get_deta_max-self.get_deta_row,self.maxLeftCount<0&&(self.maxLeftCount=0),self.maxRightCount=self.get_deta_count,self.$li.each((function(){$(this).outerWidth()>=self.maxOuterWidth&&(self.maxOuterWidth=$(this).outerWidth(),self.maxWidth=$(this).width()),self.options.imgCaption&&$(this).find("img:first").attr("alt")&&$(this).append($("<p/>").addClass("caption").html($(this).find("img:first").attr("alt")))})),self.$li.css({width:self.maxWidth+"px"}),$("#ad-preview").length&&$("#ad-preview").hasClass("ad-preview-pc")&&self.$li.find(".type008-box").length&&!self.$li.find(".type008-box").hasClass("type001")&&self.$first_li.css({"margin-left":"7.5px"}),self.$wrapper.css({"max-width":self.get_data_width+"px"}),self.$elem.css({left:"0px"}),self.$controlLeft.addClass("fcolor"),self.events(),self.complete()},build:function(){var self=this;this.$elem.wrap($("<div />").addClass("ad-not-link panel-open").attr("data-carousel-name",this.$elem.attr("id")||"")).wrap($("<div />").attr("data-carousel-control","wrapper")),this.$elem.data("prev-text")?this.options.carouselFlg?this.$elem.parent().parent().prepend($("<i  />").attr("tabIndex","0").attr("data-carousel-control","left").attr("data-not-panel","true").addClass("fa fa-angle-left ad-not-link carousel-design sys_style7").html('<div class="" style="font-size:15px;font-weight:bold;">'+this.$elem.data("prev-text")+"</div>")).append($("<i />").html('<div class="" style="font-size:15px;font-weight:bold;">'+this.$elem.data("next-text")+"</div>").attr("data-carousel-control","right").attr("data-not-panel","true").addClass("fa fa-angle-right ad-not-link carousel-design sys_style7")):this.$elem.parent().parent().prepend($("<i  />").attr("tabIndex","0").attr("data-carousel-control","left").attr("data-not-panel","true").addClass("fa fa-angle-left ad-not-link mbcolor-op10 fcolor-op20 carousel-design sys_style7").html('<div class="" style="font-size:15px;font-weight:bold;">'+this.$elem.data("prev-text")+"</div>")).append($("<i />").html('<div class="" style="font-size:15px;font-weight:bold;">'+this.$elem.data("next-text")+"</div>").attr("data-carousel-control","right").attr("data-not-panel","true").addClass("fa fa-angle-right ad-not-link mbcolor-op30 fcolor carousel-design sys_style7")):this.options.carouselFlg?this.$elem.parent().parent().prepend($("<i />").attr("tabIndex","0").attr("data-carousel-control","left").attr("data-not-panel","true").addClass("fa fa-angle-left ad-not-link carousel-design sys_style7").html("")).append($("<i />").html("").attr("data-carousel-control","right").attr("data-not-panel","true").addClass("fa fa-angle-right ad-not-link carousel-design sys_style7")):this.$elem.parent().parent().prepend($("<i />").attr("tabIndex","0").attr("data-carousel-control","left").attr("data-not-panel","true").addClass("fa fa-angle-left ad-not-link mbcolor-op10 fcolor-op20 carousel-design sys_style7").html("")).append($("<i />").html("").attr("data-carousel-control","right").attr("data-not-panel","true").addClass("fa fa-angle-right ad-not-link mbcolor-op30 fcolor carousel-design sys_style7"))},navigation:function(direction){var self=this;this.leftIndent=0,this.leftIndent="right"==direction?parseFloat(this.$elem.css("left"))+this.maxOuterWidth:parseFloat(this.$elem.css("left"))-this.maxOuterWidth,this.$elem.not(":animated").animate({left:this.leftIndent},this.options.slideDelay,(function(){}))},timer:function(action){var self=this;"start"==action?self.timerHandle=setInterval((function(){self.navigation("left")}),self.options.autoDelay):clearInterval(self.timerHandle)},events:function(){var self=this,eventNS=".dbpasCarousel",pauseActionStart,pauseActionStop,controlAction;
1"ontouchstart"in doc.documentElement?(controlAction="touchstart"+eventNS,pauseActionStart="touchstart"+eventNS,pauseActionStop="touchend"+eventNS):(controlAction="click"+eventNS,pauseActionStart="mouseenter"+eventNS,pauseActionStop="mouseleave"+eventNS,$("body").addClass("no-touch")),self.options.autoSlide&&(self.timer("start"),self.options.hoverPause&&(self.$wrapper.parent().on(pauseActionStart,(function(){self.timer("stop")})),self.$wrapper.parent().on(pauseActionStop,(function(){self.timer("start")})))),self.$controlLeft.on(controlAction,(function(){self.$elem.is(":animated")||(self.get_deta_count>1&&(self.get_deta_count--,self.navigation("right"),self.$controlRight.css("color","#ABABAB"),self.$controlRight.css("border","2px solid #ABABAB"),self.$controlRight.removeClass("fcolor-op20"),self.$controlRight.addClass("fcolor"),self.$controlRight.addClass("mbcolor-op30"),self.$controlRight.removeClass("mbcolor-op10"),self.$controlRight.removeClass("fcolor")),1==self.get_deta_count&&(self.$controlLeft.css("color","#E6E6E6"),self.$controlLeft.css("border","2px solid #E6E6E6"),self.$controlLeft.addClass("fcolor-op20"),self.$controlLeft.removeClass("fcolor"),self.$controlLeft.addClass("mbcolor-op10"),self.$controlLeft.removeClass("mbcolor-op30"),self.$controlLeft.addClass("fcolor")))})),self.$controlRight.on(controlAction,(function(){self.$elem.is(":animated")||(self.get_deta_count<=self.maxLeftCount&&(self.get_deta_count++,self.navigation("left"),self.$controlLeft.css("color","#ABABAB"),self.$controlLeft.css("border","2px solid #ABABAB"),self.$controlLeft.removeClass("fcolor-op20"),self.$controlLeft.addClass("fcolor"),self.$controlLeft.addClass("mbcolor-op30"),self.$controlLeft.removeClass("mbcolor-op10"),self.$controlLeft.removeClass("fcolor")),self.get_deta_count>self.maxLeftCount&&(self.$controlRight.css("color","#E6E6E6"),self.$controlRight.css("border","2px solid #E6E6E6"),self.$controlRight.addClass("fcolor-op20"),self.$controlRight.removeClass("fcolor"),self.$controlRight.addClass("mbcolor-op10"),self.$controlRight.removeClass("mbcolor-op30"),self.$controlRight.addClass("fcolor")))}))},complete:function(){var self=this;"function"==typeof this.options.onComplete&&this.options.onComplete.apply(this.$elem)}};$.fn.dbpasCarousel=function(options){return this.each((function(){if("ul"==this.tagName.toLowerCase())if("string"==typeof options)switch(options.toLowerCase()){case"destroy":destroy(this);break;default:console.log('dbpasCarousel: "'+options+'" is an invalid method!')}else{var carousel=Object.create(Carousel);carousel.init(options,this),$.data(this,"dbpasCarousel",carousel)}else console.log('dbpasCarousel: selected element is not a "UL"!')}))},$.fn.dbpasCarousel.options={itemsVisible:2,slideDelay:500,autoSlide:0,autoDelay:5e3,hoverPause:1,imgCaption:1,onComplete:null,carouselFlg:0,b_id:0,name:""}}(jQuery,window,document);

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.