Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new version added with some improvements #22

Merged
merged 32 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5a7f03b
Update README.md
PrabothCharith Apr 28, 2024
798976b
responsive issue fixed
PrabothCharith Apr 29, 2024
ce95572
class changed to id
PrabothCharith Apr 29, 2024
478e81c
icons changed
PrabothCharith Apr 29, 2024
aca4c34
text color not showing on some website issue fixed
PrabothCharith Apr 29, 2024
1886c76
after refresh 2-cursor triangle not loading issue fixed
PrabothCharith Apr 29, 2024
d70ff7d
after refresh active stage (1,2,3) show added
PrabothCharith Apr 29, 2024
4010fdf
fixed triangle cursor added (pre-created)
PrabothCharith Apr 29, 2024
60a865c
'reset all button' css style code position changed
PrabothCharith Apr 29, 2024
3cb86b8
code reformatted and some responsive issues fixed
PrabothCharith Apr 29, 2024
1b934d8
version change commit
PrabothCharith Apr 29, 2024
1e6bbb8
min.js file update and code formatted
PrabothCharith Apr 29, 2024
a548703
icon duplicate issue fixed
PrabothCharith Apr 29, 2024
c87a704
user select removed
PrabothCharith Apr 29, 2024
37cefe6
modal scrollbar colour changed
PrabothCharith Apr 29, 2024
5c84f73
Update README.md
PrabothCharith May 1, 2024
e170c55
code reordered
PrabothCharith May 1, 2024
2a1ad22
min.js code updated
PrabothCharith May 1, 2024
e60aa93
Merge branch 'main' into dev
PrabothCharith May 1, 2024
c0fee7f
alignment issue fixed
PrabothCharith Apr 30, 2024
feb80b1
cursor (focus reading and underline) not working issue fixed
PrabothCharith Apr 30, 2024
7e7c210
keywords updated
PrabothCharith May 2, 2024
5bffb38
cursor (focus reading and underline) not working issue fixed - min.js
PrabothCharith May 2, 2024
79c713c
Merge branch 'main' into dev
PrabothCharith May 2, 2024
9310425
cursor hover effect issue fixed
PrabothCharith May 6, 2024
447866a
triangle cursor remove (hidden) optimized
PrabothCharith May 6, 2024
4c18a63
triangle cursor remove changed to hidden
PrabothCharith May 6, 2024
24a623b
comment added
PrabothCharith May 6, 2024
81eb63d
counts set to 0
PrabothCharith May 6, 2024
3161fda
min.js created with changed previously mention
PrabothCharith May 6, 2024
df92d40
new version added with some improvements
PrabothCharith May 6, 2024
06b1477
Merge branch 'main' into dev
PrabothCharith May 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions accessibility-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,9 @@ document.addEventListener("DOMContentLoaded", function() {
const item = document.querySelector('#change-cursor');
const cursor = document.querySelector('#cursor');
const triangle = document.getElementById('triangle-cursor');
triangle.style.display = 'none';
if (triangle) {
triangle.style.display = 'none';
}

if (cursorClickCount === 3) {
cursorClickCount = 0;
Expand Down Expand Up @@ -1530,11 +1532,13 @@ document.addEventListener("DOMContentLoaded", function() {
a.addEventListener('mouseover', () => {
if (cursor.classList.contains('cursor-0')) {
cursor.style.width = '100px';
cursor.style.height = '100px';
}
});
a.addEventListener('mouseleave', () => {
if (cursor.classList.contains('cursor-0')) {
cursor.style.width = '50px';
cursor.style.height = '50px';
}
});
});
Expand Down Expand Up @@ -1566,9 +1570,11 @@ document.addEventListener("DOMContentLoaded", function() {
cursor.classList.remove('cursor-1');
cursor.classList.remove('cursor-2');
docElement.style.cursor = '';

//reset the cursor
const triangle = document.getElementById('triangle-cursor');
if (triangle) {
triangle.remove();
triangle.style.display = 'none';
}

//reset the progress bar
Expand All @@ -1583,6 +1589,16 @@ document.addEventListener("DOMContentLoaded", function() {
icon.style.fill = 'var(--acc_color_1)';
});
});

// reset all counts to 0
saturationClickCount = 0;
underlineClickCount = 0;
fontSizeClickCount = 0;
lineHeightClickCount = 0;
letterSpacingClickCount = 0;
textAlignClickCount = 0;
contrastClickCount = 0;
cursorClickCount = 0;
});

//save the user's settings in local storage
Expand Down
Loading