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(` `); } else if (data.status == "error") { alert("Product not find, either ur trying to be nerdy or something actually went wrong.. Code#00NERD-ALR \n\n"+data.response); } }, error: function (err) { alert("Please report this to an Support, Product failed to check Error:Code#00PROD-CHRX"); }, }); return false; }); $('#download_accounts').click(function() { contentType = 'data:text/plain;charset=utf-8,'; uriContent = contentType + encodeURIComponent($(".order-accounts-list textarea").val()); this.setAttribute('href', uriContent); this.setAttribute('download', "AltsZone - "+$('#download_accounts').attr("order_id")+".txt"); }); $('#complete_lider').click(function() { $data_to_sendx = { order: $('#complete_lider').attr("order_id") }; $.ajax({ url: "/components/lider.php", type: "POST", dataType: "json", data: $data_to_sendx, success: function (raw) { var data = raw; if (data.status == "success") { window.open(data.response, '_blank'); } else if (data.status == "error") { alert(data.response); } }, error: function (err) { alert("Please report this to an Admin #XN0L1NF"); }, }); return false; }); });