diff --git a/src/donate.ts b/src/donate.ts
index 10af75e..760f76a 100644
--- a/src/donate.ts
+++ b/src/donate.ts
@@ -3,6 +3,7 @@ type Options = {
message: string;
title: string;
highLight: string;
+ close: string;
position: string;
links: Array<{ url: string; text: string; style: string }>;
};
@@ -22,7 +23,7 @@ class Donate {
@@ -74,6 +77,7 @@ Donate.JS Demo
const title = document.getElementById("title");
const highlight = document.getElementById("highlight");
const message = document.getElementById("message");
+ const close = document.getElementById("close");
show.addEventListener("click", () => {
const donate = new Donate({
@@ -81,6 +85,7 @@ Donate.JS Demo
position: position.value,
title: title.value,
highLight: highlight.value,
+ close: close.value,
links: [
{
text: "Trendyol Bağış Linki",
diff --git a/src/styles/style.css b/src/styles/style.css
index 69b7bb0..54e984d 100644
--- a/src/styles/style.css
+++ b/src/styles/style.css
@@ -128,6 +128,11 @@
color: #cf626e;
}
+.popup__close img {
+ height: 24px;
+ width: 24px;
+}
+
.button {
border: 1px solid #000;
background: var(--primary-color);