Open lgarron opened 12 years ago
Discussed this with @jfly.
We've settled on something like http://www.cubing.net/mark2/#title=Berkeley%20Winter%202012&r1=title-3x3x3%20Round%201,event-333,groups-4,copies-2,scrambles-5&...
Copy pasting my email so the discussion is public. Feel free to reply here or offline.
I forgot to ask about round titles today. Let's say you do something like r1=event-333,scrambles-5,title-FOO
What if we want "FOO" to be "FOO,BAR"? The JSON way of dealing with this is to quote strings and escape the quote character if you want it to be part of your string. It would appear that encodeURIComponent escapes " -> %22, so you wouldn't want to use that as your quote character, but it looks like encodeURIComponent("'") = "'", so that's doable.
I had forgotten, but this is another one of the reasons why I chose to place the round titles as the keys of the parameters.
I'm now leaning towards the modified version of my idea, that is defining keys starting with a number followed by a space (or period or whatever) to be a round definition. The round definition would be your proposal, that is "event-333,scrambles-5..."
See issue #7.