awacke1 commited on
Commit
26360ff
1 Parent(s): 0812839

Update index.html

Browse files
Files changed (1) hide show
  1. 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}" loading="lazy"/>`;
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}" loading="lazy"/></a>`;
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
  }