// Event listener to redirect the user to the same page after they select a diferent currency from the dropdown menu document.getElementById("currencyDropdown").addEventListener("change", function() { if (this.value !== "default") { window.location.href = window.location.pathname + '?currency=' + this.value; } else { // Redirect to the page without any GET parameters if 'default' is selected window.location.href = window.location.pathname; } }); function fShowFeatureModal(a){var b=$(a),c="

"+b.find(".feature-name").html()+"

"+b.find(".feature-modal-text").html();$("#features-modal .modal-body").html(c),$("#features-modal").modal(),$("html").addClass("no-padding"),$("#features-modal").on("hidden.bs.modal",function(a){$("html").removeClass("no-padding")})}function fOnScrollOrResize(){nLatestKnownScrollY=window.scrollY,fRequestTick()}function fRequestTick(){bTicking||requestAnimationFrame(fUpdateBackgroundPosition),bTicking=!0}function fUpdateBackgroundPosition(){var a=oTestimonialSection.getBoundingClientRect(),b=window.innerHeight-a.height;if(a.top>=window.innerHeight)"transform: translateY(0px);"!=oTestimonialSectionParallax.style&&oTestimonialSectionParallax.setAttribute("style","transform: translateY(0px);min-height:"+a.height+"px;");else if(a.top+a.height<=0)oTestimonialSectionParallax.style!="transform: translateY(-"+b+"px);"&&oTestimonialSectionParallax.setAttribute("style","transform: translateY(-"+b+"px);min-height:"+a.height+"px;");else{var c=100-(a.top+a.height)/((window.innerHeight+a.height)/100),d=b/100*c;oTestimonialSectionParallax.setAttribute("style","transform: translateY(-"+d+"px);min-height:"+a.height+"px;")}bTicking=!1}var nLatestKnownScrollY=0,bTicking=!1;window.addEventListener("scroll",fOnScrollOrResize,!1),window.addEventListener("resize",fOnScrollOrResize,!1);var oTestimonialSection=document.getElementById("testimonial-section"),oTestimonialSectionParallax=document.getElementById("testimonial-section-parallax");