diff --git a/src/index.html b/src/index.html index bdfedc2..8739865 100644 --- a/src/index.html +++ b/src/index.html @@ -40,13 +40,13 @@
I do something about something - My Discord Bot
Right Click to Invite
- My Beatrun Fork
Right Click to check out the source code
- Beatrun Courses Database
Right Click to check out the source code
+ My Discord Bot
Right Click to Invite
+ My Beatrun Fork
Right Click to check out the source code
+ Beatrun Courses Database
Right Click to check out the source code
- +
diff --git a/src/js/main.js b/src/js/main.js index dec3d14..8a723ac 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -62,9 +62,9 @@ function notify(text = "Lorem ipsum dolor sit amet", type = null, time = 3000) { }, time); } -function copy(content, textToNotify = "Copied to clipboard!") { +function copy(content, textToNotify = "Copied to clipboard!", type, time) { navigator.clipboard.writeText(content); - notify(textToNotify, false, 1000); + notify(textToNotify, type, time); return false; // prevent the context menu from being opened }