Spaces:
Running
Running
Download algospaced-ui/dist/loader-init.js from iamfebin/algospaced-dsa: direct link, hf CLI and curl.
- Browser
- Download file 642 Bytes
-
https://huggingface.co/spaces/iamfebin/algospaced-dsa/resolve/main/algospaced-ui/dist/loader-init.js
- Command line
-
hf download hf://spaces/iamfebin/algospaced-dsa/algospaced-ui/dist/loader-init.js
-
curl -L -o loader-init.js https://huggingface.co/spaces/iamfebin/algospaced-dsa/resolve/main/algospaced-ui/dist/loader-init.js
642 Bytes
| /** | |
| * Early workspace wallpaper initialization for skeleton screen. | |
| * Encapsulated in an external static script to eliminate inline scripts | |
| * and uphold a strict Content Security Policy (no 'unsafe-inline' in script-src). | |
| */ | |
| (function () { | |
| try { | |
| var bgUrl = localStorage.getItem('desktopWallpaperUrl'); | |
| if (!bgUrl || bgUrl.indexOf('lh3.googleusercontent.com') !== -1) { | |
| bgUrl = '/wallpapers/default.webp'; | |
| } | |
| var bgEl = document.getElementById('skel-bg'); | |
| if (bgEl) { | |
| bgEl.style.backgroundImage = "url('" + bgUrl + "')"; | |
| } | |
| } catch { | |
| // Graceful fallback if localStorage is unavailable | |
| } | |
| })(); | |