Muhnad/a11y-checker

pass url to js to get results

Closed this issue · 1 comments

HI,
the checker check the page where the js file is included. but how we can pass some url to js file and get the results without including the file to each page.

Thanks

Hi @foxpcteam

unfortunately, this option does not exist yet, maybe in the new update will add it.

but you can make this to check all pages:

  • if you have a main script file included in all .html files you can add this lines to main script file to include the a11y.js in all pages.
const a11yScript= document.createElement('script');
a11yScript.src = 'https://cdn.rawgit.com/Muhnad/a11y-checker/master/a11y.js';
document.body.appendChild(a11yScript);