Commit Graph

51 Commits (20e05d2ca2573fa3d0426011acbdcd24ec8fb10b)

Author SHA1 Message Date
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 bea94e545d
Re-export shareon with `export ... from` 2022-02-10 22:16:26 +01:00
Nikita Karamov 50d9e900f2
Add new build scripts 2022-02-10 21:44:53 +01:00
Nikita Karamov c5e4ab0bd7
Move urlBuilderMap to shareon.js 2022-02-10 21:16:53 +01:00
Nikita Karamov 70aaddb0c3
Add the style definitions directly to the CSS file
Also rename file to `shareon.css`
2022-02-10 21:16:26 +01:00
Nikita Karamov 73b54c385a
Write new index.js for the package 2022-02-10 20:32:40 +01:00
Nikita Karamov d95105353f
Convert code using Prettier 2022-02-08 18:56:39 +01:00
Nikita Karamov 57b9769417
Update toot URL 2022-02-02 15:08:47 +01:00
Nikita Karamov da71d0f227
Fix LinkedIn link 2021-01-17 23:58:15 +03:00
Nikita Karamov 3441effc98
Move all build config to Rollup 2021-01-17 22:32:59 +03:00
Nikita Karamov 9da80abfa5
Add FB App ID to possible data-attributes 2020-09-28 13:33:36 +02:00
Andy Balaam ad3e762782
Update Mastodon colour to the correct one for a white logo.
Co-authored-by: Nikita Karamov <nick@karamoff.dev>
2020-09-24 16:13:31 +01:00
Andy Balaam 8a18980dfa Add Mastodon button using NickKaramoff's toot.karamoff.dev 2020-09-24 00:53:15 +01:00
Nikita Karamov fb4a0651f9
Fix button listeners 2020-09-18 20:24:22 +02:00
Nikita Karamov a27b6fb434
Migrate from Rollup to Gulp and add Buble 2020-09-18 19:40:26 +02:00
Nikita Karamov f74b1e0d8c
Fix WhatsApp button to work on PCs w/o app
Closes #18
2020-09-17 22:18:44 +02:00
Nikita Karamov 7ce6516d39
Reformat networks.js 2020-07-31 18:57:09 +02:00
Nikita Karamov 65969039a4
Add mixin to populate CSS 2020-07-31 18:54:43 +02:00
Nikita Karamov f856eb3474
Move from Sass to CSS 2020-07-31 18:54:12 +02:00
Nikita Karamov 12187ca227
Move from TS to JS 2020-07-31 18:18:17 +02:00
Nikita Karamov 841ed23855
Extract networks to another file 2020-07-31 18:16:59 +02:00
Nikita Karamov 6eae37e54f
Optimize code
* optimize loops to reduce execution time
* inline functions to reduce output file size
* flatten PublishPreset structure
* remove extra checks
2020-07-30 12:40:00 +02:00
Nikita Karamov 522f0960d4
A better split into two versions
Additionally add some typing to the Rollup config files
2020-07-23 18:39:28 +02:00
Nikita Karamov 8f1d52e281
Split package into two files 2020-07-23 11:17:51 +02:00
Nikita Karamov b3a4cd1593
Merge pull request #13 from amiceli/add-default-export
Closes #11
2020-07-23 11:17:25 +02:00
amiceli 4db5ac324b Add default export for initializeShareon.
It allows to initialize share button after window.load, for example on SPA dynamic element.
2020-07-14 17:47:27 +02:00
Nikita Karamov d0881b4c59
Optimize all icons to match one standard
Closes #8
2020-07-12 17:08:19 +02:00
Nikita Karamov c6baa8f79e
Add Pocket button 2020-07-04 22:40:49 +02:00
Nikita Karamov 27d7826e51
Add Viber button 2020-07-04 22:31:43 +02:00
Nikita Karamov d4caf0c1f6
Add Reddit button 2020-07-04 22:24:26 +02:00
Nikita Karamov 58cc6dda84
Add LinkedIn 2020-07-04 22:11:16 +02:00
Nikita Karamov 7a695a6567
Fix border on <button> hover 2020-06-26 17:26:43 +02:00
Nikita Karamov 16a9fabea4
Fix spacing between buttons
The spacing is now consistent and doesn't require whitespace
2020-03-29 23:48:42 +02:00
Nikita Karamov 9b5e4176cd Fix spacing between multiple lines of buttons 2020-03-27 01:13:19 +01:00
Nikita Karamov 526e1fec0d Add OK 2020-03-26 22:55:10 +01:00
Nikita Karamov 373d27d8ff Add VK 2020-03-26 22:55:10 +01:00
Nikita Karamov 6ff7df652a
Add Facebook Messenger 2020-03-26 00:02:41 +01:00
Nikita Karamov 0d1df8b721
Update Telegram color to their website's accent color 2020-03-25 23:42:51 +01:00
Nikita Karamov e21af35925
Update Facebook logo to correct, round version 2020-03-25 23:41:20 +01:00
Nikita Karamov 0868fbb2a2
Add Pinterest 2020-03-25 23:39:04 +01:00
Nikita Karamov 5086d68e9c
Add Facebook 2020-03-25 23:06:55 +01:00
Nikita Karamov 330131239a
Add WhatsApp 2020-03-25 22:45:47 +01:00
Nikita Karamov b3746de13a
Encode strings as URI before passing to method
This should decrease code size
2020-03-25 22:36:13 +01:00
Nikita Karamov 9fa8d31177
Add Twitter 2020-03-25 22:11:45 +01:00
Nikita Karamov 7d07c4fe67
Add Telegram 2020-03-25 22:11:25 +01:00
Nikita Karamov 3023b8d9af
Add default styles for buttons 2020-03-25 21:47:00 +01:00
Nikita Karamov 8574dc0d51
Setup styles build 2020-03-25 18:53:00 +01:00