Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 14 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import $ from 'jquery' |
||
2 | import './customizerControls.scss' |
||
3 | |||
4 | $(document).on('change input', '.flynt-range', function () { |
||
5 | const $el = $(this) |
||
6 | const change = $el.data('change') |
||
7 | $el.parent().find(`.flynt-range-${change}`).val($el.val()) |
||
8 | }) |
||
9 | |||
10 | $(document).on('click', '.flynt-range-reset', function () { |
||
11 | const $el = $(this) |
||
12 | const value = $el.data('default') |
||
13 | $el.parent().find('.flynt-range').val(value) |
||
14 | }) |
||
15 | |||
31 |