Spaces:
Running
Running
Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
@@ -444,12 +444,12 @@
|
|
444 |
if(dataSource === "local") {
|
445 |
let handle = await getFileHandleByPath(path);
|
446 |
let url = URL.createObjectURL(await handle.getFile());
|
447 |
-
resultHtml += `<img src="${url}" style="max-height:400px;" title="${path}: ${score}"
|
448 |
}
|
449 |
if(dataSource === "reddit") {
|
450 |
let imageUrl = `https://i.redd.it/${path.split("__")[1]}`;
|
451 |
let postUrl = `https://reddit.com/comments/${path.split("__")[0].split("/")[1]}`;
|
452 |
-
resultHtml += `<a href="${postUrl}" target="_blank"><img src="${imageUrl}" onload="this.style.height='';this.style.width='';this.style.border='';" style="max-height:400px; height:300px; width:300px; border:1px solid black;" title="${path}: ${score}"
|
453 |
}
|
454 |
numResults++;
|
455 |
}
|
|
|
444 |
if(dataSource === "local") {
|
445 |
let handle = await getFileHandleByPath(path);
|
446 |
let url = URL.createObjectURL(await handle.getFile());
|
447 |
+
resultHtml += `<img src="${url}" style="max-height:400px;" title="${path}: ${score}"/>`;
|
448 |
}
|
449 |
if(dataSource === "reddit") {
|
450 |
let imageUrl = `https://i.redd.it/${path.split("__")[1]}`;
|
451 |
let postUrl = `https://reddit.com/comments/${path.split("__")[0].split("/")[1]}`;
|
452 |
+
resultHtml += `<a href="${postUrl}" target="_blank"><img src="${imageUrl}" onload="this.style.height='';this.style.width='';this.style.border='';" style="max-height:400px; height:300px; width:300px; border:1px solid black;" title="${path}: ${score}" /></a>`;
|
453 |
}
|
454 |
numResults++;
|
455 |
}
|