PageSourceSearch

https://www.duymer.com.tr/dashboard/pil/assets/js/form.js?v=1.2

js duymer.com.tr collected 2026-10-04 15:10:56 UTC 1,164 bytes, 30 lines download raw bytes

1var forms = document.querySelectorAll("#form, #footerForm");
2var successModal = document.getElementById("successModal");
3var closeModalButton = document.getElementById("closeModal");
4
5forms.forEach(function (form) {
6    form.addEventListener("submit", function (event) {
7        event.preventDefault();
8        
9        var formData = new FormData(this);
10        
11        fetch("sendform.php", { method: "POST", body: formData })
12            .then(function (response) {
13                if (response.ok) return response.text();
14                throw new Error("API yanıtı başarısız: " + response.status);
15            })
16            .then(function (responseText) {
17                form.reset(); // Formu sıfırla
18                successModal.style.display = "block"; // Modalı aç
19            })
20            .catch(function (error) {
21                console.log("Hata:", error);
22                alert("Form gönderilemedi, lütfen tekrar deneyin...");
23            });
24    });
25});
26
27// Modalı kapatma düğmesi
28closeModalButton.addEventListener("click", function () {
29    successModal.style.display = "none"; // Modalı kapat
30});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.