From 9dd7eab5a3f36d1cbb4d1d699b1bd3771cae3bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veszter=20M=C3=A1rton?= Date: Sat, 28 May 2016 16:18:47 +0200 Subject: [PATCH] Update script_min.js --- script_min.js | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/script_min.js b/script_min.js index 47716af..b0ff501 100644 --- a/script_min.js +++ b/script_min.js @@ -1,22 +1,21 @@ /* ImagepopUp JS, Version: 1.3.1 | http://intomedia.hu, https://github.com/vmarci21/PhotoPopUp */ var imagepopup={ option:{imageloadingerror_title:"Loading errors",imageloadingerror_text:"Failed to load the picture :(",close_element:'',open_element:'',next_element:'',prev_element:'',enabled_keyboard_control:true,enabled_touch_control:true}, - firstimage:!0,imageherei:0,wherediv:1,gallerye:"",hasnext:!1,hasprev:!1,opened:!1,events_open:[],events_close:[],events_buttonclick:[],new_button:[], -addevent:function(a,b){"onopen"==a?this.events_open.push(b):"onclose"==a?this.events_close.push(b):"onbuttonclick"==a&&this.events_buttonclick.push(b)},newgallery:function(a){if(0c+1?(document.getElementById("imagepopup_next").className="active",f=void 0!=d[c+1].dataset.bigsrc?d[c+1].dataset.bigsrc:d[c+1].src,this.hasnext=!0):(this.hasnext=!1,document.getElementById("imagepopup_next").className=""),c=d.length;window.CP.exitedLoop(2)}document.getElementById("imagepopup").style.display="block";document.getElementById("imagepopup_load").className="active";setTimeout(function(){document.getElementById("imagepopup").className= -"active"},30);c=new Image;c.onerror=function(){document.getElementById("imagepopup_load").className="";imagepopup.showtext(imagepopup.option.imageloadingerror_title,imagepopup.option.imageloadingerror_text)};c.onload=function(){imagepopup.wherediv=e;document.getElementById("imagepopup_load").className="";document.getElementById("imagepopup_image"+g).className="";document.getElementById("imagepopup_image"+e).className="active";document.getElementById("imagepopup_image"+e).innerHTML='';imagepopup.resizeimage();document.getElementById("imagepopup_panel").innerHTML=''+imagepopup.option.open_element+' '+imagepopup.option.close_element+"";for(var c=0;c'+imagepopup.new_button[c][0]+ -" ";window.CP.exitedLoop(3);document.getElementById("imagepopup_text").innerHTML=b;""!=f&&((new Image).src=f);for(c=0;c

'+a+"

"+b+"

";document.getElementById("imagepopup_panel").innerHTML= -'x';setTimeout(function(){document.getElementById("imagepopup").className="active";document.getElementById("imagepopup").className="active";document.getElementById("imagepopup_image1").className="active";document.getElementById("imagepopup_image2").className=""},30)},next:function(){for(var a=document.getElementsByClassName(this.gallerye),b=void 0!=a[this.imageherei+1].dataset.bigsrc?a[this.imageherei+1].dataset.bigsrc:a[this.imageherei+ -1].src,d=0;db&&(b=4);document.getElementById("nagy_kep"+this.wherediv).style.marginTop= -b+"px";600Math.abs(ennyit2)?document.getElementById("nagy_kep"+imagepopup.wherediv).style.marginLeft=ennyit+"px":(a=starttop-ennyit2, -document.getElementById("nagy_kep"+imagepopup.wherediv).style.marginTop=a+"px");d.preventDefault()}function d(){var a="0px";Math.abs(ennyit)>Math.abs(ennyit2)?(120ennyit&&imagepopup.hasnext&&(a="-200%"),document.getElementById("nagy_kep"+imagepopup.wherediv).className="touch",document.getElementById("nagy_kep"+imagepopup.wherediv).style.marginLeft=a,120ennyit&&imagepopup.hasnext&&imagepopup.next()):100ennyit2?imagepopup.hideimage():(a=starttop+"px",document.getElementById("nagy_kep"+imagepopup.wherediv).className="touch",document.getElementById("nagy_kep"+imagepopup.wherediv).style.marginTop=a);setTimeout(function(){document.getElementById("nagy_kep"+imagepopup.wherediv).className=""},200)}ennyit2=starttop=ennyit=starty=startx=0;window.PointerEvent&&"undefined"==typeof document.documentElement.ontouchstart?navigator.maxTouchPoints&&1c+1?(document.getElementById("imagepopup_next").className= +"active",f=void 0!=d[c+1].dataset.bigsrc?d[c+1].dataset.bigsrc:d[c+1].src,this.hasnext=!0):(this.hasnext=!1,document.getElementById("imagepopup_next").className=""),c=d.length;document.getElementById("imagepopup").style.display="block";document.getElementById("imagepopup_load").className="active";setTimeout(function(){document.getElementById("imagepopup").className="active"},30);c=new Image;c.onerror=function(){document.getElementById("imagepopup_load").className="";imagepopup.showtext(imagepopup.option.imageloadingerror_title, +imagepopup.option.imageloadingerror_text)};c.onload=function(){imagepopup.wherediv=e;document.getElementById("imagepopup_load").className="";document.getElementById("imagepopup_image"+g).className="";document.getElementById("imagepopup_image"+e).className="active";document.getElementById("imagepopup_image"+e).innerHTML='';imagepopup.resizeimage();document.getElementById("imagepopup_panel").innerHTML=''+imagepopup.option.open_element+ +' '+imagepopup.option.close_element+"";for(var c=0;c'+imagepopup.new_button[c][0]+" ";document.getElementById("imagepopup_text").innerHTML=b;""!=f&&((new Image).src=f);for(c=0;c

"+b+"

";document.getElementById("imagepopup_panel").innerHTML='x';setTimeout(function(){document.getElementById("imagepopup").className="active";document.getElementById("imagepopup").className= +"active";document.getElementById("imagepopup_image1").className="active";document.getElementById("imagepopup_image2").className=""},30)},next:function(){for(var a=document.getElementsByClassName(this.gallerye),b=void 0!=a[this.imageherei+1].dataset.bigsrc?a[this.imageherei+1].dataset.bigsrc:a[this.imageherei+1].src,d=0;db&&(b=4);document.getElementById("nagy_kep"+this.wherediv).style.marginTop=b+"px";600 +Math.abs(ennyit2)?document.getElementById("nagy_kep"+imagepopup.wherediv).style.marginLeft=ennyit+"px":(a=starttop-ennyit2,document.getElementById("nagy_kep"+imagepopup.wherediv).style.marginTop=a+"px");d.preventDefault()}function d(){var a="0px";Math.abs(ennyit)>Math.abs(ennyit2)?(120ennyit&&imagepopup.hasnext&&(a="-200%"),document.getElementById("nagy_kep"+imagepopup.wherediv).className="touch",document.getElementById("nagy_kep"+imagepopup.wherediv).style.marginLeft= +a,120ennyit&&imagepopup.hasnext&&imagepopup.next()):100ennyit2?imagepopup.hideimage():(a=starttop+"px",document.getElementById("nagy_kep"+imagepopup.wherediv).className="touch",document.getElementById("nagy_kep"+imagepopup.wherediv).style.marginTop=a);setTimeout(function(){document.getElementById("nagy_kep"+imagepopup.wherediv).className=""},200)}ennyit2=starttop=ennyit=starty=startx=0;window.PointerEvent&&"undefined"==typeof document.documentElement.ontouchstart? +navigator.maxTouchPoints&&1