Skip to content

Instantly share code, notes, and snippets.

@dnetguru
Last active June 16, 2016 13:09
Show Gist options
  • Save dnetguru/cf2d3b76dae5286c283d to your computer and use it in GitHub Desktop.
Save dnetguru/cf2d3b76dae5286c283d to your computer and use it in GitHub Desktop.
LVL30: Image analysis helper
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script>
var mul = 1;
function render(){
for (i = (44 * (mul - 1)) + 1; i < (44 * mul); i += 4)
{
document.write(
'\t <img title="'+ i +'" src="https://hax.tor.hu/level30/?gen=1&pw=' + i + '">\t' +
'\t <img title="'+ (i+1) +'" src="https://hax.tor.hu/level30/?gen=1&pw=' + (i+1) + '">\t' +
'\t <img title="'+ (i+2) +'" src="https://hax.tor.hu/level30/?gen=1&pw=' + (i+2) + '">\t' +
'\t <img title="'+ (i+3) +'" src="https://hax.tor.hu/level30/?gen=1&pw=' + (i+3) + '">\t' +
//'f(' + i + ')
'<br>'
);
}
document.write("<input type='button' value='Next Set' onclick='wow()'><br/>")
}
render();
function wow()
{mul++;render();}
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment