vansin commited on
Commit
3b19bce
·
verified ·
1 Parent(s): 2f22b7c

Upload index.html with huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +25 -19
index.html CHANGED
@@ -1,19 +1,25 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
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>PaperScope AI - 签到</title>
7
+ <style>
8
+ *{margin:0;padding:0;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}
9
+ body,html{height:100%}
10
+ body{display:flex;background:#f5f7fa}
11
+ iframe{flex:1;border:none}
12
+ </style>
13
+ </head>
14
+ <body>
15
+ <iframe id="mainFrame" src="https://www.paperscope.ai/"></iframe>
16
+ <script>
17
+ const url=new URLSearchParams(location.search);
18
+ const hf=url.get('huggingface_space');
19
+ if(hf){
20
+ const iframe=document.getElementById('mainFrame');
21
+ iframe.src='https://www.paperscope.ai/?huggingface_space='+encodeURIComponent(hf);
22
+ }
23
+ </script>
24
+ </body>
25
+ </html>