forked from dantarakan/Image-Scramble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (33 loc) · 1.74 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<title>Scramble demo</title>
<style type="text/css">
.content *
{
display:block;margin-left:auto;margin-right:auto;
text-align: center;
}
</style>
</head>
<body>
<a href="https://github.com/dantarakan/Image-Scramble"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://github-camo.global.ssl.fastly.net/652c5b9acfaddf3a9c326fa6bde407b87f7be0f4/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"></a>
<div class="content">
<h1>Demo image scramble/unscramble.</h1>
<h3>Use matrix of size 29 to unscramble default image.</h3>
<h3>For larger matrix sizes the process takes from a few minutes to a few hours, so be patient.</h3>
<h3>For reference, default image takes 1 minute to unscramble on a desktop.</h3>
<input type="file" id="picField" onchange="preview(this)">
<h4 style="display:inline-block;margin-left:38%;margin-bottom:20px">Matrix size:</h4>
<input type="text" width="100px" id="number" style="display:inline-block;">
<button type="button" onclick="unscramble()" style="display:inline-block">Unscramble</button>
<button type="button" onclick="scramble()" style="display:inline-block">Scramble</button>
<INPUT TYPE="button" onClick="history.go(0)" VALUE="Refresh" style="margin-bottom:20px">
<h3 id="status"></h3>
<img id="myImage" src="scrambled.bmp">
</div>
<canvas id="myCanvas" style="display:none"></canvas>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="index.js"></script>
</body>
</html>