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
fb434023
Commit
fb434023
authored
May 21, 2015
by
Rafal Zajac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to 0.1.9
parent
226d80d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
index.html
index.html
+3
-3
rzslider.js
rzslider.js
+5
-5
No files found.
index.html
View file @
fb434023
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
AngularJS Touch Slider
</title>
<title>
AngularJS Touch Slider
</title>
<link
rel=
"stylesheet"
href=
"demo.css"
/>
<link
rel=
"stylesheet"
href=
"demo.css"
/>
<link
rel=
"stylesheet"
href=
"rzslider.css"
/>
<link
rel=
"stylesheet"
href=
"
../dist/
rzslider.css"
/>
<link
href=
'http://fonts.googleapis.com/css?family=Open+Sans:300,400,700'
rel=
'stylesheet'
type=
'text/css'
>
<link
href=
'http://fonts.googleapis.com/css?family=Open+Sans:300,400,700'
rel=
'stylesheet'
type=
'text/css'
>
</head>
</head>
...
@@ -65,8 +65,8 @@
...
@@ -65,8 +65,8 @@
</div>
</div>
</body>
</body>
<script
src=
"angular.min.js"
></script>
<script
src=
"
../bower_components/angular/
angular.min.js"
></script>
<script
src=
"rzslider.js"
></script>
<script
src=
"
../
rzslider.js"
></script>
<script>
<script>
var
app
=
angular
.
module
(
'plunker'
,
[
'rzModule'
]);
var
app
=
angular
.
module
(
'plunker'
,
[
'rzModule'
]);
...
...
rzslider.js
View file @
fb434023
...
@@ -57,7 +57,7 @@ function throttle(func, wait, options) {
...
@@ -57,7 +57,7 @@ function throttle(func, wait, options) {
}
}
})
})
.
factory
(
'Slider'
,
[
'$timeout'
,
'$document'
,
'throttle'
,
function
(
$timeout
,
$document
,
throttle
)
.
factory
(
'
Rz
Slider'
,
[
'$timeout'
,
'$document'
,
'throttle'
,
function
(
$timeout
,
$document
,
throttle
)
{
{
/**
/**
* Slider
* Slider
...
@@ -652,9 +652,9 @@ function throttle(func, wait, options) {
...
@@ -652,9 +652,9 @@ function throttle(func, wait, options) {
*/
*/
roundStep
:
function
(
value
)
roundStep
:
function
(
value
)
{
{
var
step
=
this
.
step
,
var
step
=
this
.
step
/
Math
.
pow
(
10
,
this
.
precision
)
,
remainder
=
(
value
-
this
.
minValue
)
%
step
,
remainder
=
(
value
-
this
.
minValue
)
%
step
,
steppedValue
=
remainder
>
(
step
/
2
)
?
value
+
step
-
remainder
:
value
-
remainder
;
steppedValue
=
remainder
>
(
step
/
2
)
?
value
+
step
-
remainder
:
value
-
remainder
;
return
+
(
steppedValue
).
toFixed
(
this
.
precision
);
return
+
(
steppedValue
).
toFixed
(
this
.
precision
);
},
},
...
@@ -894,7 +894,7 @@ function throttle(func, wait, options) {
...
@@ -894,7 +894,7 @@ function throttle(func, wait, options) {
return
Slider
;
return
Slider
;
}])
}])
.
directive
(
'rzslider'
,
[
'Slider'
,
function
(
Slider
)
.
directive
(
'rzslider'
,
[
'
Rz
Slider'
,
function
(
Slider
)
{
{
return
{
return
{
restrict
:
'EA'
,
restrict
:
'EA'
,
...
...
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