From 4c3c20a9812cbf78bc8ccfaa178beee5086669c1 Mon Sep 17 00:00:00 2001 From: sverhoeven Date: Fri, 20 Sep 2024 09:50:00 +0200 Subject: [PATCH] Use local pdb files + add web server instruction --- README.md | 2 +- example-offline.html | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fcba508..bad8510 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ pnpm build See [example-offline.html](example-offline.html) for an example of how to use the offline version. -To prevent CORS issues, the html, css and js files should be served from the same http server. +To prevent CORS issues, the html, css and js files should be served from the same http server like with `python3 -m http.server` and visit http://localhost:8000/example-offline.html. ### Embedded diff --git a/example-offline.html b/example-offline.html index 8cdde90..6de5c35 100644 --- a/example-offline.html +++ b/example-offline.html @@ -28,10 +28,10 @@ "vdw": { "mean": -2.98, "std": 9.17 }, "ilrmsd": { "mean": -2.98, "std": 9.17 }, "bsa": { "mean": -2.98, "std": 9.17 }, - "best1": "https://files.rcsb.org/download/2OOB.pdb.gz", - "best2": "https://files.rcsb.org/download/2OOA.pdb.gz", - "best3": "https://files.rcsb.org/download/2OOA.pdb.gz", - "best4": "https://files.rcsb.org/download/2OOA.pdb.gz" + "best1": "stories/assets/2oob.pdb", + "best2": "stories/assets/4o8j.pdb", + "best3": "stories/assets/target.pdb", + "best4": "stories/assets/2oob.pdb" }, { "rank": 2, @@ -48,9 +48,9 @@ "vdw": { "mean": -1.23, "std": 8.77 }, "ilrmsd": { "mean": -1.34, "std": 0 }, "bsa": { "mean": -2.978, "std": 0 }, - "best1": "https://files.rcsb.org/download/2OOB.pdb.gz", - "best2": "https://files.rcsb.org/download/2OOA.pdb.gz", - "best3": "https://files.rcsb.org/download/2OOA.pdb.gz", + "best1": "stories/assets/2oob.pdb", + "best2": "stories/assets/4o8j.pdb", + "best3": "stories/assets/target.pdb", "best4": "" } ],