Fixed HTML driver

main
Elbert Alias 11 years ago
parent 2875e64cb0
commit 0dc0cd6c11

@ -27,28 +27,32 @@
w.categories = json.categories; w.categories = json.categories;
w.apps = json.apps; w.apps = json.apps;
window.document.addEventListener('DOMContentLoaded', function() {
w.analyze('google.com', 'http://google.com', {
html: '<script src="jquery.js"><meta name="generator" content="WordPress"/>',
headers: { 'Server': 'Apache' },
env: [ 'Mootools' ]
});
});
}; };
xhr.send(null); xhr.send(null);
window.document.addEventListener('DOMContentLoaded', function() {
w.analyze('google.com', 'http://google.com', {
html: '<script src="jquery.js"><meta name="generator" content="WordPress"/>',
headers: { 'Server': 'Apache' },
env: [ 'Mootools' ]
});
});
}, },
/** /**
* Display apps * Display apps
*/ */
displayApps: function() { displayApps: function() {
var
app,
url = Object.keys(w.detected)[0];
document.getElementById('apps').innerHTML = ''; document.getElementById('apps').innerHTML = '';
w.detected['http://google.com'].forEach(function(app) { for ( app in w.detected[url] ) {
document.getElementById('apps').innerHTML += '<img src="images/icons/' + app + '.png" width="16" height="16"/> ' + app + '<br/>'; document.getElementById('apps').innerHTML += '<img src="images/icons/' + app + '.png" width="16" height="16"/> ' + app + '<br/>';
}); };
}, },
/** /**

@ -1111,7 +1111,7 @@
"env": "^prettyPrint$" "env": "^prettyPrint$"
}, },
"Google Font API": { "Google Font API": {
"website": "code.google.com/apis/webfonts", "website": "google.com/fonts",
"cats": [ 17 ], "cats": [ 17 ],
"script": "googleapis\\.com/.+webfont", "script": "googleapis\\.com/.+webfont",
"html": "<link[^>]* href=[^>]+fonts\\.(?:googleapis|google)\\.com", "html": "<link[^>]* href=[^>]+fonts\\.(?:googleapis|google)\\.com",
@ -2018,6 +2018,12 @@
"cats": [ 10 ], "cats": [ 10 ],
"html": "sitestat\\(\".+nl\\.sitestat\\.com" "html": "sitestat\\(\".+nl\\.sitestat\\.com"
}, },
"Nepso": {
"website": "nepso.com",
"cats": [ 1 ],
"headers": [ "X-Powered-CMS": "Nepso" ],
"implies": [ "Python", "Perl", "Java", "PHP" ]
},
"Netmonitor": { "Netmonitor": {
"website": "netmonitor.fi/en", "website": "netmonitor.fi/en",
"cats": [ 10 ], "cats": [ 10 ],

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB