1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

field icon and open popup

This commit is contained in:
Kyle Spearrin
2016-09-29 00:14:15 -04:00
parent bbb78bee02
commit 7cc2961b23
3 changed files with 81 additions and 12 deletions

View File

@@ -23,12 +23,16 @@
var iframe = document.createElement('iframe');
iframe.src = chrome.extension.getURL('overlay/popup.html');
iframe.style.cssText = 'height: 200px; width: 250px; border: 2px solid #000;; position: absolute; visibility: visible; left: ' + left + '; top: ' + top + '; z-index: 999999999;';
iframe.style.cssText = 'height: 200px; width: 250px; border: 2px solid #000;; position: absolute; visibility: visible;' +
'left: ' + left + 'px; top: ' + top + 'px; z-index: 999999999;';
iframe.id = 'bit-overlay-popup';
document.body.insertBefore(iframe, document.body.lastChild);
}
function closePopup() {
document.getElementById('bit-overlay-popup').remove();
var el = document.getElementById('bit-overlay-popup');
if (el) {
el.parentElement.removeChild(el);
}
}
})();