Spaces:
Sleeping
Sleeping
Create public/index.html
Browse files- public/index.html +42 -0
public/index.html
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<meta charset="utf-8"/>
|
| 3 |
+
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
| 4 |
+
<title>Bubble Proxy on Spaces</title>
|
| 5 |
+
<style>
|
| 6 |
+
:root{--b:#1f2840;--t:#e9edff;--m:#a8b0d6}
|
| 7 |
+
body{margin:0;font-family:ui-sans-serif,-apple-system,system-ui,Segoe UI,Roboto,Helvetica,Arial;background:linear-gradient(180deg,#0b0f19,#0e1322);color:var(--t)}
|
| 8 |
+
.wrap{max-width:960px;margin:0 auto;padding:24px}
|
| 9 |
+
.card{border:1px solid var(--b);border-radius:18px;background:linear-gradient(180deg,#0f1526,#0b1020);padding:18px;box-shadow:0 12px 36px rgba(0,0,0,.4)}
|
| 10 |
+
h1{font-size:18px;margin:0 0 10px}
|
| 11 |
+
form{display:flex;gap:10px;flex-wrap:wrap}
|
| 12 |
+
input[type=text]{flex:1;min-width:240px;padding:12px 14px;border-radius:12px;border:1px solid var(--b);background:#0e1528;color:#fff}
|
| 13 |
+
button{padding:12px 14px;border:0;border-radius:12px;background:linear-gradient(135deg,#7a6cff,#ff79c6,#00e0ff);color:#0b0f19;font-weight:700;cursor:pointer}
|
| 14 |
+
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
|
| 15 |
+
.chip{padding:8px 10px;border-radius:999px;border:1px dashed var(--b);color:#e9edff;cursor:pointer;background:#11182a99}
|
| 16 |
+
small{color:var(--m)}
|
| 17 |
+
</style>
|
| 18 |
+
<div class="wrap"><div class="card">
|
| 19 |
+
<h1>Bubble Proxy on Hugging Face Spaces</h1>
|
| 20 |
+
<form action="/go" method="post">
|
| 21 |
+
<input id="q" type="text" name="q" placeholder="URL または 検索語(例: https://example.com / 琵琶湖 観光)"/>
|
| 22 |
+
<input type="hidden" name="engine" id="engine" value="ddg"/>
|
| 23 |
+
<button type="submit">いってみる ✨</button>
|
| 24 |
+
</form>
|
| 25 |
+
<div class="chips">
|
| 26 |
+
<div class="chip" onclick="setEngine('ddg', this)" data-eng="ddg">🦆 DuckDuckGo</div>
|
| 27 |
+
<div class="chip" onclick="setEngine('startpg', this)" data-eng="startpg">🕶 Startpage</div>
|
| 28 |
+
<div class="chip" onclick="setEngine('brave', this)" data-eng="brave">🦁 Brave</div>
|
| 29 |
+
<div class="chip" onclick="setEngine('bing', this)" data-eng="bing">🌀 Bing</div>
|
| 30 |
+
<div class="chip" onclick="setEngine('google', this)" data-eng="google">🅶 Google(β/止まるかも)</div>
|
| 31 |
+
</div>
|
| 32 |
+
<p><small>注: ログイン必須・DRM・厳格Bot対策のサイトは動かない場合があります。</small></p>
|
| 33 |
+
</div></div>
|
| 34 |
+
<script>
|
| 35 |
+
function setEngine(code, el){
|
| 36 |
+
document.getElementById('engine').value = code;
|
| 37 |
+
document.querySelectorAll('.chip').forEach(c => c.style.outline = '');
|
| 38 |
+
if(el) el.style.outline = '2px solid #7a6cff';
|
| 39 |
+
if(code==='google'){ alert('GoogleはreCAPTCHA等で止まることがあります(必要な時は直接開いてください)。'); }
|
| 40 |
+
}
|
| 41 |
+
setEngine('ddg', document.querySelector('.chip[data-eng="ddg"]'));
|
| 42 |
+
</script>
|