Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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