This repository was archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml-code-sniffer.js
More file actions
23 lines (20 loc) · 1.48 KB
/
html-code-sniffer.js
File metadata and controls
23 lines (20 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// javascript:(function()%20{var%20_p='//squizlabs.github.io/HTML_CodeSniffer/build/';var%20_i=function(s,cb)%20{var%20sc=document.createElement('script');sc.onload%20=%20function()%20{sc.onload%20=%20null;sc.onreadystatechange%20=%20null;cb.call(this);};sc.onreadystatechange%20=%20function(){if(/^(complete|loaded)$/.test(this.readyState)%20===%20true){sc.onreadystatechange%20=%20null;sc.onload();}};sc.src=s;if%20(document.head)%20{document.head.appendChild(sc);}%20else%20{document.getElementsByTagName('head')[0].appendChild(sc);}};%20var%20options={path:_p};_i(_p+'HTMLCS.js',function(){HTMLCSAuditor.run('WCAG2AA',null,options);});})();
// Javascript
(
function() {
var _p = '//squizlabs.github.io/HTML_CodeSniffer/build/';
var _i = function(s, cb) {
var sc = document.createElement('script');
sc.onload = function() { sc.onload = null;
sc.onreadystatechange = null;
cb.call(this); };
sc.onreadystatechange = function() {
if (/^(complete|loaded)$/.test(this.readyState) === true) { sc.onreadystatechange = null;
sc.onload(); } };
sc.src = s;
if (document.head) { document.head.appendChild(sc); } else { document.getElementsByTagName('head')[0].appendChild(sc); } };
var options = { path: _p };
_i(_p + 'HTMLCS.js', function() { HTMLCSAuditor.run('WCAG2AA', null, options); });
}
)();
// squizlabs.github.io/HTML_CodeSniffer/build/HTMLCS.js