-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
123 lines (110 loc) · 4.96 KB
/
Copy pathindex.html
File metadata and controls
123 lines (110 loc) · 4.96 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Little Cloud Proxy</title>
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- ── TOP BAR ── -->
<div id="bar">
<button id="logo" title="Home">
<img src="favicon.png" id="logo-img" alt="Little Cloud Proxy">
<div id="logo-text">
<strong>Little Cloud</strong>
<small>Proxy</small>
</div>
</button>
<button class="nb" id="back-btn" title="Back" disabled>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="15 18 9 12 15 6"/>
</svg>
</button>
<button class="nb" id="fwd-btn" title="Forward" disabled>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"/>
</svg>
</button>
<button class="nb" id="refresh-btn" title="Reload">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="23 4 23 10 17 10"/>
<polyline points="1 20 1 14 7 14"/>
<path d="M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15"/>
</svg>
</button>
<div id="url-wrap">
<span id="lock-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="11" width="18" height="11" rx="2"/>
<path d="M7 11V7a5 5 0 0110 0v4"/>
</svg>
</span>
<input id="url-input" type="text" placeholder="Where shall we float today?" autocomplete="off" spellcheck="false"/>
<button id="go-btn"><span class="go-cloud">☁</span> FLY</button>
</div>
<div id="pill">—</div>
<button id="open-btn" title="Open in new tab">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"/>
<polyline points="15 3 21 3 21 9"/>
<line x1="10" y1="14" x2="21" y2="3"/>
</svg>
</button>
</div>
<!-- ── MAIN ── -->
<div id="frame-wrap">
<div id="load-bar"></div>
<!-- SPLASH -->
<div id="splash">
<div class="bg-cloud bc1"></div>
<div class="bg-cloud bc2"></div>
<div class="bg-cloud bc3"></div>
<div class="bg-cloud bc4"></div>
<div class="bg-cloud bc5"></div>
<div class="bg-cloud bc6"></div>
<div class="bg-cloud bc7"></div>
<div class="bg-cloud bc8"></div>
<div class="bg-cloud bc9"></div>
<div class="bg-cloud bc10"></div>
<div class="hero-wrap">
<img src="favicon.png" class="hero-img" alt="Little Cloud">
</div>
<h1>Little Cloud <span>Proxy</span></h1>
<p class="tagline">Floating above the web, one page at a time ✦</p>
<div class="qlinks">
<a class="ql" data-url="https://google.com">google.com</a>
<a class="ql" data-url="https://wikipedia.org">wikipedia.org</a>
<a class="ql" data-url="https://news.ycombinator.com">hacker news</a>
<a class="ql" data-url="https://reddit.com">reddit.com</a>
<a class="ql" data-url="https://github.com">github.com</a>
<a class="ql" data-url="https://duckduckgo.com">duckduckgo</a>
</div>
</div>
<!-- BLOCKED -->
<div id="blocked">
<svg class="rain-icon" viewBox="0 0 120 90" xmlns="http://www.w3.org/2000/svg">
<path d="M94 62 Q64 64 46 56 Q26 56 20 46 Q8 45 6 35 Q2 32 2 24 Q2 14 12 12 Q15 5 26 4 Q38 0 50 7 Q62 2 72 9 Q86 4 94 13 Q106 10 112 20 Q118 22 118 32 Q118 44 104 50 Q100 62 94 62Z" fill="#b0c8e8" stroke="#2a4a7a" stroke-width="2.5" stroke-linejoin="round"/>
<path d="M14 22 Q30 15 46 20 Q62 14 78 19 Q92 13 108 20" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" opacity="0.7"/>
<path d="M8 36 Q36 44 72 42 Q94 44 116 36" fill="none" stroke="#7ab8e8" stroke-width="2" stroke-linecap="round" opacity="0.8"/>
<line x1="32" y1="72" x2="26" y2="86" stroke="#6ab0e0" stroke-width="3" stroke-linecap="round" class="drop d1"/>
<line x1="52" y1="70" x2="46" y2="84" stroke="#6ab0e0" stroke-width="3" stroke-linecap="round" class="drop d2"/>
<line x1="72" y1="72" x2="66" y2="86" stroke="#6ab0e0" stroke-width="3" stroke-linecap="round" class="drop d3"/>
<line x1="92" y1="70" x2="86" y2="84" stroke="#6ab0e0" stroke-width="3" stroke-linecap="round" class="drop d4"/>
</svg>
<h2>This cloud got rained out</h2>
<p>
The site is blocking embedding with <code>X-Frame-Options</code> or
<code>Content-Security-Policy: frame-ancestors</code>.
Make sure your Cloudflare Worker strips those headers from responses.
</p>
<button id="ext-btn">Open directly ↗</button>
</div>
<iframe id="proxy-frame"
sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox"
></iframe>
</div>
<script src="proxy.js"></script>
</body>
</html>