Create index.html
Browse files- index.html +75 -0
index.html
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Static Image Unscrambling Demo</title>
|
| 7 |
+
<style>
|
| 8 |
+
body {
|
| 9 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
| 10 |
+
line-height: 1.6;
|
| 11 |
+
background-color: #f0f2f5;
|
| 12 |
+
color: #333;
|
| 13 |
+
display: flex;
|
| 14 |
+
justify-content: center;
|
| 15 |
+
align-items: center;
|
| 16 |
+
min-height: 100vh;
|
| 17 |
+
margin: 0;
|
| 18 |
+
padding: 1rem;
|
| 19 |
+
box-sizing: border-box;
|
| 20 |
+
}
|
| 21 |
+
.container {
|
| 22 |
+
max-width: 800px;
|
| 23 |
+
width: 100%;
|
| 24 |
+
background: #fff;
|
| 25 |
+
padding: 2rem;
|
| 26 |
+
border-radius: 12px;
|
| 27 |
+
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
|
| 28 |
+
text-align: center;
|
| 29 |
+
}
|
| 30 |
+
h1 {
|
| 31 |
+
color: #1d4ed8;
|
| 32 |
+
margin-bottom: 0.5rem;
|
| 33 |
+
}
|
| 34 |
+
p {
|
| 35 |
+
color: #555;
|
| 36 |
+
max-width: 600px;
|
| 37 |
+
margin: 0 auto 1.5rem auto;
|
| 38 |
+
}
|
| 39 |
+
.canvas-container {
|
| 40 |
+
border: 2px dashed #ccc;
|
| 41 |
+
padding: 8px;
|
| 42 |
+
border-radius: 8px;
|
| 43 |
+
display: inline-block;
|
| 44 |
+
line-height: 0;
|
| 45 |
+
margin-top: 1rem;
|
| 46 |
+
}
|
| 47 |
+
canvas {
|
| 48 |
+
max-width: 100%;
|
| 49 |
+
height: auto;
|
| 50 |
+
image-rendering: pixelated; /* For sharp pixels on up-scaling */
|
| 51 |
+
}
|
| 52 |
+
#loading-message {
|
| 53 |
+
font-weight: bold;
|
| 54 |
+
color: #888;
|
| 55 |
+
}
|
| 56 |
+
</style>
|
| 57 |
+
</head>
|
| 58 |
+
<body>
|
| 59 |
+
<div class="container">
|
| 60 |
+
<h1>Non-Downloadable Image Demo</h1>
|
| 61 |
+
<p>
|
| 62 |
+
The image below is reconstructed in your browser using JavaScript.
|
| 63 |
+
The server only provided a <strong>scrambled image</strong> and a <strong>map file</strong>.
|
| 64 |
+
The final image exists only on this canvas, preventing a simple "Save Image As...".
|
| 65 |
+
</p>
|
| 66 |
+
<div class="canvas-container">
|
| 67 |
+
<div id="loading-message">Loading assets and unscrambling...</div>
|
| 68 |
+
<canvas id="unscramble-canvas"></canvas>
|
| 69 |
+
</div>
|
| 70 |
+
</div>
|
| 71 |
+
|
| 72 |
+
<!-- The unscrambling logic is in this script -->
|
| 73 |
+
<script src="script.js"></script>
|
| 74 |
+
</body>
|
| 75 |
+
</html>
|