but menu button in front
This commit is contained in:
parent
d917496257
commit
42c349f4b1
8
a11y.js
8
a11y.js
@ -9,7 +9,7 @@ accessibilityBtn.style.color = '#ffffff';
|
|||||||
accessibilityBtn.style.padding = '10px 15px';
|
accessibilityBtn.style.padding = '10px 15px';
|
||||||
accessibilityBtn.style.borderRadius = '5px';
|
accessibilityBtn.style.borderRadius = '5px';
|
||||||
accessibilityBtn.style.cursor = 'pointer';
|
accessibilityBtn.style.cursor = 'pointer';
|
||||||
|
accessibilityBtn.style.zIndex = '1000';
|
||||||
|
|
||||||
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
||||||
svg.innerHTML = '<path d="M50 .8c5.7 0 10.4 4.7 10.4 10.4S55.7 21.6 50 21.6s-10.4-4.7-10.4-10.4S44.3.8 50 .8zM92.2 32l-21.9 2.3c-2.6.3-4.6 2.5-4.6 5.2V94c0 2.9-2.3 5.2-5.2 5.2H60c-2.7 0-4.9-2.1-5.2-4.7l-2.2-24.7c-.1-1.5-1.4-2.5-2.8-2.4-1.3 .1-2.2 1.1-2.4 2.4l-2.2 24.7c-.2 2.7-2.5 4.7-5.2 4.7h-.5c-2.9 0-5.2-2.3-5.2-5.2V39.4c0-2.7-2-4.9-4.6-5.2L7.8 32c-2.6-.3-4.6-2.5-4.6-5.2v-.5c0-2.6 2.1-4.7 4.7-4.7h .5c19.3 1.8 33.2 2.8 41.7 2.8s22.4-.9 41.7-2.8c2.6-.2 4.9 1.6 5.2 4.3v1c-.1 2.6-2 .8 -3 .8z"></path>';
|
svg.innerHTML = '<path d="M50 .8c5.7 0 10.4 4.7 10.4 10.4S55.7 21.6 50 21.6s-10.4-4.7-10.4-10.4S44.3.8 50 .8zM92.2 32l-21.9 2.3c-2.6.3-4.6 2.5-4.6 5.2V94c0 2.9-2.3 5.2-5.2 5.2H60c-2.7 0-4.9-2.1-5.2-4.7l-2.2-24.7c-.1-1.5-1.4-2.5-2.8-2.4-1.3 .1-2.2 1.1-2.4 2.4l-2.2 24.7c-.2 2.7-2.5 4.7-5.2 4.7h-.5c-2.9 0-5.2-2.3-5.2-5.2V39.4c0-2.7-2-4.9-4.6-5.2L7.8 32c-2.6-.3-4.6-2.5-4.6-5.2v-.5c0-2.6 2.1-4.7 4.7-4.7h .5c19.3 1.8 33.2 2.8 41.7 2.8s22.4-.9 41.7-2.8c2.6-.2 4.9 1.6 5.2 4.3v1c-.1 2.6-2 .8 -3 .8z"></path>';
|
||||||
@ -68,7 +68,7 @@ document.querySelectorAll('#accessibility-menu button').forEach((button, index)
|
|||||||
document.body.style.filter = 'invert(100%)';
|
document.body.style.filter = 'invert(100%)';
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
document.body.classList.add('opendyslexic');
|
document.body.classList.add('opendyslexic');
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
document.body.style.fontSize = '1.2em';
|
document.body.style.fontSize = '1.2em';
|
||||||
@ -76,8 +76,8 @@ document.querySelectorAll('#accessibility-menu button').forEach((button, index)
|
|||||||
document.body.style.filter = 'invert(0%)';
|
document.body.style.filter = 'invert(0%)';
|
||||||
document.body.style.fontFamily = 'Source Sans Pro';
|
document.body.style.fontFamily = 'Source Sans Pro';
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
window.open("https://github.com/td00/a11y");
|
window.open("https://github.com/td00/a11y");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user