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
2a8ffc1b
Commit
2a8ffc1b
authored
Sep 12, 2015
by
e-cloud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add umd support and move the source to the `src` directory
parent
9d6c2fae
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
8 deletions
+28
-8
Gruntfile.js
Gruntfile.js
+2
-2
index.html
demo/index.html
+1
-1
rzslider.min.css
dist/rzslider.min.css
+1
-1
rzslider.min.js
dist/rzslider.min.js
+2
-2
rzslider.js
src/rzslider.js
+22
-2
rzslider.less
src/rzslider.less
+0
-0
No files found.
Gruntfile.js
View file @
2a8ffc1b
...
@@ -15,7 +15,7 @@ module.exports = function (grunt)
...
@@ -15,7 +15,7 @@ module.exports = function (grunt)
},
},
slider
:
{
slider
:
{
src
:
[
'rzslider.less'
],
src
:
[
'
src/
rzslider.less'
],
dest
:
'dist/rzslider.css'
dest
:
'dist/rzslider.css'
},
},
...
@@ -37,7 +37,7 @@ module.exports = function (grunt)
...
@@ -37,7 +37,7 @@ module.exports = function (grunt)
rzslider
:
{
rzslider
:
{
files
:
{
files
:
{
'dist/rzslider.min.js'
:
[
'dist/rzslider.min.js'
:
[
'rzslider.js'
'
src/
rzslider.js'
]
]
}
}
}
}
...
...
demo/index.html
View file @
2a8ffc1b
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
</body>
</body>
<script
src=
"../bower_components/angular/angular.min.js"
></script>
<script
src=
"../bower_components/angular/angular.min.js"
></script>
<script
src=
"../rzslider.js"
></script>
<script
src=
"../
src/
rzslider.js"
></script>
<script>
<script>
var
app
=
angular
.
module
(
'plunker'
,
[
'rzModule'
]);
var
app
=
angular
.
module
(
'plunker'
,
[
'rzModule'
]);
...
...
dist/rzslider.min.css
View file @
2a8ffc1b
/*! jusas-angularjs-slider - v0.1.29 - (c) Rafal Zajac <rzajac@gmail.com>, Jussi Saarivirta <jusasi@gmail.com>, Angelin Sirbu <angelin.sirbu@gmail.com>, https://github.com/rzajac/angularjs-slider.git - 2015-09-
09
*/
/*! jusas-angularjs-slider - v0.1.29 - (c) Rafal Zajac <rzajac@gmail.com>, Jussi Saarivirta <jusasi@gmail.com>, Angelin Sirbu <angelin.sirbu@gmail.com>, https://github.com/rzajac/angularjs-slider.git - 2015-09-
12
*/
rzslider
{
position
:
relative
;
display
:
inline-block
;
width
:
100%
;
height
:
4px
;
margin
:
30px
0
15px
0
;
vertical-align
:
middle
}
rzslider
span
{
position
:
absolute
;
display
:
inline-block
;
white-space
:
nowrap
}
rzslider
span
.rz-base
{
width
:
100%
;
height
:
100%
;
padding
:
0
}
rzslider
span
.rz-bar-wrapper
{
left
:
0
;
width
:
100%
;
height
:
32px
;
padding-top
:
16px
;
margin-top
:
-16px
;
box-sizing
:
border-box
}
rzslider
span
.rz-bar
{
left
:
0
;
z-index
:
0
;
width
:
100%
;
height
:
4px
;
background
:
#d8e0f3
;
-webkit-border-radius
:
2px
;
-moz-border-radius
:
2px
;
border-radius
:
2px
}
rzslider
span
.rz-bar.rz-selection
{
z-index
:
1
;
background
:
#0db9f0
;
-webkit-border-radius
:
2px
;
-moz-border-radius
:
2px
;
border-radius
:
2px
}
rzslider
span
.rz-pointer
{
top
:
-14px
;
z-index
:
2
;
width
:
32px
;
height
:
32px
;
cursor
:
pointer
;
background-color
:
#0db9f0
;
-webkit-border-radius
:
16px
;
-moz-border-radius
:
16px
;
border-radius
:
16px
}
rzslider
span
.rz-pointer
:after
{
position
:
absolute
;
top
:
12px
;
left
:
12px
;
width
:
8px
;
height
:
8px
;
background
:
#fff
;
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
border-radius
:
4px
;
content
:
''
}
rzslider
span
.rz-pointer
:hover:after
{
background-color
:
#fff
}
rzslider
span
.rz-pointer.rz-active
:after
{
background-color
:
#451aff
}
rzslider
span
.rz-bubble
{
top
:
-32px
;
padding
:
1px
3px
;
color
:
#55637d
;
cursor
:
default
}
rzslider
span
.rz-bubble.rz-selection
{
top
:
16px
}
rzslider
span
.rz-bubble.rz-limit
{
color
:
#55637d
}
rzslider
{
position
:
relative
;
display
:
inline-block
;
width
:
100%
;
height
:
4px
;
margin
:
30px
0
15px
0
;
vertical-align
:
middle
}
rzslider
span
{
position
:
absolute
;
display
:
inline-block
;
white-space
:
nowrap
}
rzslider
span
.rz-base
{
width
:
100%
;
height
:
100%
;
padding
:
0
}
rzslider
span
.rz-bar-wrapper
{
left
:
0
;
width
:
100%
;
height
:
32px
;
padding-top
:
16px
;
margin-top
:
-16px
;
box-sizing
:
border-box
}
rzslider
span
.rz-bar
{
left
:
0
;
z-index
:
0
;
width
:
100%
;
height
:
4px
;
background
:
#d8e0f3
;
-webkit-border-radius
:
2px
;
-moz-border-radius
:
2px
;
border-radius
:
2px
}
rzslider
span
.rz-bar.rz-selection
{
z-index
:
1
;
background
:
#0db9f0
;
-webkit-border-radius
:
2px
;
-moz-border-radius
:
2px
;
border-radius
:
2px
}
rzslider
span
.rz-pointer
{
top
:
-14px
;
z-index
:
2
;
width
:
32px
;
height
:
32px
;
cursor
:
pointer
;
background-color
:
#0db9f0
;
-webkit-border-radius
:
16px
;
-moz-border-radius
:
16px
;
border-radius
:
16px
}
rzslider
span
.rz-pointer
:after
{
position
:
absolute
;
top
:
12px
;
left
:
12px
;
width
:
8px
;
height
:
8px
;
background
:
#fff
;
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
border-radius
:
4px
;
content
:
''
}
rzslider
span
.rz-pointer
:hover:after
{
background-color
:
#fff
}
rzslider
span
.rz-pointer.rz-active
:after
{
background-color
:
#451aff
}
rzslider
span
.rz-bubble
{
top
:
-32px
;
padding
:
1px
3px
;
color
:
#55637d
;
cursor
:
default
}
rzslider
span
.rz-bubble.rz-selection
{
top
:
16px
}
rzslider
span
.rz-bubble.rz-limit
{
color
:
#55637d
}
\ No newline at end of file
dist/rzslider.min.js
View file @
2a8ffc1b
This diff is collapsed.
Click to expand it.
rzslider.js
→
src/
rzslider.js
View file @
2a8ffc1b
...
@@ -11,8 +11,25 @@
...
@@ -11,8 +11,25 @@
/*jslint unparam: true */
/*jslint unparam: true */
/*global angular: false, console: false */
/*global angular: false, console: false */
(
function
(
root
,
factory
)
{
angular
.
module
(
'rzModule'
,
[])
if
(
typeof
define
===
'function'
&&
define
.
amd
)
{
// AMD. Register as an anonymous module.
define
([
'angular'
,
'underscore'
],
factory
);
}
else
if
(
typeof
module
===
'object'
&&
module
.
exports
)
{
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
// to support bundler like browserify
module
.
exports
=
factory
(
require
(
'angular'
));
}
else
{
// Browser globals (root is window)
factory
(
root
.
angular
);
}
}(
this
,
function
(
angular
)
{
var
module
=
angular
.
module
(
'rzModule'
,
[])
.
run
([
'$templateCache'
,
function
(
$templateCache
)
{
.
run
([
'$templateCache'
,
function
(
$templateCache
)
{
'use strict'
;
'use strict'
;
...
@@ -1317,3 +1334,6 @@ function throttle(func, wait, options) {
...
@@ -1317,3 +1334,6 @@ function throttle(func, wait, options) {
* @property {bool} leading
* @property {bool} leading
* @property {bool} trailing
* @property {bool} trailing
*/
*/
return
module
}));
rzslider.less
→
src/
rzslider.less
View file @
2a8ffc1b
File moved
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