|
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<title>Static Image Unscrambling Demo</title> |
|
<style> |
|
body { |
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; |
|
line-height: 1.6; |
|
background-color: #f0f2f5; |
|
color: #333; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
min-height: 100vh; |
|
margin: 0; |
|
padding: 1rem; |
|
box-sizing: border-box; |
|
} |
|
.container { |
|
max-width: 800px; |
|
width: 100%; |
|
background: #fff; |
|
padding: 2rem; |
|
border-radius: 12px; |
|
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); |
|
text-align: center; |
|
} |
|
h1 { |
|
color: #1d4ed8; |
|
margin-bottom: 0.5rem; |
|
} |
|
p { |
|
color: #555; |
|
max-width: 600px; |
|
margin: 0 auto 1.5rem auto; |
|
} |
|
.canvas-container { |
|
border: 2px dashed #ccc; |
|
padding: 8px; |
|
border-radius: 8px; |
|
display: inline-block; |
|
line-height: 0; |
|
margin-top: 1rem; |
|
} |
|
canvas { |
|
max-width: 100%; |
|
height: auto; |
|
image-rendering: pixelated; |
|
} |
|
#loading-message { |
|
font-weight: bold; |
|
color: #888; |
|
} |
|
</style> |
|
</head> |
|
<body> |
|
<div class="container"> |
|
<h1>Non-Downloadable Image Demo</h1> |
|
<p> |
|
The image below is reconstructed in your browser using JavaScript. |
|
The server only provided a <strong>scrambled image</strong> and a <strong>map file</strong>. |
|
The final image exists only on this canvas, preventing a simple "Save Image As...". |
|
</p> |
|
<div class="canvas-container"> |
|
<div id="loading-message">Loading assets and unscrambling...</div> |
|
<canvas id="unscramble-canvas"></canvas> |
|
</div> |
|
</div> |
|
|
|
|
|
<script src="script.js"></script> |
|
</body> |
|
</html> |