Skip to content

Commit 20c9e8b

Browse files
authored
Fix steps parameter
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
1 parent 88aab58 commit 20c9e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
_.each(vars, function(v) {
228228
var v = v.split('='),
229229
key = v[0], val = v[1];
230-
if (key == 'steps') $('#steps,#steps-div').val(val);
230+
if (key == 'steps') $('#steps,#steps-div,#steps-seq').val(val);
231231
else if (key == 'colors') $('#colors').val(val);
232232
else if (key == 'c0') $('#colors-left').val(val);
233233
else if (key == 'c1') $('#colors-right').val(val);

0 commit comments

Comments
 (0)