manetta
6 years ago
commit
10d23fc29d
5 changed files with 130 additions and 0 deletions
@ -0,0 +1,82 @@ |
|||
/* set slider dimension here */ |
|||
#slider { |
|||
width: 200px; |
|||
height: 200px; |
|||
} |
|||
|
|||
/* Basic solid color slider grip */ |
|||
.pathslider-grip { |
|||
width: 30px; |
|||
height: 15px; |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
background: #ddd; |
|||
font-size: 1px; |
|||
z-index: 10; |
|||
cursor: move; |
|||
border: 1px solid; |
|||
border-radius: 7px; |
|||
-webkit-box-shadow: 0px 1px 3px rgba(000,000,000,0.5), inset 0px 0px 1px rgba(255,255,255,0.6); |
|||
box-shadow: 0px 1px 3px rgba(000,000,000,0.5), inset 0px 0px 1px rgba(255,255,255,0.6); |
|||
} |
|||
|
|||
/* grip hover/sliding state */ |
|||
.pathslider-grip.sliding, .pathslider-grip:hover { |
|||
border-color: #8ce; |
|||
-webkit-box-shadow: 0 0 15px #8ce; |
|||
box-shadow: 0 0 15px #8ce; |
|||
} |
|||
|
|||
/* slider extra css - same as #slider above */ |
|||
.pathslider { |
|||
position: relative; |
|||
} |
|||
|
|||
/************* |
|||
grip styles |
|||
add these using the gripClass option |
|||
*************/ |
|||
/* shiny silver - sorta */ |
|||
.silver { |
|||
border-color: #949494; |
|||
background-color: #ebebeb; |
|||
background-image: -webkit-linear-gradient(top,#ffffff 0%,#ebebeb 50%,#dbdbdb 50%,#b5b5b5); |
|||
background-image: linear-gradient(top,#ffffff 0%,#ebebeb 50%,#dbdbdb 50%,#b5b5b5); |
|||
} |
|||
|
|||
/* shiny black */ |
|||
.black { |
|||
border-color: #000000 |
|||
background-color: #3b3b3b; |
|||
background-image: -webkit-linear-gradient(top,#a3a3a3 0%,#3b3b3b 50%,#242424 50%,#000000); |
|||
background-image: linear-gradient(top,#a3a3a3 0%,#3b3b3b 50%,#242424 50%,#000000); |
|||
} |
|||
|
|||
/* Small circular chrome knob |
|||
including ".pathslider-grip" to remove border & box shadow |
|||
*/ |
|||
.pathslider-grip.chrome1 { |
|||
width: 18px; |
|||
height: 18px; |
|||
border: 0; |
|||
border-radius: 0; |
|||
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAABI1BMVEUAAADHx8fNzc/29vbCwsOVlpfFxsbb29vp6enm5eX19vb6+vr///+vr6/Dw8K4uLjGxsbQ0NDR0dHh4eHl5uaqq6qlpaWoqqy+vr+9vb3e4OGTk5TIyMiSkpO9vb2kpabDw8SampzDw8O9vb62tratra7Ly8vW1tbk5OTKysrv8fLt7e3c3Nzi4uLd3d309PTv7+/o6Ojm5ufy8vPu7+/r6+zX2NnT09XS0tTk5Obh4eHP0NLKy83DxMX5+fr19fXz8/Xl5ube3+Dd3d/c3N7Z2tvW19jU1de+vr/3+Pjp6ura29zNztG7vL65uruztLWvsLGtra329vbw8PDh4uPLzc/HyMqysrLs7e3o6Orj4+PV1dfQ0dO4uLmoqKn7+/ujo6WIZbNwAAAAMXRSTlMA/v4F/v79kzcuFgkC9vHmsI9+ZRL99fHw7+7u7Ovj4+Hg19bNzMCooJ+Yi4p5SSYjiIrjEAAAASVJREFUGNMVz0OCxAAUANGfpG2MbSu27aTtmfufYtK1fLuCJgBg72g831bO3hoYQAuKvl+PPGkznWXHL/Um7KvfxVIUoZw9cZGLj0YhX93YZTkx4kJ9rArIZwvqDykTMi4nshZOKr9cZwiDtkQIhs2KrED5ikIlPehuDZzgDUdc4yNfG5NoBzKPx+mAsDhT9SlC4BkEcs80CHzJO0QgMBtxbVcgT6coy7qMaVqcNJuJjgz5LollRHJ0fcVPQsZyEEj/0kSObBxXF2ONpEi2BDe7uTy1ljRBajRN+mqpBNUsl0KexnVKIYOFap9UofZ0mBhBQfRI0ShBrhaTtV7bc80VQY20CVN5/oEibHBaLmceIs/LV8ODApotwGr9x9vL8+v7/h7gH5fyPZ6I/Z3zAAAAAElFTkSuQmCC'); |
|||
background-position: center center; |
|||
background-repeat: no-repeat; |
|||
-webkit-box-shadow: 0 0 0; |
|||
box-shadow: 0 0 0; |
|||
} |
|||
|
|||
/* Large curvy chrome slide */ |
|||
.pathslider-grip.chrome2 { |
|||
width: 57px; |
|||
height: 35px; |
|||
border: 0; |
|||
border-radius: 0; |
|||
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAAjCAMAAAAZi1JKAAAC/VBMVEUAAABHTE1dYmQ1OjsxNjcxNTdjbG9HTlBBRklWW142OzxWXF9HT1FXX2FHTlE4PT1QVlkuMzQ1OTozNzlWXF9cZWc0OTogJCVncXRfaWtcZGdnbnMxNTZTWl0fISNARUcWGhtUWFo1OTpncHMvMzRNUlVaY2VeZGZlbXFTWl1iam1UXF81OTpbYmVLUlU6Pz9VXF9KUVNZYGMrLzAqLi9JTlFfZWgpLS5haGo8QEMlKisuMjNiam0kKClYYGJhamxOU1UtMTJLUFNESkwyNzdPVlg4PD0dICE2OjtMUlVDSEopLC1SWFtRWFs6QEA7P0BsdHdqcXcZHR5ARUg2Oj1RWVs4Pj45Pz9pcHYfIyRpcXRVWVxKUlU6QEBlbXA6QEBcZGcoLC0ZHR4jJyhja24sMDEcHR8dHiDW297S2Nva3+LU2dzY3eCAiYvP1diKk5XR1tmus7Z8hYh5goRud3mgpajd4+Vxeny1ur3Eycyan6KDiIrc4eTL0NO8wsSVmZx+h4p0fX/f4+a/xsm5wcSirK6mq66Nl5mHkJKEjpCHjI56f4GosLOQlZeBi41ze35weHtqc3Xk6et4fH9na25kam3x9fjm7O+0vL+ut7mcpqiUnaCNkpR6hIZobnBkbW/z9/nj5+nY4eLIz9LCycu9xce/w8afp6qYoaSWm56PmZuPlJaLkJKJjY+DjI6ChohncHL5/f/v8vXf5OfHzM/Ey862u76ttbiao6aSm52LlZeMkZN/hYd+hIR9gYN3gIJ2foBsdXdocnRiaGtdZmhLUFLs8fPg5unL09XN0tWrsrSprrGfqauTmJuSl5mMlpiDjY9+g4V3gYN1f4FzeHtsdHdqb3JdY2VQVVf0+v3x9P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h9S5hSwBC1b/604mhGD8XW2jYzkZw1dM2v+qF2muqamun1AurpLR82/eHpllguZym14kRuda5/ZdzFYKk0XHaj1k2Bbxd3d/SfPWryrzx8+R7qj5k4ZNtQlE89EBfL3GgGoktbm8XLL5jEG/Wbr6CF/le7OuZP7iskk+YS5P989cKS29nhDTS3k39JYNv/s8OzhRr1D6Rgbm6gS/I813T57mxr8Dr/zaKzAvI9MAAAAAElFTkSuQmCC'); |
|||
background-position: center center; |
|||
background-repeat: no-repeat; |
|||
-webkit-box-shadow: 0 0 0; |
|||
box-shadow: 0 0 0; |
|||
} |
@ -0,0 +1,7 @@ |
|||
body{ |
|||
color:purple; |
|||
} |
|||
div#slider{ |
|||
float: left; |
|||
margin:0.5em 1em 1em 0.5em; |
|||
} |
@ -0,0 +1,38 @@ |
|||
<!DOCTYPE html> |
|||
<html> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script> |
|||
<script type="text/javascript" src="js/Pathslider/js/jquery.pathslider.js"></script> |
|||
<link rel="stylesheet" type="text/css" href="css/stylesheet.css"> |
|||
<link rel="stylesheet" type="text/css" href="css/pathslider.css"> |
|||
</head> |
|||
<body> |
|||
<!-- The curved slider --> |
|||
<div id="slider"></div> |
|||
<style> |
|||
#slider { |
|||
background : #eee url(); |
|||
width : 241px; |
|||
height : 266px; |
|||
} |
|||
</style> |
|||
<script> |
|||
jQuery(function($){ |
|||
$("#slider").pathslider({ |
|||
points : [50,10,-150,0,150,300,200,50], |
|||
value : 49, |
|||
rotateGrip : true, |
|||
tolerance : 3, |
|||
range : 30, |
|||
curve : { width:4, color:"#333", cap:"round" } |
|||
}); |
|||
}); |
|||
</script> |
|||
|
|||
<div id="curve"> |
|||
<h1>Relearn curved</h1> |
|||
|
|||
</div> |
|||
</body> |
|||
</html> |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue