Webpage: Move preview image outside the link.

This commit is contained in:
ccd0 2015-03-12 01:08:45 -07:00
parent ff32f7a37c
commit 7541ac6131
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ function imagePreview() {
var span = document.createElement('span'); var span = document.createElement('span');
span.className = 'hover'; span.className = 'hover';
span.appendChild(img); span.appendChild(img);
this.appendChild(span); this.parentNode.insertBefore(span, this.nextSibling);
} }
function storeInstall(e) { function storeInstall(e) {
if (!e.shiftKey && !e.altKey && !e.ctrlKey && !e.metaKey && e.button === 0) { if (!e.shiftKey && !e.altKey && !e.ctrlKey && !e.metaKey && e.button === 0) {

View File

@ -46,7 +46,7 @@ a.screenshot > img {
span.hover { span.hover {
display: none; display: none;
} }
a:hover > span.hover { a:hover + span.hover {
display: block; display: block;
position: fixed; position: fixed;
top: 0; top: 0;