embykeeper commited on
Commit
edd5f3e
·
verified ·
1 Parent(s): bd8d4ed

Create index.html

Browse files
Files changed (1) hide show
  1. index.html +63 -0
index.html ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>重定向提示</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ display: flex;
11
+ flex-direction: column;
12
+ align-items: center;
13
+ justify-content: center;
14
+ height: 100vh;
15
+ margin: 0;
16
+ background-color: #f5f5f5;
17
+ }
18
+ .container {
19
+ text-align: center;
20
+ padding: 20px;
21
+ background-color: white;
22
+ border-radius: 8px;
23
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
24
+ }
25
+ .url {
26
+ margin: 20px 0;
27
+ padding: 10px;
28
+ background-color: #f0f0f0;
29
+ border-radius: 4px;
30
+ cursor: pointer;
31
+ }
32
+ .copied {
33
+ color: #4CAF50;
34
+ display: none;
35
+ margin-top: 10px;
36
+ }
37
+ </style>
38
+ </head>
39
+ <body>
40
+ <div class="container">
41
+ <p>由于该存储库已被限制, 请转到以下URL重新部署:</p>
42
+ <div class="url" id="copyUrl">https://huggingface.co/spaces/embykeeper/ek</div>
43
+ <div class="copied" id="copiedMessage">已复制</div>
44
+ </div>
45
+
46
+ <script>
47
+ const urlElement = document.getElementById('copyUrl');
48
+ const copiedMessage = document.getElementById('copiedMessage');
49
+
50
+ urlElement.addEventListener('click', async () => {
51
+ try {
52
+ await navigator.clipboard.writeText(urlElement.textContent);
53
+ copiedMessage.style.display = 'block';
54
+ setTimeout(() => {
55
+ copiedMessage.style.display = 'none';
56
+ }, 2000);
57
+ } catch (err) {
58
+ console.error('复制失败:', err);
59
+ }
60
+ });
61
+ </script>
62
+ </body>
63
+ </html>