Created
October 22, 2021 10:00
-
-
Save frankmeeuwsen/209c02409cadca42de466744beb8bff2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s3images=JSON.parse(http.readUrl("https://s3link/to/your/logfile.json",true)); | |
var allimages=""; | |
console.log(s3images); | |
for (i=0;i<s3images["actions"].length;i++){ | |
console.log(s3images["actions"][i]["url"]); | |
if(s3images["actions"][i]["url"] !== undefined && s3images["actions"][i]["url"].substring(0,8) === 'https://'){ | |
var link=s3images['actions'][i]['url']; | |
var html="<img class='s3images' src='"+link+"' onclick='prompt(\"copy\",\""+link+"\");' >"; | |
allimages=allimages+html; | |
}; | |
}; | |
$("#idImageBrowserDialog").modal ("show"); | |
$("#idImageBrowser").html (allimages); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment