mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Added new 'pretty' recipe format to make URLs more readable
This commit is contained in:
parent
2a4c9afdf2
commit
cf1ba60a10
7 changed files with 175 additions and 11 deletions
|
@ -295,6 +295,9 @@ RecipeWaiter.prototype.getConfig = function() {
|
|||
option: ingList[j].previousSibling.children[0].textContent.slice(0, -1),
|
||||
string: ingList[j].value
|
||||
};
|
||||
} else if (ingList[j].getAttribute("type") === "number") {
|
||||
// number
|
||||
ingredients[j] = parseFloat(ingList[j].value, 10);
|
||||
} else {
|
||||
// all others
|
||||
ingredients[j] = ingList[j].value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue