ElbertF 13 years ago
parent d0954b4f81
commit 8e3cffde2d

@ -33,8 +33,8 @@
iframe.setAttribute('id', 'wappalyzer-bookmarklet'); iframe.setAttribute('id', 'wappalyzer-bookmarklet');
iframe.setAttribute('allowTransparency', 'yes'); iframe.setAttribute('allowTransparency', 'yes');
iframe.setAttribute('frameborder', 'no'); iframe.setAttribute('frameborder', 'no');
iframe.setAttribute('height', '400'); iframe.setAttribute('height', '10');
iframe.setAttribute('src', 'index.html'); iframe.setAttribute('src', 'http://wappalyzer.com/bookmarklet/2/index.html');
iframe.setAttribute('width', '220'); iframe.setAttribute('width', '220');
iframe.setAttribute('style', ' iframe.setAttribute('style', '
margin: 0 0 20px 20px; margin: 0 0 20px 20px;

@ -1,26 +1,30 @@
html {
overflow: hidden;
}
body { body {
color: #000; color: #000;
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
font-size: 13px; font-size: 13px;
line-height: 1.4em; line-height: 1.5em;
margin: 0; margin: 0;
padding: 10px 0;
} }
#overlay { #overlay {
background: #000; background: #000;
border-radius: 10px; border-radius: 7px;
-moz-border-radius: 10px; -moz-border-radius: 7px;
-webkit-border-radius: 10px; -webkit-border-radius: 7px;
left: 0; left: 0;
height: 100%; height: 100%;
opacity: .5; filter: alpha(opacity = 50); opacity: .2; filter: alpha(opacity = 20);
position: absolute; position: absolute;
top: 0; top: 0;
width: 100%; width: 100%;
} }
#apps { #apps {
padding-top: 2px;
position: absolute; position: absolute;
width: 100%; width: 100%;
} }
@ -36,7 +40,7 @@ body {
} }
#apps a:hover { #apps a:hover {
color: #f90; color: #0072B6;
} }
#apps .app, #apps #close { #apps .app, #apps #close {
@ -44,7 +48,7 @@ body {
border-radius: 5px; border-radius: 5px;
-moz-border-radius: 5px; -moz-border-radius: 5px;
-webkit-border-radius: 5px; -webkit-border-radius: 5px;
margin: 0 10px 2px 10px; margin: 0 2px 2px 2px;
padding: 7px 10px; padding: 7px 10px;
} }
@ -52,6 +56,10 @@ body {
margin-bottom: 3px; margin-bottom: 3px;
} }
#apps .category {
color: #999;
}
#apps #close { #apps #close {
font-size: 12px; font-size: 12px;
font-weight: bold; font-weight: bold;

@ -2,6 +2,8 @@
<head> <head>
<link rel="stylesheet" type="text/css" href="css/wappalyzer.css"/> <link rel="stylesheet" type="text/css" href="css/wappalyzer.css"/>
<script type="text/javascript" src="js/lib/jquery.min.js"></script>
<script type="text/javascript" src="js/wappalyzer.js"></script> <script type="text/javascript" src="js/wappalyzer.js"></script>
<script type="text/javascript" src="js/apps.js"></script> <script type="text/javascript" src="js/apps.js"></script>
<script type="text/javascript" src="js/driver.js"></script> <script type="text/javascript" src="js/driver.js"></script>

@ -33,11 +33,7 @@
displayApps: function() { displayApps: function() {
var url = top.location.href; var url = top.location.href;
document.getElementById('apps').innerHTML = $('#apps').html('<a id="close" href="javascript: $(\'#wappalyzer-bookmarklet\', top.document.body).remove();">Close</a>');
'<a id="close" href="javascript: top.document.body.removeChild(top.document.getElementById(\'wappalyzer-bookmarklet\')); void(0);">' +
'Close' +
'</a>'
;
if ( w.detected[url] != null && w.detected[url].length ) { if ( w.detected[url] != null && w.detected[url].length ) {
w.detected[url].map(function(app, i) { w.detected[url].map(function(app, i) {
@ -59,10 +55,14 @@
} }
html += '</div>'; html += '</div>';
document.getElementById('apps').innerHTML += html;
}); });
} else {
html = '<div class="app first" style="text-align: center;"><em>No applications detected</em></div>';
} }
$('#apps').append(html);
$('#wappalyzer-bookmarklet', top.document.body).height($('#apps').height() + 2);
}, },
/** /**

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Loading…
Cancel
Save