You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

48 lines
987 B

(function() {
if ( wappalyzer == null ) { return };
var w = wappalyzer;
w.driver = {
/**
* Log messages to console
*/
log: function(args) {
if ( console != null ) { console[args.type](args.message) };
},
/**
* Initialize
*/
init: function() {
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
*/
13 years ago
displayApps: function() {
document.getElementById('apps').innerHTML = '';
13 years ago
w.detected['http://google.com'].map(function(app) {
document.getElementById('apps').innerHTML += '<img src="images/icons/' + app + '.png" width="16" height="16"/> ' + app + '<br/>';
});
},
/**
* Go to URL
*/
goToURL: function(args) {
window.open(args.url);
}
};
w.init();
})();