if (window.history.replaceState) { window.history.replaceState(null, null, window.location.href); } document.onreadystatechange = function () { var state = document.readyState; if (state == "complete") { console.log( "%cHandcrafted by Eshxn.xyz", "color:#c3073f;font-size:30px;font-weight:800;" ); console.log( "%cReadjusted by Tudor Alexandru, tudoralexandru.vercel.app", "color:#ff00ff;font-size:20px;font-weight:800;" ); } }; $(document).ready(function () { $(".scroll").click(function () { $("html, body").animate( { scrollTop: $($(this).attr("href")).offset().top - 50, }, 600 ); return false; }); $(".faq-in").click(function () { if ($(this).hasClass("active")) { $(".faq-in").removeClass("active"); } else { $(".faq-in").removeClass("active"); $(this).toggleClass("active"); } }); $(".question").click(function () { if ($(this).hasClass("active")) { $(".question").removeClass("active"); } else { $(".question").removeClass("active"); $(this).toggleClass("active"); } }); $(".product-btn").click(function () { $(".modal").remove(); $data_to_send = {product: $(this).attr("data")}; $.ajax({ url: "/components/product_checker.php", type: "POST", dataType: "json", data: $data_to_send, success: function (raw) { var data = raw; if (data.status == "success") { var product = JSON.parse(data.response); $("body").append(`