Download index.html from Songyou/LLM-front: direct link, hf CLI and curl.
- Browser
- Download file 908 Bytes
-
https://huggingface.co/spaces/Songyou/LLM-front/resolve/main/index.html
- Command line
-
hf download hf://spaces/Songyou/LLM-front/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Songyou/LLM-front/resolve/main/index.html
908 Bytes
| <html lang="zh-CN"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Ketcher 集成测试</title> | |
| <style> | |
| /* 自定义 Ketcher 容器的样式 */ | |
| #ketcher-container { | |
| width: 800px; | |
| height: 600px; | |
| border: 1px solid #ccc; | |
| margin: 20px auto; | |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | |
| border-radius: 8px; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="ketcher-container"> | |
| <iframe id="ifKetcher" src="/ketcher/index.html" width="800" height="600"></iframe> | |
| </div> | |
| <script> | |
| setTimeout(() => { | |
| var iframe = document.getElementById("ifKetcher"); | |
| // 访问iframe的window对象 | |
| var ketcherWindow = iframe.contentWindow; | |
| var ketcher = ketcherWindow.ketcher; | |
| ketcher.setMolecule('c1ccccc1'); | |
| console.log('set mol!') | |
| }, 2e3) | |
| </script> | |
| </body> | |
| </html> |