Skip to content

Instantly share code, notes, and snippets.

View celestial-labs's full-sized avatar

Alexander Sanni celestial-labs

  • VertiGIS Hamburg
  • Hamburg, Germany
View GitHub Profile
@celestial-labs
celestial-labs / executeScript.json
Created January 9, 2024 17:54
VertiGIS Studio Web commands
[
"viewer.get-capabilities",
{
"name": "arcade.run",
"arguments": {
"canExecuteScript": "if($context.width < 800){ return true; } else { return false }",
"executeScript": "return true;",
"includeContext": true,
"arguments": {}
}
@celestial-labs
celestial-labs / Getting an element by its id
Last active June 8, 2022 06:32
[js selector] #js #dom #javascript
const elem = document.getElementById( 'exampleDiv' );