/* jQuery Peelback * Copyright 2011, Rob Flaherty * Modified Version: 11.2017, Hans Reisenauer - www.virtualsystem.de * Dual licensed under the MIT and GPL licenses * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */jQuery(document).ready(function(e){e.Peelback=function(t,i){var n=this;n.$el=e(t),n.el=t,n.$el.data("Peelback",n),n.init=function(){var t,s,a,l,o,g,c;if(n.settings=e.extend({},e.Peelback.defaultSettings,i),"string"==typeof n.settings.adImage&&""!==n.settings.adImage)if("string"==typeof n.settings.peelImage&&""!==n.settings.peelImage)if("string"==typeof n.settings.clickURL&&""!==n.settings.clickURL){var h,d;h=e('
'),d=h.find("img"),e(d).css({width:"0",height:"0","z-index":"9002",position:"absolute",right:"0",top:"0","-ms-interpolation-mode":"bicubic"}),n.$el.prepend(h),t=e('
'),s=t.find("img"),a=t.find("div"),e(s).css({width:"0",height:"0","z-index":"9001","max-width":"100%",position:"absolute",right:"0",top:"0","-ms-interpolation-mode":"bicubic",cursor:"pointer"}),e(a).css({width:"0",height:"0",overflow:"hidden",position:"absolute",right:"0",top:"0","z-index":"9000",background:"url("+n.settings.adImage+") no-repeat right top",cursor:"default"}),n.$el.prepend(t);var p=navigator.userAgent.toLowerCase();p.match("iphone")||p.match("ipad")||p.match("android")||p.match("windows phone");var r=parseInt(e("#peelback").outerWidth());r>1024?(l=n.settings.smallSize+"px",o=n.settings.bigSize-9+"px",g=n.settings.smallSize-2+"px",newSmallMaskSize=n.settings.smallSize+1+"px",c=Math.floor(.96*n.settings.bigSize)+"px"):r>420?(l="55px",o="297px",g="48px",newSmallMaskSize="51px",c=Math.floor(288)+"px"):(l="40px",o="199px",g="38.5px",newSmallMaskSize="38px",c=Math.floor(192)+"px"),!1===n.settings.autoAnimate?(e(s).css({width:l,height:l}),e(a).css({width:g,height:g})):(e(a).delay(600).animate({width:g,height:g},600),e(d).delay(600).animate({width:l,height:l},600));var m=null!==document.ontouchstart?"click":"touchstart";r>1024&&(m="mouseover"),e(h).bind(m,function(){e(s).show().animate({width:newSmallMaskSize,height:newSmallMaskSize},1),e(d).hide()}),t.hover(function(){e(s).css({width:l,height:l}),e(a).css({width:g,height:g}),e(a).stop().animate({width:c,height:c},400),e(s).stop().animate({width:o,height:o},{easing:"swing",duration:400,complete:function(){var t=null!==document.ontouchstart?"click":"touchstart";e(s).bind(t,function(e){var t={},i=n.settings.clickURL,s="VS-Page-Peel";t.hasOwnProperty(s)&&!t[s].closed?t[s].focus():t[s]=window.open(i,s)})}}),!0===n.settings.gaTrack&&("undefined"!=typeof _gaq?_gaq.push(["_trackEvent","Ad_Interaction","Peelback",n.settings.gaLabel]):!0===n.settings.debug&&console.log("Google Analytics _gaq object undefined"))},function(){e(a).stop().animate({width:g,height:g},500),e(s).stop().animate({width:l,height:l},{easing:"swing",duration:500,complete:function(){e(d).show().animate({width:l,height:l},10),e(s).hide()}})})}else!0===n.settings.debug&&console.log("Click URL missing");else!0===n.settings.debug&&console.log("Peel effect image missing");else!0===n.settings.debug&&console.log("Ad image missing")},n.init()},e.Peelback.defaultSettings={adImage:null,peelImage:'https://info-webportal.de/adsman/js/jquery_peel/peel_img_v4.png',peelImageSmall:'https://info-webportal.de/adsman/js/jquery_peel/peel_img_small.png',clickURL:null,smallSize:80,bigSize:500,gaTrack:!1,gaLabel:"ADSMAN Page-Peel",autoAnimate:!0,debug:!1},e.fn.peelback=function(t){return this.each(function(){new e.Peelback(this,t)})}}); jQuery.noConflict(); jQuery(document).ready(function() { jQuery('body').peelback({ adImage:'httpss://www.info-webportal.de/adsman/images/peels/c4ba6b13_panys-shop_glt9t.jpg', // adsman_gross_01_R.jpg, bm_big.jpg clickURL:'https://info-webportal.de/adsman/count/ppout.php?id=4&cpid=17&sid=x1vg3p2c741313041k4s4k', gaLabel:'virtualsystem.de' }); }); var anim = null; function animSmallPeel() { jQuery(".ppimg").animate({ "height": "+=3px", "width": "+=3px" }, 500 ); jQuery(".ppimg").animate({ "height": "-=3px", "width": "-=3px" }, 700 ); anim = setTimeout("animSmallPeel()", 4000); } animSmallPeel();