123456789101112 |
- /**
- * divs2slides.min.js
- * Ver : 1.3.2
- * update: 14/05/2018
- * Author: meshesha , https://github.com/meshesha
- * LICENSE: MIT
- * url:https://github.com/meshesha/divs2slides
- *
- * New:
- * - fixed fullscreen (fullscreen on div only insted all page)
- */
- !function(e){var l,s,i,d,t,o={init:function(){var l=o.data,s=l.divId,i=l.isInit;if(e("#"+s+" .slide").hide(),0!=l.slctdBgClr){var d=e(document.body).css("background-color");l.prevBgColor=d,e(document.body).css("background-color",l.slctdBgClr)}l.nav&&!i?(l.isInit=!0,e("#"+s).prepend(e("<div></div>").attr({class:"slides-toolbar",style:"width: 90%; padding: 10px; text-align: center;font-size:18px; color: "+l.navTxtColor+";"})),e("#"+s+" .slides-toolbar").prepend(e("<img></img>").attr({id:"slides-next",class:"slides-nav",alt:"Next Slide",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADZ0lEQVRIiZ2Va2xTdRjGH5xEg0aXeInRqE00pKwfHAkydYMdlXFpiG5LYFFi0iBZFFeLrm50ZrbrYLeyneEFcHMMhxoksGUSTEw01UQz1ukO29quO11vXNZNwBI1gRDN4wfa0q3n1MKT/D697/s8//OenP8BspD2jSGNtmpISEVjcOZmM6sqjcGZm/f2sC2/+tfQpnYvdxwK0NwXpLkvyB2HAixr83C5eUTSGV2GmzZfVjVc+qxlNFb/dYRHh2Psdl7knpNzbDkxy5YTs9xzco7dzov88pdLtHwV5tM1v4W0VUNCVuZ5plO9r3b62O28wF2DURr7zmRk12CUvT9dYLnDw/99Gp3JJW7bL7Pj2zlW9kS4tTucFZU9EX743RwrOibVQ7RVQ0K5w8uG/hm+8knolmjon+Fa+zh12135aQEFtaMh6/HzLN8bSIMkmwajirWFWI6cpc7kcs5fjdFlWNPoYdneAF/qmE6DJP+++i+bBqOK9VQ2fRSkYBvnvJeeZxoeWNcqc2P7tCKp+t79Jys+Dqr2bmyfZkmzjzqTS0wGLH9vNKZ3+KnGQs1evsbaI+dU+/UOP596Z0RKBqy0nOb6VlkVNX3x8yXVmZWW0wQArDCPCIX14yxp8nFt85QimTQ9e5VvHgzP6y+2e24E5O+UNAV1YyyoG2PhBxMsbvDw+UYv1+yeTJJJf135h63fzLC4wcMi6wSfef+6V0HdGJMrKqyfoBKrrG6usrpVzeXoFRr2+RVnn6sfiyUDiqxuabXNTTWU1Pvj76r9q21uFlknBpIBgt0rvtDopRqpisausbIrqNqbQLB7blwZgm1SU9LsoxoJHXf9wTJRVu1L8OJuX0ywSfP/F+taZHFDm0wlSNI+MKNYU2J985Qt7S4SbFKu3uGXMn2h2aB3+KU084T0bXJ+qRiIlXUGeCu8LAaktNUsVKk4qdmyLyS9diDMm2HL/pCzVMxsvijObQByKj+dqjb2RS6bDp9lJoyfhyPbDvheB5ATn034JJUDYDGAOwHcDSAXwIMAHgWwdHPtZ+btnT/01/SMequ7XHJ118hUzUHJ/Van81iFpfddAE8AeATAAwDuBbAEwB0Abo8HXj9xSshd8ZD7ATwM4HEATwJYBkAXRxs3fgzAQwDuA3BPivniuOei/wDo+pj+wU2R5QAAAABJRU5ErkJggg==",style:"float: right;cursor: pointer;opacity: 0.7;"}).on("click",o.nextSlide)),l.showTotalSlideNum&&e("#"+s+" .slides-toolbar").prepend(e("<span></span>").attr({id:"slides-total-slides-num"}).html(l.totalSlides)),l.showSlideNum&&l.showTotalSlideNum&&e("#"+s+" .slides-toolbar").prepend(e("<span></span>").attr({id:"slides-slides-num-separator"}).html(" / ")),l.showSlideNum&&e("#"+s+" .slides-toolbar").prepend(e("<span></span>").attr({id:"slides-slide-num"}).html(l.slideCount)),l.showFullscreenBtn&&e("#"+s+" .slides-toolbar").prepend(e("<img></img>").attr({id:"slides-full-screen",class:"slides-nav-play",alt:"fullscreen Slide",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAGwUlEQVRIibWWW0zU+RWAR1eHgaJtN92kbXYTkjUtlW26u6m7cQsMFwsyzAAOMyBQVG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cD3gPcAF+AjYAfgAfgCv13DG/gC+AT4OfA+8APAAdjwnwQb1iSbADHguCbcAmz9B7YAzoATIFnr3QRs/B/eJP89/g4EWvXUVw2aogAAAABJRU5ErkJggg==",style:"float: left;cursor: pointer;opacity: 0.7; padding: 0 10px 0 10px"}).bind("click",function(){o.fullscreen()})),l.showPlayPauseBtn&&e("#"+s+" .slides-toolbar").prepend(e("<img></img>").attr({id:"slides-play-pause",class:"slides-nav-play",alt:"Play/Pause Slide",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAF4UlEQVRIibWW+3NU9RnGz4ZR+5t0qjOVXmZ6M9b+0LEyuFRDjCEElMhEZlCSaWcohWgQoZE9e3Zdwg4Xd1FjJBQxlmgxbcm0NWNMJ6vBJuQCLCYxl92w2Vz3vtmTy2ZzOUnO7vrpDyklMEjbmfb9A97n+7zP+z7PVxBuU2KRqNXr9JIkSTUmo8lrNBgTRoMxYTKavJIk1eh1ekksErW363HL0ul0aZIolVst1pCtzobT4USWZVRVRVVVZFnG6XBiq7NhtVhDkiiV63S6tP+ouSiKheZic5fdbkdRFPrlODW9KmUXVV6pVzlYr/LbFpVah8pQJI6iKNjtdszF5i5RFAtv3/yAaKg6VxWWZZmrYZXfd8R58W8qOZXzPPHOHGknpkkvmSLz9SibS6fY/d40lS3z9IeWWFWdqwqLB0TDV7686lxVOB6PY3MtcvDvCTa8P8/qk7OsKZlm7fEpHnt1kvTD4zx+aIx0k0y6IUKWKYL43hSNXQvE4/ElkJuZ6HS6NHOxuUuWZWyuBXbVqDxyWuGh0lnWHI+hPRYl/fAE6SaZdVKETClClhhigxhiw4EQWS8HyTsSoaFjHlmWMRebu27QRBKlcrvdjiu8iL4+gfb0HNq3ZsksjfLUG2NsPBLhccMomfowG3R+Hi30kb0/yKb9AZ7c52fzvgCbX/JTVDLGgHcRu92OJErlS6MpErVWizWkKAoVbXEyKhRWl87w1IkJukeiBEfH6XGH2fSyi+KKMP3ecQ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9v1qcoxUrOHWPFwHykZg6Tk+EjJC6N5fhyNfgbNUQWhLMGdZ+CePyTJ+DTJ++7EV9v1rQLnYts0Ba+EWbnJi+ZpPyn5/wQQY0sAJ5OsrITCVrCHE/8+cJYzWR6Zbc45LB9EyT0WJVUfI/WoQu5ZFUtzgrZg8r+LzOWa/N9C/wY2/4Nvyz8A92FZT9kSnHgAAAAASUVORK5CYII=",style:"float: left;cursor: pointer;opacity: 0.7; padding: 0 10px 0 10px"}).html("<span style='font-size:80%;'>⏯</span>").bind("click",function(){l.isSlideMode&&o.startAutoSlide()})),e("#"+s+" .slides-toolbar").prepend(e("<img></img>").attr({id:"slides-prev",class:"slides-nav",alt:"Prev. Slide",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADXklEQVRIiZ2Ve2hTZxjGH+tE0bEFdGNM1IBj1PYPKzjr1roeN6tdEW0LWpwMgpMytVncGttF6ZKm2lu0qXdtrdV6wY3ZUsXBYCMbOGrTrce2SZqeNrc5m9bLIjpQxPHsD5PYpMkx+sAPDnzv+zwf3+0ACUipsiiSizuFCL7oVCbSK6tUtVW1SNst5tfZuf2Ui9pWN7Wtbm4/5eK6fQ6mlfzhSfmyy6BUWRQvZJxc3Cm8V/qnR3fey3O/32WT5Q73XhljzeVR1lwe5d4rY2yy3OH3XQGWf+fj+7qewILirryEZ11gsrPlt9vc3eGnuvUvWXZ3+Nlkuc1PG5xM0Vxrea55Yf0AD/w0xqJmHzc1eROiqNnH+h/HuPmoxFSN1RzbfKs1baWxjxVtI9xw2PNSVLSNsMDkYHJxpzAxQGO16C7cYMF+13Op6vCTZMwx/cWbTC/r8UzYVMHQx3UH3VxTPyxLVYef/z76jyRjjufvd3FFpZ2paqtq/OzN2dVOrt43HJfCQ27+bLvP8YpXu6pWYoqmqz0csPCrbjHXNMR4lF34m6P3HjNacj2LdvQEwgFLdNeZUyvF5OzVuxOMQ4rXk1MrcYnuOiMCsox2rqweDLPlpJfDo4/impOMqB9PdpWTGeV9XKztfnqa0nf2Mn1nL5fu6mWmvp9ZFXbWXhrhg4dPZANW7BkIs7zSwawKOzO+7WfIL+0bUQkA+KC8N5BR3s9oVEeGKPkfxg1Yprdxmd42oS9EeIky9f3tHxpsjEfLr7diBsj1ZOptYjhAMNpVH1U6KEdRo5v+QORJkqsXjI5nT4ZgEBUf73EGsqudlCPfLPGi9Z9wgFytYBhQRtzmnOpBwyd1EhPB2D5CknHHV9VIsR+8XNOQKHebEyHXNCQKBjH2D0gwiIq1ZpeY3+Diy5BndgVy66S0mOYh5ZlFxcajHstnx7x8ETYe8Yh55qh1j9KkIEkAJm8+5vxcfdrr05y5QTnUrb57RccHSwBMDvaGfMJKAvAKgKkApgN4HcAbAGYDmF+oa/l6W4Plh9KToq2ksXuwpNEqlTb3OLY2/NK2vuyEFsC7AOYAeBOAAsCrAKYBmBIMxaTgx5RxIa8BmAngLQBzAcwHkAwgNcgCAO8AmAfgbQCzguYzosyT/gcSaJj+/BZ/OQAAAABJRU5ErkJggg==",style:"float: left;cursor: pointer; opacity: 0.7;"}).bind("click",o.prevSlide)),e(".slides-nav, .slides-nav-play").on("mouseover",function(){e(this).css({opacity:1})}),e(".slides-nav, .slides-nav-play").on("mouseout",function(){e(this).css({opacity:.7})}),1==l.slideCount?e("#"+s+" #slides-prev").hide():l.slideCount==l.totalSlides?e("#"+s+" #slides-next").hide():e("#"+s+" #slides-next").show()):(e("#"+s+" .slides-toolbar").show(),l.isEnbleNextBtn=!0,l.isEnblePrevBtn=!0),null===document.getElementById("all_slides_warpper")&&e("#"+s+" .slide").wrapAll("<div id='all_slides_warpper'></div>"),o.gotoSlide(1)},nextSlide:function(){var l=o.data,s=l.isLoop,i=l.isAutoSlideMode;l.slideCount<l.totalSlides?(o.gotoSlide(l.slideCount+1),i||e("#slides-next").show()):s?o.gotoSlide(1):i||e("#slides-next").hide(),i||(l.slideCount>1?e("#slides-prev").show():e("#slides-prev").hide(),l.slideCount!=l.totalSlides||s||e("#slides-next").hide())},prevSlide:function(){var l=o.data,s=l.isAutoSlideMode;return l.slideCount>1&&o.gotoSlide(l.slideCount-1),s||(1==l.slideCount?e("#slides-prev").hide():e("#slides-prev").show(),e("#slides-next").show()),this},gotoSlide:function(l){var s=l-1,i=o.data,d=i.slides,t=i.prevSlide,n=i.transition;if("random"==n){n=["","default","fade","slid"][Math.floor(3*Math.random())+1]}var a=1e3*i.transitionTime;if(d[s]){var r=e(d[s]);e(d[t]).is(":visible")&&("default"==n?e(d[t]).hide(a):"fade"==n?e(d[t]).fadeOut(a):"slid"==n&&e(d[t]).slideUp(a)),"default"==n?r.show(a):"fade"==n?r.fadeIn(a):"slid"==n&&r.slideDown(a),i.prevSlide=s,o.data.slideCount=l,e("#slides-slide-num").html(l)}return this},keyDown:function(l){l.preventDefault();var s=l.keyCode,i=o.data;switch(s){case 37:case 8:i.isSlideMode&&i.isEnblePrevBtn&&o.prevSlide();break;case 39:case 32:case 13:i.isSlideMode&&i.isEnbleNextBtn&&o.nextSlide();break;case 46:if(i.isSlideMode){var d=i.divId;e("#"+d+" .slide").hide(),o.gotoSlide(1)}break;case 27:i.isSlideMode&&(o.closeSileMode(),i.isSlideMode=!1);break;case 116:i.isSlideMode||(o.startSlideMode(),i.isSlideMode=!0,(i.isAutoSlideMode||i.isLoopMode)&&(clearInterval(i.loopIntrval),i.isAutoSlideMode=!1,i.isLoopMode=!1));break;case 113:i.isSlideMode&&o.fullscreen();break;case 119:i.isSlideMode&&o.startAutoSlide()}return!0},startSlideMode:function(){o.init()},closeSileMode:function(){var l=o.data;l.isSlideMode=!1;var s=l.divId;e("#"+s+" .slides-toolbar").hide(),e("#"+s+" .slide").show(),e(document.body).css("background-color",o.data.prevBgColor),l.isLoopMode&&(clearInterval(l.loopIntrval),l.isLoopMode=!1),o.exitFullscreenMod()},startAutoSlide:function(){var l=o.data,s=l.timeBetweenSlides;if(l.isAutoSlideMode||!1===s){if(clearInterval(l.loopIntrval),l.isAutoSlideMode=!1,l.isLoopMode=!1,l.nav){d=l.divId;e("#"+d+" .slides-toolbar .slides-nav").show(),e("#"+d+" #slides-play-pause").attr("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAF4UlEQVRIibWW+3NU9RnGz4ZR+5t0qjOVXmZ6M9b+0LEyuFRDjCEElMhEZlCSaWcohWgQoZE9e3Zdwg4Xd1FjJBQxlmgxbcm0NWNMJ6vBJuQCLCYxl92w2Vz3vtmTy2ZzOUnO7vrpDyklMEjbmfb9A97n+7zP+z7PVxBuU2KRqNXr9JIkSTUmo8lrNBgTRoMxYTKavJIk1eh1ekksErW363HL0ul0aZIolVst1pCtzobT4USWZVRVRVVVZFnG6XBiq7NhtVhDkiiV63S6tP+ouSiKheZic5fdbkdRFPrlODW9KmUXVV6pVzlYr/LbFpVah8pQJI6iKNjtdszF5i5RFAtv3/yAaKg6VxWWZZmrYZXfd8R58W8qOZXzPPHOHGknpkkvmSLz9SibS6fY/d40lS3z9IeWWFWdqwqLB0TDV7686lxVOB6PY3MtcvDvCTa8P8/qk7OsKZlm7fEpHnt1kvTD4zx+aIx0k0y6IUKWKYL43hSNXQvE4/ElkJuZ6HS6NHOxuUuWZWyuBXbVqDxyWuGh0lnWHI+hPRYl/fAE6SaZdVKETClClhhigxhiw4EQWS8HyTsSoaFjHlmWMRebu27QRBKlcrvdjiu8iL4+gfb0HNq3ZsksjfLUG2NsPBLhccMomfowG3R+Hi30kb0/yKb9AZ7c52fzvgCbX/JTVDLGgHcRu92OJErlS6MpErVWizWkKAoVbXEyKhRWl87w1IkJukeiBEfH6XGH2fSyi+KKMP3ecQxlg2TsHCB7t5cte3xsKfSSu8fHMy/6qPhwCkVRsFqsIbFI1Ap6nV6y1dkYlFV+8aHK2pMzPGKdYlvpKH6/n0hwhJGhfnJ/8zllf/SiTAcIhzz8pXaA7UX9bCzw8qwuSL4UJE8KssscZsi3iK3Ohl6nlwRJkmqcDifVjgWyziikl8Z49EiUba8F6HZcpdf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FZT9kSnHgAAAAASUVORK5CYII=")}l.isEnbleNextBtn=!0,l.isEnblePrevBtn=!0}else{l.isAutoSlideMode=!0;var i=l.isLoopMode;if(l.nav){var d=l.divId;e("#"+d+" .slides-toolbar .slides-nav").hide(),e("#"+d+" #slides-play-pause").attr("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAF00lEQVRIibWW7U+b5xXGb02TWu3DwodqW7R2XdVpbFW1hiBEAJu0iCSQqgloQ2oaLYhNSdos2xoSP37wGHHTD7Cp/YboIqVSAylBnZRCSu125IVAgh8wL8Zv2NjgF+LH8PAWE3BiQ/rbhywLydJsk7bzB1znPuc613XdQjympGppi9FglGVZ7qg11UZMNaY1U41prdZUG5FlucNoMMpStbTlcRiPLIPBoJcl+WRDfYNqtVhxu9xomkY6nSadTqNpGm6XG6vFSkN9gypL8kmDwaD/j8AlSTpkrjM7FEUhmUyS9nhYOXWKxNu/Z37XLubKylg8epTl06dJ+Xwkk0kURcFcZ3ZIknTo8eDHpJq2s21xTdNIOUZYOn6c2cJCpnNyUHNzmcrLI1pQQFinI6TXEykpYeHPf+K2x4OmabSdbYtLx6Sar31529m2+OrqKiutrczv3s1MTg7xfwBH8vMJ63RM6vVMbN1K8OWXCRYVESwuJrpvH0vnz7O6unq3ycOTGAwGvbnO7NA0jZXWVmbz84lv3kz0xRcJbdrERFYWgexs/Dk5+HJz8eXl4SsowKfT4SssZHzbNoKvvUai8zM0TcNcZ3Y8wIksyScVRSE1OspCeTnx7GzUqipmPvmEWGsrUx9/TOTMGcJnzjDZ0sJESwvB5mYCLS2MNzfjrqzEX1pK5MBBkj4fiqIgS/LJu6uplrY01DeoyWSSmydOMJOfT/Sll1A//JB5YHppidjCAtHZWULxOMFYDH80indyElcwiCsaZeDddxh7dQcTFeXMf9BIMpmkob5BlaqlLcJoMMpWi5WU18tscTGqXk8oO5twUxNhTSMYDOL3+xkbG8Pj8eB0OhkZGcFut6MoCgOOUZT6EwT2l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PSf/t9B/YJr/wbfl7/GTWKgJirhoAAAAAElFTkSuQmCC")}l.isEnbleNextBtn=!1,l.isEnblePrevBtn=!1;var t=s+l.transitionTime,n=l.totalSlides,a=l.randomAutoSlide;if(i)clearInterval(l.loopIntrval),l.isLoopMode=!1;else{var r=1e3*t;l.isLoopMode=!0,l.loopIntrval=setInterval(function(){if(a){var e=Math.floor(Math.random()*n)+1;o.gotoSlide(e)}else o.nextSlide()},r)}}},fullscreen:function(){if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),o.exitFullscreenMod();else{var n=o.data,a=n.divId;document.documentElement.requestFullscreen?document.getElementById(a).requestFullscreen():document.documentElement.msRequestFullscreen?document.getElementById(a).msRequestFullscreen():document.documentElement.mozRequestFullScreen?document.getElementById(a).mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.getElementById(a).webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);var r=e(window).width(),u=e(window).height();l=e("#"+a).width(),s=e("#"+a).height();var A=e("#"+a+" #all_slides_warpper").css("transform");i=A.substring(A.indexOf("(")+1,A.indexOf(")")).split(","),e("#"+a+" #all_slides_warpper .slide").offset().top,e("#"+a+" #all_slides_warpper .slide").offset().left,d=e("#"+a+" .slides-toolbar").width(),t=e("#"+a+" .slides-toolbar").offset().top,e("#"+a).attr({style:"width: "+(r-10)+"px; height: "+(u-10)+"px;"}),e("#"+a+" #all_slides_warpper").css({transform:"scale(1)"});var c=e("#"+a+" #all_slides_warpper .slide").width(),p=e("#"+a+" #all_slides_warpper .slide").height();e("#"+a+" #all_slides_warpper .slide").css({top:(u-p)/2+"px",left:(r-c)/2+"px"}),n.nav&&e("#"+a+" .slides-toolbar").css({width:"99%",top:"20px"}),e("#"+a+" #slides-full-screen").attr("src","data:image/png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; height: "+s+"px;"}),console.log(i[0]),e("#"+a+" #all_slides_warpper").css({transform:"scale("+i[0]+")"}),e("#"+a+" #all_slides_warpper .slide").css({top:"0px",left:"0px"}),n.nav&&e("#"+a+" .slides-toolbar").css({width:d+"px",top:t+"px"}),e("#"+a+" #slides-full-screen").attr("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAGwUlEQVRIibWWW0zU+RWAR1eHgaJtN92kbXYTkjUtlW26u6m7cQsMFwsyzAAOMyBQVGCAhUFgUFirYlABgSAXB6MgcinoDCBR3IGxwhABg1wEZQYRMIg3arn9B7ft+vj1AcK2Tdq+tCf5Hn7nnPy+nKdzRKL/d5SVld9uaLxiN//xttDT2yf03xsQhu+PCGNWqzD+aEJ48mRGePbsufDq1ZywsLgoLAuCML+wILx4+VJ4+nRWeDw5LVhtNmF09IFwb2BQ6LJ0C0Zjs1BZWWUvKSm1iDIOH35TWFRMWfk5jh07xonjxzmVk0Nebi6FBQWcLS6mrLSUCr2eyosXuVRVxcULF9CfO0dpSQnFRUWcyc8n99QpcrKzOXLkCGcKCjl9OpfDWVl/EYWHhwupqWlER0Wx7Re/ZOfuENwDQvCUheAVqMRHrmSXQolfUCj+QcpVgkPxCwrFV7Fa9wpU4ilT4iFT8qHrR0RGRpKamkZERKRdFB6+V0hP1xGuViGP1WGwzXPt0SKm6WW6Zu30vfqGofm/Mbr0LVbhLTb7W6zCW0YWv2Xg9V+58+IN5hmB1olFasbm2B2dQpgqlNTUNCIjo+yisLBwIS0tHZUyhF0RSdQP/YnG4TmaxxZoe7SEeUrA8nSFO8/e0Pv8DX0vvqHn+Ru6Z1fofGLH9HiZZusClf0vKet9jpcqFpUy5LsJ1OowITU1jZAgBZ6hsVy6+5Lq3lnqh+YwPpin1bbIzYkl2ieXMU8JmKcFOqYETJPL3Hi0ROPIa873veBs1wzFlll2KqIIVsg5eDCV8PAIu2jPnlAhJeUgclkAn8kiOWeZQd85SWXPU2oGXtJ4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MeT04yZrUyNDTM3f5+LJZuzOZbtLV9TVNzC1cNRq4ajNTW1QsiNze3d7ds2fKz7du3F8dpNAsxsXErcZr4lfiEJHuyNkXQ6TKWdRmHl9N1h5Z0hzKXDmVmLekOZS7pdBnLaem65YOpafZkbYo94cukFU18gv3LZO2fXV2350kkEhe1Wv3u+up0cXGR6PX6n9bW1roajcZPTSbTFxaLxWdwcDBweHhY9fDhw9/ZbLbY8fFxjc1mi7NarQdGRkai+vv71RaLRWE2m31bW1t3GAwGl5KSEsd/u6OBjcD3gPcAF+AjYAfgAfgCv13DG/gC+AT4OfA+8APAAdjwnwQb1iSbADHguCbcAmz9B7YAzoATIFnr3QRs/B/eJP89/g4EWvXUVw2aogAAAABJRU5ErkJggg==")}};e.fn.divs2slides=function(l){var s=e(this),i=s.attr("id"),d=e("#"+i+" .slide"),t=d.length,n=e.extend(!0,{first:1,nav:!0,showPlayPauseBtn:!0,showFullscreenBtn:!0,navTxtColor:"black",keyBoardShortCut:!0,showSlideNum:!0,showTotalSlideNum:!0,autoSlide:1,randomAutoSlide:!1,loop:!1,background:!1,transition:"default",transitionTime:1},l),a=n.first;function r(){!1!==document.webkitIsFullScreen&&!1!==document.mozFullScreen&&null!==document.msFullscreenElement||o.exitFullscreenMod()}o.data={nav:n.nav,navTxtColor:n.navTxtColor,showPlayPauseBtn:n.showPlayPauseBtn,showFullscreenBtn:n.showFullscreenBtn,showSlideNum:n.showSlideNum,showTotalSlideNum:n.showTotalSlideNum,target:s,divId:i,slides:d,isSlideMode:!0,totalSlides:t,slideCount:a,prevSlide:0,transition:n.transition,transitionTime:n.transitionTime,slctdBgClr:n.background,prevBgColor:void 0,timeBetweenSlides:n.autoSlide,isLoop:n.loop,isLoopMode:!1,isAutoSlideMode:!1,randomAutoSlide:n.randomAutoSlide,isEnbleNextBtn:!0,isEnblePrevBtn:!0,isInit:!1},n.keyBoardShortCut&&e(document).bind("keydown",o.keyDown),document.addEventListener&&(document.addEventListener("webkitfullscreenchange",r,!1),document.addEventListener("mozfullscreenchange",r,!1),document.addEventListener("fullscreenchange",r,!1),document.addEventListener("MSFullscreenChange",r,!1)),o.init()}}(jQuery);
|