Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from valx76/master
Added a submenu to update the W3C validation manually
- Loading branch information
Showing
4 changed files
with
79 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
var W3CValidator = (function() { | ||
|
||
var W3CURL = "http://validator.w3.org/check"; | ||
|
||
return { | ||
|
||
validate:function(str,cb) { | ||
$.post(W3CURL, { | ||
"fragment":str, | ||
"output":"json" | ||
}, function(res,code) { | ||
cb(res); | ||
}); | ||
} | ||
|
||
var W3CValidator = (function() { | ||
var W3CURL = "http://validator.w3.org/check"; | ||
|
||
return { | ||
validate:function(str,cb) { | ||
$.post(W3CURL, { | ||
"fragment":str, | ||
"output":"json" | ||
}, function(res,code) { | ||
cb(res); | ||
}); | ||
} | ||
}; | ||
|
||
}()); | ||
}()); |