Commit Graph

14 Commits

Author SHA1 Message Date
639ccb7c88
Removed a junk from captcha_refresh.js. 2022-10-26 01:50:47 +04:00
d35d7e0803
Reduced size for CAPTCHA js code. 2022-10-24 23:09:07 +04:00
0f9c658d10
Reduced a size of a code for a mindflow. Removed check for empty name property because there's no plans to add more buttons. Click handler function defined outside to eliminate definition of many same functions. Used for ... of instead of traditional for for code reduce and it doesn't drastically affect performance actually. Especially at such low array sizes. Used force arg of a toggle method to reduce code. 2022-10-24 23:06:24 +04:00
7026ee68c1
Added /api/ prefix to CAPTCHA API URL. 2022-10-21 02:10:43 +04:00
95c46d824e
Converted spaces to tabs to reduce file sizes. 2022-10-19 21:20:34 +04:00
3891945371
Added ?remove params to clean up fetches to not receive 403 error code. 2022-10-19 21:06:31 +04:00
7c39ad7c3c
Added CAPTCHA's styling based on prefers-color-scheme media query. 2022-10-19 21:05:24 +04:00
cae70d6c20
Placed g_captcha_timeout_remain next to g_current_captcha_id for better view. :) 2022-09-23 00:36:43 +04:00
f56ad5963a
Removed unnecessary const categories array and a local const category. 2022-09-19 22:01:40 +04:00
6f45549b73
hasAttribute() works not like I thought. Here just a comparison with a string is needed. 2022-08-31 08:29:31 +04:00
024befeb33
Implemented filtering for mindflow categories. 2022-08-31 08:06:45 +04:00
b6edda4482
Added onunload event listener to tell a server to delete an unneeded CAPTCHA. Removed a comment. Moved = sign on line with an innerHTML. 2022-08-29 22:57:46 +04:00
f24ad3d883
Made a fully working captcha refreshing script. 2022-08-27 04:21:15 +04:00
79055470a3
A JS script for CAPTCHA refreshing. 2022-08-25 03:24:52 +04:00