Skip to content

Commit 001077f

Browse files
committed
Ko-fi donate option
1 parent 3d727e0 commit 001077f

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ My goal with HellenicDev is to create useful, accessible, and open-source projec
5151
[![CSS3](https://img.shields.io/badge/CSS3-1572B6?style=for-the-badge&logo=css3&logoColor=white)](https://developer.mozilla.org/en-US/docs/Web/CSS)
5252
[![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?style=for-the-badge&logo=javascript&logoColor=black)](https://developer.mozilla.org/en-US/docs/Web/JavaScript)
5353
[![Python](https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white)](https://www.python.org/)
54+
55+
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/S6S31XB030)

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,5 +1184,7 @@ <h2 class="left-align"> HellenicDev Updates: </h2>
11841184
</footer>
11851185

11861186
<script src="script.js" defer></script>
1187+
<script src='https://storage.ko-fi.com/cdn/scripts/overlay-widget.js' defer></script>
1188+
11871189
</body>
11881190
</html>

script.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,11 @@ menuButton.onclick = () => {
129129
} else {
130130
sideMenu.style.left = "0px";
131131
}
132-
};
132+
};
133+
134+
kofiWidgetOverlay.draw('hellenicdev', {
135+
'type': 'floating-chat',
136+
'floating-chat.donateButton.text': 'Donate',
137+
'floating-chat.donateButton.background-color': '#5bc0de',
138+
'floating-chat.donateButton.text-color': '#323842'
139+
});

0 commit comments

Comments
 (0)