damage-calc icon indicating copy to clipboard operation
damage-calc copied to clipboard

Feature Request: HTTP GET Params

Open EspoTek opened this issue 2 years ago • 1 comments

It would be really handy if the HTML endpoints supported HTTP GET params in the URL.

This would allow people to share specific calc results, or link to specific calc pages programatically.

For example, running /calc on a Showdown battle where you have a Scyther at +2 atk and the opponent has a Klawf at 88% HP could trivially generate a link to (for example) https://calc.pokemonshowdown.com/randoms.html?attacker_pokemon=scyther&defender_pokemon=klawf&attacker_atk=%2B2&defender_hp_percent=88, rather than just https://calc.pokemonshowdown.com/randoms.html

EspoTek avatar Oct 31 '23 02:10 EspoTek

#587

AustinXII avatar Jul 02 '24 17:07 AustinXII