Commit Graph

15 Commits (59ba22638a942478fb7607190801062d6367c9b2)

Author SHA1 Message Date
Edward 59ba22638a
Apply suggestions from code review
Remove `hashtag` but use the first element of `hastags` instead for facebook hashtag parameter.

Co-authored-by: Nikita Karamov <me@kytta.dev>
2023-07-06 20:50:57 +08:00
Edward Cui c00e449749 Add hashtag to facebook and hastags to twitter
Hashtag and hastags are the most commonly used features on facebook and
twitter respectively. Adding support to those two will make the library
even more powerful.

This PR add two optional attribute `data-hashtag` for facebook and
`data-hashtags` for twitter.

`data-hashtag` is a single key word without `#` while `data-hashtags`
are comma seperated strings without `#`.
2023-07-04 21:52:20 +08:00
Nikita Karamov d49120ed0f Change icon for a second after copying 2023-03-20 19:15:22 +01:00
Nikita Karamov 2493e6d014 Add "Copy URL" button
Closes #41
2023-03-20 19:15:22 +01:00
Nikita Karamov 1550573923
Build CSS using Vite 2023-01-25 20:29:14 +01:00
Nikita Karamov d5141a6383
Use non-default export 2022-02-10 23:02:50 +01:00
Nikita Karamov a0a7c02e0a
Replace index loops with for-of-loops 2022-02-10 22:34:16 +01:00
Nikita Karamov 95cb4ce158
Rename index variables in loops 2022-02-10 22:20:06 +01:00
Nikita Karamov 51a7597235
Use querySelectorAll instead of getElementsByClassName 2022-02-10 22:19:54 +01:00
Nikita Karamov 9a6f39af4a
Move button listener outside the loop 2022-02-10 22:19:03 +01:00
Nikita Karamov c5e4ab0bd7
Move urlBuilderMap to shareon.js 2022-02-10 21:16:53 +01:00
Nikita Karamov d95105353f
Convert code using Prettier 2022-02-08 18:56:39 +01:00
Nikita Karamov 9da80abfa5
Add FB App ID to possible data-attributes 2020-09-28 13:33:36 +02:00
Nikita Karamov fb4a0651f9
Fix button listeners 2020-09-18 20:24:22 +02:00
Nikita Karamov 12187ca227
Move from TS to JS 2020-07-31 18:18:17 +02:00