Download script.js from flopro/sf-7e4: direct link, hf CLI and curl.
- Browser
- Download file 1.88 kB
-
https://huggingface.co/spaces/flopro/sf-7e4/resolve/main/script.js
- Command line
-
hf download hf://spaces/flopro/sf-7e4/script.js
-
curl -L -o script.js https://huggingface.co/spaces/flopro/sf-7e4/resolve/main/script.js
1.88 kB
| let converter = () => { | |
| let location = document.getElementById("location-input").value; // get the location input | |
| encodedLocation = encode('location'); // encode the location | |
| let bookRoomWallShelfBookPage = encodedLocation.split("."); // split the location into its components (we only care about the first 5) | |
| let book = bookRoomWallShelfBookPage[0]; | |
| let room = bookRoomWallShelfBookPage[1]; | |
| let wall = bookRoomWallShelfBookPage[2]; | |
| let shelf = bookRoomWallShelfBookPage[3]; | |
| let page = bookRoomWallShelfBookPage[4]; | |
| let bookIndex = getBookIndex(book, room, wall, shelf); | |
| console.log("bookIndex:", bookIndex); | |
| let pages = getBookPages(bookIndex); | |
| console.log("pages:", pages); | |
| let roomIndex = getRoomIndex(room); | |
| console.log("roomIndex:", roomIndex); | |
| let shelfIndex = getShelfIndex(shelf); | |
| console.log("shelfIndex:", shelfIndex); | |
| let wallIndex = getWallIndex(wall); | |
| console.log("wallIndex:", wallIndex); | |
| }; | |
| const encode = (string) = https/stackoverflow.com/ sendo# so- 203294.1352949#ACT=1) |