Download openevolve-fixed/scripts/static/js/state.js from zhouk777/evolve: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/datasets/zhouk777/evolve/resolve/main/openevolve-fixed/scripts/static/js/state.js
- Command line
-
hf download hf://datasets/zhouk777/evolve/openevolve-fixed/scripts/static/js/state.js
-
curl -L -o state.js https://huggingface.co/datasets/zhouk777/evolve/resolve/main/openevolve-fixed/scripts/static/js/state.js
404 Bytes
| export let width = window.innerWidth; | |
| export let height = window.innerHeight; | |
| export function setWidth(w) { width = w; } | |
| export function setHeight(h) { height = h; } | |
| export function updateDimensions() { | |
| width = window.innerWidth; | |
| const toolbar = document.getElementById('toolbar'); | |
| const toolbarHeight = toolbar ? toolbar.offsetHeight : 0; | |
| height = window.innerHeight - toolbarHeight; | |
| } | |