Click Here
"; if(end > Date.now()){ buildTopbar(); setNewTime(); } })(); function buildTopbar(){ var new_style=document.createElement('style'); new_style.appendChild(document.createTextNode(checkout_css)); document.head.appendChild(new_style); var new_html=document.createElement('div'); new_html.className="promotion_bar"; new_html.innerHTML=checkout_html; document.body.insertBefore(new_html, document.body.firstElementChild); } function setNewTime(){ var new_time, days, hours, minutes, seconds,milliseconds, remainder, frame_count; var day=86400000; var hour=3600000; var minute=60000; var second=1000; var countdown=document.getElementsByClassName("promotion_countdown")[0]; var frame_delay=10; (function resetTimer(){ var tc=end-Date.now(); days=Math.floor(tc/day); remainder=(tc%day); hours=Math.floor(remainder/hour); remainder=remainder%hour; minutes=Math.floor(remainder/minute); remainder=remainder%minute; seconds=Math.floor(remainder/second); new_time=days+"d "+hours+"h "+minutes+"m "+seconds+"s "; countdown.innerHTML=new_time; frame_count=frame_delay; (function waitFrames(){ frame_count--; requestAnimationFrame((frame_count) ? waitFrames : resetTimer); })(); })(); } })(); } function loadGA(){ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-84409420-1', 'auto'); ga('send', 'pageview'); var trackOutboundLink=function(url) { ga('send', 'event', 'outbound', 'click', url, { 'transport': 'beacon', 'hitCallback': function(){document.location=url;} }); } } function loadFB(){ } function loadExternalJsFiles(urls){ if(!Array.isArray(urls)) urls=[urls]; var new_script; for(var i=0; i < urls.length; i++){ new_script=document.createElement("script"); new_script.src=urls[i]; document.body.appendChild(new_script); } } function loadExternalCssFiles(urls){ if(!Array.isArray(urls)) urls=[urls]; var css; for(var i=0; i < urls.length; i++){ css=document.createElement("link"); css.rel="stylesheet"; css.href=urls[i]; css.type="text/css"; document.body.appendChild(css); } } function buildCss(new_css){ var new_style=document.createElement('style'); new_style.appendChild(document.createTextNode(new_css)); document.head.appendChild(new_style); } function font_handler(){ var loaded_obj={}; var styles=window.document.styleSheets[0]; this.fontLoader=function(font_path_list, prio=false){ if(font_path_list !="" && font_path_list !=undefined){ font_path_list=(Array.isArray(font_path_list)) ? font_path_list : [font_path_list]; for(var i=0; i < font_path_list.length; i++){ var font_info=getFontInfo(font_path_list[i]); if(loaded_obj[font_info.full_name]==undefined || loaded_obj[font_info.full_name]==null){ loaded_obj[font_info.full_name]=font_info; loadNewFont(font_info, styles, prio); } } } }; function loadNewFont(font_info, styles, prio=false){ var new_font=` @font-face{ font-family: '${font_info.name}'; format(${font_info.type}); src: url("${font_info.path}"); font-display: ${prio ? "optional" : "fallback"}; } `; styles.insertRule(new_font); } function getFontInfo(path){ var font_info={path: path}; var font_name=path.split("/"); font_info.full_name=font_name.pop(); font_name=font_info.full_name.split("."); font_info.name=font_name[0]; font_info.type=font_name[1]; return font_info; } } function svg_animation_handler(input_svg, params={}, performance_mon=null){ var animate,finish_animation,paths,path_list, finish_cb,defaults; (function(){ animate=true; defaults={}; defaults.color=(checkForProperty(params.color) ? params.color : "#fff"); paths=input_svg.getElementsByTagName("path"); path_list=fillPathList(paths); if(performance_mon) performance_mon.addAnimateToggle(function(){animate=false}, 1); finish_cb=null; })(); var default_animations=[ { loading:{stroke_width: 4,stroke_speed: 4,dash_length: 200}, ending:{dash_length:-1,intervals: 5}, rendered:{stroke_color:defaults.color,stroke_width:0} }, { loading:{stroke_width: 4,stroke_speed: 4,dash_length: 400}, ending:{stroke_speed: 10,dash_length:4,intervals: 90}, rendered:{stroke_color:defaults.color,stroke_width:0} }, { loading:{stroke_width: 4,stroke_speed: 4,dash_length: 20}, ending:{dash_length:-1,intervals: 50}, rendered:{stroke_color:defaults.color,stroke_width:0} }, { loading:{stroke_width: 4,stroke_speed: 4,dash_length: 20}, ending:{dash_length:20,intervals: 2}, rendered:{stroke_color:defaults.color,stroke_width:0} }, { loading:{stroke_width: 20,stroke_speed: 10,dash_length: 50}, ending:{dash_length:30,intervals: 50}, rendered:{stroke_color:defaults.color,stroke_width:0} }, { loading:{stroke_width: 12,stroke_speed: 8,dash_length: 300}, ending:{dash_length:-1,intervals: 300}, rendered:{stroke_color:defaults.color,stroke_width:0} }, { loading:{stroke_width: 8,stroke_speed: 6,dash_length: 10}, ending:{dash_length:360,intervals: 140}, rendered:{stroke_color:defaults.color,stroke_width:0} }, { loading:{stroke_width: 10,stroke_speed: 10,dash_length: 360}, ending:{dash_length:-1,intervals: 140}, rendered:{stroke_color:defaults.color,stroke_width:0} }, ]; this.toggleAnimation=function(set_to){ animate=(set_to !=null) ? set_to : !animate; }; this.finishAnimation=function(cb=null){ finish_animation=true; if(cb) finish_cb=cb; }; this.flashColor=function(params){ requestAnimationFrame(function(){ for(var i=0; i < paths.length; i++){ paths[i].style.fill="black"; paths[i].style.transfrom="scale(1.5)"; } requestAnimationFrame(function(){fillPath(paths[0], "white")}); }); function fillPath(current_path, color){ if(current_path !=null){ requestAnimationFrame(function(){ current_path.style.fill=color; current_path.transfrom="scale(1)"; requestAnimationFrame(function(){ fillPath(current_path.nextElementSibling, color); }); }); } } }; this.startAnimation=function(selected_animation){ (function(){ finish_cb=null; finish_animation=false; switch(typeof selected_animation){ case "undefined": selected_animation=default_animations[getRandomInclusive(0, default_animations.length-1)]; break; case "number": selected_animation=default_animations[selected_animation]; break; } initAnimation(selected_animation, ((checkForProperty(selected_animation.loading.initial_offset)) ? selected_animation.loading.initial_offset : 0)); })(); function initAnimation(animation, current_offset=0){ for(var i=0; i < paths.length; i++){ paths[i].style.strokeDasharray=animation.loading.dash_length; paths[i].style.strokeDashoffset=current_offset; paths[i].style.strokeWidth=animation.loading.stroke_width; paths[i].style.fill="none"; } requestAnimationFrame(function(){loadingAnimation(animation, current_offset)}); } function loadingAnimation(animation, current_offset){ var animate_list=path_list.slice(); (function newFrame(){ if(animate){ current_offset+=animation.loading.stroke_speed; for(var i=0; i < animate_list.length; i++) paths[animate_list[i].path_index].style.strokeDashoffset=current_offset; if(!finish_animation) requestAnimationFrame(newFrame); else endingAnimation(animation, current_offset); } else endingAnimation(animation, current_offset); })(); } function endingAnimation(animation, current_offset){ var animate_list=path_list.slice(); var frame_count=animation.ending.intervals; var length_offset=[animate_list.length]; var current_length=[animate_list.length]; var speed_offset=parseFloat(((animation.ending.dash_length==-1) ?-(current_offset/frame_count) : ((animation.ending.stroke_speed-animation.loading.stroke_speed)/frame_count)).toFixed(2)); for(var i=0; i < animate_list.length; i++){ length_offset[i]=parseFloat(((animation.ending.dash_length==-1) ? ((animate_list[i].path_length-animation.loading.dash_length)/frame_count) : ((animation.ending.dash_length-animation.loading.dash_length)/frame_count)).toFixed(2)); current_length[i]=animation.loading.dash_length; } (function newFrame(){ current_offset+=speed_offset; frame_count--; for(var i=0; i < animate_list.length; i++){ current_length[i]+=length_offset[i]; paths[animate_list[i].path_index].style.strokeDashoffset=current_offset; paths[animate_list[i].path_index].style.strokeDasharray=current_length[i]; } if(frame_count > 0) requestAnimationFrame(newFrame); else fillPaths(animation); })(); } function fillPaths(animation){ var temp_list=path_list.slice(); var fill_list=[]; for(var i=0; i < temp_list.length; i++){ if(!paths[temp_list[i].path_index].classList.contains('inner_shape')) fill_list.push(temp_list[i]); paths[temp_list[i].path_index].style.strokeWidth=0; } requestAnimationFrame(function(){ for(var i=0; i < fill_list.length; i++){ paths[fill_list[i].path_index].style.opacity=0; paths[fill_list[i].path_index].style.fill=defaults.color; } }); var remaining=100; var decrement=1; (function fill(){ remaining-=decrement; var new_fill=((100-remaining)/100); for(var i=0; i < fill_list.length; i++) paths[fill_list[i].path_index].style.opacity=new_fill; if(remaining > 0) requestAnimationFrame(fill); })(); if(finish_cb) finish_cb(); } }; function fillPathList(paths){ var new_list=[]; for(var i=0; i < paths.length; i++){ var new_path={ path_length: Math.ceil(paths[i].getTotalLength()), path_index: i }; new_list.push(new_path); } return new_list; } function getRandomInclusive(min, max){return Math.floor(Math.random()*(max-min+1))+min;} } function generateSession(){ var hb=[]; var ns=""; for(var i=48; i <=90; i++) if(i < 58 || i > 64) hb.push(String.fromCodePoint(i)); for(var i=0; i < 12; i++) ns+=hb[getRandomInclusive(0, (hb.length-1))]; return {ts:getTimeStamp(), id:ns}; } function getTimeStamp(){return new Date().toISOString().split('.')[0];} function loadGA(){ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-84409420-1', 'auto'); ga('send', 'pageview'); } function loadGTM(){ (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl; f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-W6PWKT7'); } function loadAppsf(){ var custom_appsf=""; var appsf_key="fea07f2f-7e4b-43ee-af0b-a5af722c6865"; if(custom_appsf !=""){ switch(custom_appsf){ case "mesmerize": appsf_key="3dd77956-d1f9-4022-ad0c-01aadb27c891"; break; case "pzizz": appsf_key="fea07f2f-7e4b-43ee-af0b-a5af722c6865"; break; } } !function(t,e,n,s,a,c,i,o,p){t.AppsFlyerSdkObject=a,t.AF=t.AF||function(){ (t.AF.q=t.AF.q||[]).push([Date.now()].concat(Array.prototype.slice.call(arguments)))}, t.AF.id=t.AF.id||i,t.AF.plugins={},o=e.createElement(n),p=e.getElementsByTagName(n)[0],o.async=1, o.src="https://websdk.appsflyer.com?"+(c.length>0?"st="+c.split(",").sort().join(",")+"&":"")+(i.length>0?"af_id="+i:""), p.parentNode.insertBefore(o,p)}(window,document,"script",0,"AF","banners",{ banners: {key: appsf_key} }); AF('banners', 'showBanner', {bannerZIndex: 1000}); } function sendToGA(obj){ var newObj=mergeObjects({hitType:'event', eventCategory:'buy_page',sessionID:global_sesh.id, sessionTS:global_sesh.ts, eventTS:getTimeStamp(), refferer:global_ref}, obj); ga('send', newObj); }