Spaces:
Running
Running
Upload index.html with huggingface_hub
Browse files- index.html +25 -19
index.html
CHANGED
@@ -1,19 +1,25 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|