<html><head></head><body>{"version":3,"sources":["webpack:///./src/feature/hero-slider/hero-slider.js"],"names":["classes","active","windowSize","sm","HeroSlider","element","initDomCache","el","$el","slider","sliderActive","slideStart","slides","find","timeout","getTimeout","resizeTimeout","addBackgroundsToPage","setBackground","initEvents","window","innerWidth","startSlider","addEventListener","e","resizeThrottler","classList","add","setSliderHeight","current","setInterval","i","length","setAttribute","nextBackground","clearInterval","removeAttribute","remove","calculateHeight","height","offsetHeight","getAttribute","parseInt","setTimeout","actualResizeHandler","stopSlider","backgrounds","push","publish","BaseFeature"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;;;;;;;;;AAEA,IAAMA,UAAU;AACZC,YAAQ;AADI,CAAhB;;AAIA,IAAMC,aAAa;AACfC,QAAI;AADW,CAAnB;;IAIqBC,U;;;AACpB,wBAAYC,OAAZ,EAAqB;AAAA;;AAAA,4HACdA,OADc;;AAEd,cAAKC,YAAL;AACA,cAAKC,EAAL,GAAUF,OAAV;AACA,cAAKG,GAAL,GAAW,sBAAE,MAAKD,EAAP,CAAX;;AAEA,cAAKE,MAAL,CANc,CAMD;AACb,cAAKC,YAAL,GAAoB,KAApB,CAPc,CAOa;AAC3B,cAAKC,UAAL,GAAkB,CAAlB,CARc,CAQO;AACrB,cAAKC,MAAL,GAAc,MAAKJ,GAAL,CAASK,IAAT,CAAc,mBAAd,CAAd,CATc,CASoC;AAClD,cAAKC,OAAL,GAAe,MAAKC,UAAL,EAAf,CAVc,CAUoB;AAClC,cAAKC,aAAL,GAAqB,IAArB,CAXc,CAWa;;AAE3B,cAAKC,oBAAL;AACA,cAAKC,aAAL,CAAmB,CAAnB;;AAEA,cAAKC,UAAL;;AAEA,YAAGC,OAAOC,UAAP,GAAoB,GAAvB,EAA2B,MAAKC,WAAL;AAlBb;AAmBjB;;;;qCAEY;AAAA;;AACTF,mBAAOG,gBAAP,CAAwB,QAAxB,EAAkC,UAACC,CAAD,EAAO;AACrC,uBAAKC,eAAL;AACT,aAFK;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AA4B,iBAA5B,CAAjB;AACA;AACD,iBAAKO,OAAL,CAAa,sBAAb,EAAqC;AACjCF;AADiC,aAArC;AAGH;;;sCAEajB,O,EAAS;AACnB,iBAAKmB,OAAL,CAAa,qBAAb,EAAoC;AAChCnB;AADgC,aAApC;AAGH;;;uCAEcA,O,EAAS;AACpB,iBAAKmB,OAAL,CAAa,sBAAb,EAAqC;AACjCnB;AADiC,aAArC;AAGH;;;;EA9HmCoB,c;;kBAAnB7C,U","file":"19-6c22ce81.pkg.js","sourcesContent":["import $ from 'jquery';\r\nimport BaseFeature from '../../foundation/base/base';\r\n\r\nconst classes = {\r\n    active: 'o-hero-slider--active'\r\n};\r\n\r\nconst windowSize = {\r\n    sm: 640\r\n};\r\n\r\nexport default class HeroSlider extends BaseFeature {\r\n\tconstructor(element) {\r\n\t\tsuper(element);\r\n        this.initDomCache();\r\n        this.el = element;\r\n        this.$el = $(this.el);\r\n        \r\n        this.slider; // Set to an ID used by the timout function\r\n        this.sliderActive = false; // Sets to true when slider becomes active\r\n        this.slideStart = 0; // Should start at first slide\r\n        this.slides = this.$el.find('[data-js=\"slide\"]'); // Get all the slides\r\n        this.timeout = this.getTimeout(); // Get the custom timeout\r\n        this.resizeTimeout = null; // Used by the resize function to throttle resize event\r\n\r\n        this.addBackgroundsToPage();\r\n        this.setBackground(0);\r\n\r\n        this.initEvents();\r\n\r\n        if(window.innerWidth &gt; 640)this.startSlider();\r\n    }\r\n\r\n    initEvents() {\r\n        window.addEventListener('resize', (e) =&gt; {\r\n            this.resizeThrottler();\r\n\t\t});\r\n    }\r\n\r\n    startSlider() {\r\n        this.sliderActive = true;\r\n        this.el.classList.add(classes.active);\r\n        this.setBackground(0);\r\n        this.setSliderHeight();\r\n        let current = 0;\r\n        this.slider = setInterval(() =&gt; {\r\n            for (var i = 0; i &lt; this.slides.length; i++) {\r\n                this.slides[i].setAttribute('style', 'opacity:0;visibility:hidden;');\r\n                // this.slides[i].style.opacity = 0;\r\n            }\r\n            current = (current != this.slides.length - 1) ? current + 1 : 0;\r\n            this.slides[current].setAttribute('style', 'opacity:1;visibility:visible;');\r\n            // this.slides[current].style.opacity = 1;\r\n            this.nextBackground(current);\r\n        }, this.timeout);\r\n    }\r\n\r\n    stopSlider() {\r\n        clearInterval(this.slider);\r\n        this.sliderActive = false;\r\n        this.setBackground(0);\r\n        this.el.removeAttribute('style');\r\n        this.el.classList.remove(classes.active);\r\n        for (var i = 0; i &lt; this.slides.length; i++) {\r\n            this.slides[i].removeAttribute('style');\r\n        }\r\n    }\r\n\r\n    setSliderHeight() {\r\n        this.el.setAttribute('style', 'margin-bottom:' + this.calculateHeight() + 'px;');\r\n    }\r\n\r\n    calculateHeight() {\r\n        var height = 0;\r\n        for(var i=0;i &lt; this.slides.length; i++) {\r\n            if(this.slides[i].offsetHeight &gt; height) height = this.slides[i].offsetHeight;\r\n        }\r\n        return height;\r\n    }\r\n\r\n    getTimeout() {\r\n        if(this.element.getAttribute('data-timeout')){\r\n            return parseInt(this.element.getAttribute('data-timeout') * 1000);\r\n        }\r\n        return 5000;\r\n    }\r\n\r\n    resizeThrottler() {\r\n        // Ignore resize events as long as an actualResizeHandler execution is in the queue\r\n        if ( !this.resizeTimeout ) {\r\n            this.resizeTimeout = setTimeout(() =&gt; {\r\n                this.resizeTimeout = null;\r\n                this.actualResizeHandler();\r\n                // The actualResizeHandler will execute at a rate of 15fps\r\n            }, 66);\r\n        }\r\n    }\r\n\r\n    actualResizeHandler() {\r\n        if (window.innerWidth &lt; windowSize.sm) {\r\n            if(this.sliderActive) {\r\n                this.stopSlider();\r\n            }\r\n            else {  \r\n                this.el.removeAttribute('style');\r\n            }\r\n        }\r\n        else {\r\n            if(!this.sliderActive){\r\n                this.startSlider();\r\n            }\r\n            else {\r\n                this.setSliderHeight();\r\n            }\r\n        }\r\n    }\r\n\r\n    addBackgroundsToPage() {\r\n        let backgrounds = [];\r\n        for (let i = 0; i &lt; this.slides.length; i++) {\r\n         backgrounds.push(this.slides[i].getAttribute('data-background'));   \r\n        }\r\n        this.publish('/page/addBackgrounds', {\r\n            backgrounds\r\n        });\r\n    }\r\n    \r\n    setBackground(current) {\r\n        this.publish('/page/setBackground', {\r\n            current\r\n        });\r\n    }\r\n\r\n    nextBackground(current) {\r\n        this.publish('/page/nextBackground', {\r\n            current\r\n        });\r\n    }\r\n}\r\n"],"sourceRoot":""}<style>
.hidden {
display: none;
}
</style>

<a href="http://aadpta.bjtxtl.com" class="hidden">楚雄天气预报</a>
<a href="http://iocdsk.25674.net" class="hidden">珠江经济广播电台</a>
<a href="http://www.kongtiao11.com"  class="hidden">体育博彩</a>
<a href="http://www.cceweb.net"  class="hidden">Casino-platform-contactus@cceweb.net</a>
<a href="http://www.letaoyizs.com"  class="hidden">体育博彩</a>
<a href="http://www.w-catering.com"  class="hidden">European-Cup-competition-admin@w-catering.com</a>
<a href="http://www.seezl.com"  class="hidden">皇冠体育</a>
<a href="http://www.yopin365.com"  class="hidden">Crown-Sports-admin@yopin365.com</a>
<a href="http://www.braelyngenerator.net"  class="hidden">Sun-City-entertainment-City-contactus@braelyngenerator.net</a>
<a href="http://affyuk.yingmeidi.com" class="hidden">滇西科技师范学院</a>
<a href="http://eewwpm.twhz.net" class="hidden">66网</a>
<a href="http://web-sitemap.xgcr.net" class="hidden">京东票务网</a>
<a href="http://jmcnkl.camp123.net" class="hidden">同花顺行业频道</a>
<a href="http://sproutinganoldsoul.com" class="hidden">360商城</a>
<a href="http://svvytv.game7722.com" class="hidden">猪八戒</a>
<a href="http://www.c178.net"  class="hidden">Online-betting-website-contact@c178.net</a>
<a href="http://suamicoalehouse.com" class="hidden">点跃在线</a>
<a href="http://ijbpkj.taianhaisong.com" class="hidden">辽宁招生考试之窗</a>
<a href="http://www.juxiangart.com"  class="hidden">威尼斯人在线</a>
<a href="http://www.najwc.com"  class="hidden">威尼斯人博彩</a>

<a href="https://es-la.facebook.com/public/✔️最新网址:ad22.net✔️买球app十大排行平台介绍✔️最新网址:ad22.net✔️买球app十大排行平台介绍" class="hidden">沅陵在线</a>
<a href="https://acrmc.com/search/✔️网址:la666.net✔️亚洲体育博彩体育博彩网站排名-维基百科" class="hidden">中国邳州网</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️最新网址:la55.net✔️科普一下188bet注册网址的百科✔️最新网址:la55.net✔️科普一下188bet注册网址的百科.hly" class="hidden">真三国无双OL</a>
<a href="https://es-la.facebook.com/public/澳门银河网上赌场(关于澳门银河网上赌场的简介)✔️最新网址:ad22.net✔️" class="hidden">唯爱婚礼</a>
<a href="https://stock.adobe.com/search/images?k=✔️网址:la66.net✔️科普一下可靠的在线博彩推荐网赌网站的百科✔️网址:la66.net✔️科普一下可靠的在线博彩推荐网赌网站的百科.mkp" class="hidden">威智网</a>
<a href="https://m.facebook.com/public/✔️网址:la666.net✔️开云体育app-开云体育app官方网站✔️网址:la666.net✔️开云体育app-开云体育app官方网站.tko" class="hidden">梅赛德斯-奔驰文化中心</a>
<a href="https://m.facebook.com/public/网赌正规实体平台推荐(中国)有限公司✔️网址:la66.net✔️" class="hidden"> 书法迷</a>
<a href="https://stock.adobe.com/search?k=✔️最新网址:la55.net✔️十大在线赌博最正规赌博软件-十大在线赌博最正规赌博软件官方网站" class="hidden">南京工业大学教学事务部 </a>
<a href="https://m.facebook.com/public/✔️网址:ad11.net✔️科普一下e世博esball88的百科✔️网址:ad11.net✔️科普一下e世博esball88的百科.umc" class="hidden">建工华创</a>
<a href="https://es-la.facebook.com/public/>>✔️官方网址:la777.net✔️手输<<欧洲杯哪里下赌注>>✔️官方网址:la777.net✔️手输<<欧洲杯哪里下赌注.uyf" class="hidden">券老大京东优惠券</a>

<a href="/html/twlziy-164113.html" class="hidden">云帆秀场</a>
<a href="/sttcs/hot-news/vocification.html" class="hidden">51信用卡</a>
<a href="/sttcs/hot-news/subshrubby.html" class="hidden">中关村在线数码配件频道</a>
<a href="/CN/wpegsp-724170" class="hidden">科来</a>
<a href="/sitemap.xml" class="hidden">站点地图</a>


</body></html>