(function ($) { /*jslint undef: false, browser: true, devel: false, eqeqeq: false, bitwise: false, white: false, plusplus: false, regexp: false, nomen: false */ /*global jQuery,setTimeout,location,setInterval,YT,clearInterval,clearTimeout,pixelentity */ $.pixelentity = $.pixelentity || {version: '1.0.0'}; $.pixelentity.peVoloSimpleSkin = { conf: { api: false } }; function PeVoloSimpleSkin(target, conf) { var slider; var slides; var prevC,nextC,bulletsC; var w,h; function resizeControls() { if (!w) { setTimeout(resize,100); return; } var offset = 0; if (nextC) { offset = w-nextC.width()-12; nextC.css({top: h-nextC.height()-8,left: offset}).show(); offset -= (prevC.width()-2); prevC.css({top: h-prevC.height()-8,left: offset}).show(); } if (bulletsC) { bulletsC.css({top: h-bulletsC.height()-12,left: 9}).show(); } } function prev() { slider.prev(); return false; } function next() { slider.next(); return false; } function jump(el) { var idx = el.currentTarget.getAttribute("data-idx"); slider.show(parseInt(idx,10)+1); return false; } function select(idx) { if (bulletsC) { bulletsC.find("a").removeClass("selected").eq(idx).addClass("selected"); } } function change(e,data) { select(data.slideIdx-1); } function buildUI() { prevC = $('
').find("a").click(prev).end().hide(); nextC = $('').find("a").click(next).end().hide(); bulletsC = $('').hide(); for (var i=0;i