Skip to content

Commit

Permalink
Fix steps parameter
Browse files Browse the repository at this point in the history
When visiting https://gka.github.io/palettes/#colors=#000,#f0f,#fff|steps=21|bez=0|coL=0 , "Step count" is immediately set to 7 and not picked up by the url. This PR fixes this issue.

Resolves gka#2
  • Loading branch information
frederfred committed Jan 22, 2019
1 parent 88aab58 commit 20c9e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -227,7 +227,7 @@
_.each(vars, function(v) {
var v = v.split('='),
key = v[0], val = v[1];
if (key == 'steps') $('#steps,#steps-div').val(val);
if (key == 'steps') $('#steps,#steps-div,#steps-seq').val(val);
else if (key == 'colors') $('#colors').val(val);
else if (key == 'c0') $('#colors-left').val(val);
else if (key == 'c1') $('#colors-right').val(val);
Expand Down

0 comments on commit 20c9e8b

Please sign in to comment.