Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
i20rzslider
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jedife
i20rzslider
Commits
3775ce08
Commit
3775ce08
authored
Dec 06, 2015
by
Valentin Hervieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply editorconfig style to all code base.
parent
29a0d87f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2484 additions
and
2483 deletions
+2484
-2483
demo.js
demo/demo.js
+9
-6
rzslider.js
dist/rzslider.js
+1237
-1238
rzslider.min.js
dist/rzslider.min.js
+1
-1
rzslider.js
src/rzslider.js
+1237
-1238
No files found.
demo/demo.js
View file @
3775ce08
...
...
@@ -50,7 +50,11 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
}
}
};
$scope
.
otherData
=
{
start
:
0
,
change
:
0
,
end
:
0
};
$scope
.
otherData
=
{
start
:
0
,
change
:
0
,
end
:
0
};
//Slider config with custom display function
$scope
.
slider_translate
=
{
...
...
@@ -69,7 +73,7 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
$scope
.
slider_alphabet
=
{
value
:
0
,
options
:
{
stepsArray
:
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
.
split
(
''
)
stepsArray
:
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
.
split
(
''
)
}
};
...
...
@@ -263,7 +267,7 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
$scope
.
percentages
=
percentages
;
});
modalInstance
.
rendered
.
then
(
function
()
{
$rootScope
.
$broadcast
(
'rzSliderForceRender'
);
//Force refresh sliders on render. Otherwise bullets are aligned at left side.
$rootScope
.
$broadcast
(
'rzSliderForceRender'
);
//Force refresh sliders on render. Otherwise bullets are aligned at left side.
});
};
...
...
@@ -302,10 +306,9 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
}
};
$scope
.
toggleHighValue
=
function
()
{
if
(
$scope
.
slider_all_options
.
maxValue
!=
null
)
{
if
(
$scope
.
slider_all_options
.
maxValue
!=
null
)
{
$scope
.
slider_all_options
.
maxValue
=
undefined
;
}
else
{
}
else
{
$scope
.
slider_all_options
.
maxValue
=
8
;
}
}
...
...
dist/rzslider.js
View file @
3775ce08
...
...
@@ -384,8 +384,7 @@
this
.
customTrFn
=
function
(
value
)
{
return
this
.
options
.
stepsArray
[
value
];
};
}
else
if
(
this
.
options
.
translate
)
}
else
if
(
this
.
options
.
translate
)
this
.
customTrFn
=
this
.
options
.
translate
;
else
this
.
customTrFn
=
function
(
value
)
{
...
...
@@ -670,7 +669,7 @@
var
tooltip
=
''
;
if
(
this
.
options
.
ticksValuesTooltip
)
{
tooltip
=
'uib-tooltip="'
+
this
.
options
.
ticksValuesTooltip
(
value
)
+
'"'
;
if
(
this
.
options
.
vertical
)
if
(
this
.
options
.
vertical
)
tooltip
+=
' tooltip-placement="right"'
}
positions
+=
'<span '
+
tooltip
+
' class="tick-value">'
+
this
.
getDisplayValue
(
value
)
+
'</span>'
;
...
...
dist/rzslider.min.js
View file @
3775ce08
This diff is collapsed.
Click to expand it.
src/rzslider.js
View file @
3775ce08
...
...
@@ -384,8 +384,7 @@
this
.
customTrFn
=
function
(
value
)
{
return
this
.
options
.
stepsArray
[
value
];
};
}
else
if
(
this
.
options
.
translate
)
}
else
if
(
this
.
options
.
translate
)
this
.
customTrFn
=
this
.
options
.
translate
;
else
this
.
customTrFn
=
function
(
value
)
{
...
...
@@ -670,7 +669,7 @@
var
tooltip
=
''
;
if
(
this
.
options
.
ticksValuesTooltip
)
{
tooltip
=
'uib-tooltip="'
+
this
.
options
.
ticksValuesTooltip
(
value
)
+
'"'
;
if
(
this
.
options
.
vertical
)
if
(
this
.
options
.
vertical
)
tooltip
+=
' tooltip-placement="right"'
}
positions
+=
'<span '
+
tooltip
+
' class="tick-value">'
+
this
.
getDisplayValue
(
value
)
+
'</span>'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment