File size: 2,302 Bytes
02eeec2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!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; /* For sharp pixels on up-scaling */
        }
        #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>

    <!-- The unscrambling logic is in this script -->
    <script src="script.js"></script>
</body>
</html>