magic4
471
static/Magic4/Slide_Display/css/demo.css
Normal file
@@ -0,0 +1,471 @@
|
||||
body {
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0 0 1em 5em;
|
||||
padding: 1em 1em 0;
|
||||
background-color: #ccc;
|
||||
display: inline-block;
|
||||
line-height: 1.25em;
|
||||
}
|
||||
|
||||
h1, p, aside {
|
||||
color: white;
|
||||
}
|
||||
|
||||
aside label {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
label.imgs:before {
|
||||
content: 'image #';
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 3em;
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
p.small {
|
||||
margin: 0 0 0 4em;
|
||||
font-size: 1em;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
pre + section {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
margin-left: 5em;
|
||||
}
|
||||
|
||||
pre + section.bottommargin {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
pre + section input[type=range],
|
||||
pre + section div {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
pre + section > input[type=range] + label,
|
||||
pre + section > div + label,
|
||||
#changeLabels,
|
||||
#doubleHandleLabels {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
margin-left: 1em;
|
||||
color: white;
|
||||
}
|
||||
#changeLabels label,
|
||||
#doubleHandleLabels label {
|
||||
cursor: inherit;
|
||||
}
|
||||
#changeLabels label:before,
|
||||
#doubleHandleLabels label:before {
|
||||
content: 'onChange:';
|
||||
width: 7em;
|
||||
display: inline-block;
|
||||
}
|
||||
#changeLabels label:last-child:before {
|
||||
content: 'onFinalChange:';
|
||||
}
|
||||
#doubleHandleLabels label:first-child:before {
|
||||
content: 'first handle:';
|
||||
}
|
||||
#doubleHandleLabels label:last-child:before {
|
||||
content: 'second handle:';
|
||||
}
|
||||
|
||||
.slider img {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: #555;
|
||||
padding: 0 .5em;
|
||||
border-radius: 1em;
|
||||
}
|
||||
|
||||
pre span {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
pre mark {
|
||||
color: grey;
|
||||
background-color: inherit;
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#o1 input[type=range] {
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
#o3 input[type=range] {
|
||||
width: 40px;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
#o1, #o2, #o3, #o4, #o5 {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
aside.opt1 ~ #o1,
|
||||
aside.opt2 ~ #o2,
|
||||
aside.opt3 ~ #o3,
|
||||
aside.opt4 ~ #o4,
|
||||
aside.opt5 ~ #o5 {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
#custom + .range,
|
||||
#custom ~ .handle .range {
|
||||
background: -moz-linear-gradient(left, red 0%, green 100%);
|
||||
background: -webkit-linear-gradient(left, red 0%, green 100%);
|
||||
background: linear-gradient(to right, red 0%, green 100%);
|
||||
}
|
||||
#custom ~ .handle {
|
||||
top: 80% !important;
|
||||
height: 200% !important;
|
||||
}
|
||||
#custom ~ .handle svg {
|
||||
top: 35% !important;
|
||||
}
|
||||
#custom ~ .handle .range {
|
||||
top: 32% !important;
|
||||
}
|
||||
#custom ~ .handle label {
|
||||
position: absolute;
|
||||
bottom: .3em;
|
||||
left: 0;
|
||||
right: 0;
|
||||
line-height: 1em;
|
||||
text-align: center;
|
||||
font-family: monospace;
|
||||
font-size: .9em;
|
||||
letter-spacing: .15em;
|
||||
color: white;
|
||||
text-shadow: 0.0625em 0.0625em 0.0625em #777,
|
||||
-0.0625em -0.0625em 0.0625em #777,
|
||||
0.0625em -0.0625em 0.0625em #777,
|
||||
-0.0625em 0.0625em 0.0625em #777;
|
||||
}
|
||||
|
||||
.resize {
|
||||
width: 50%;
|
||||
height: 30vw;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.resize .sliderlens {
|
||||
margin: 2% 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.resize .sliderlens.horiz {
|
||||
width: 100% !important;
|
||||
height: 15% !important;
|
||||
}
|
||||
|
||||
.resize .sliderlens.vert {
|
||||
width: 3em;
|
||||
}
|
||||
|
||||
.resize .sliderlens.vert.fixed {
|
||||
margin-left: 4em;
|
||||
}
|
||||
|
||||
.resize .vert {
|
||||
width: 15% !important;
|
||||
height: 40% !important;
|
||||
}
|
||||
|
||||
#cssfun1,
|
||||
#cssfun2,
|
||||
#cssfun3,
|
||||
#cssfun4,
|
||||
#cssfun5 {
|
||||
display: inline-block;
|
||||
margin: 0 0 5em 4em;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#cssfun1 .slider {
|
||||
color: #a9a94d;
|
||||
font-family: monospace;
|
||||
text-align: center;
|
||||
font-size: .8em;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#cssfun1 .slider {
|
||||
text-shadow: 0.1em 0.1em black;
|
||||
}
|
||||
|
||||
#cssfun1:before,
|
||||
#cssfun2:before,
|
||||
#cssfun1 > label,
|
||||
#cssfun4:before {
|
||||
display: block;
|
||||
font-size: .8em;
|
||||
font-family: monospace;
|
||||
color: rgb(186, 186, 186);
|
||||
}
|
||||
|
||||
#cssfun1 > label {
|
||||
width: 5em;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
#cssfun1:before {
|
||||
content: 'Speed';
|
||||
}
|
||||
|
||||
#cssfun1 .sliderlens > .handle:before {
|
||||
border-bottom-color: #a9a94d;
|
||||
}
|
||||
|
||||
#cssfun2:before {
|
||||
content: 'Temperature';
|
||||
margin-left: 7em;
|
||||
}
|
||||
|
||||
#cssfun4:before {
|
||||
content: 'Your Feedback?';
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
#cssfun2 .sliderlens > .handle1:before,
|
||||
#cssfun2 .sliderlens > .handle2:before {
|
||||
background: #525252;
|
||||
}
|
||||
|
||||
#cssfun2 .sliderlens > .handle1 svg,
|
||||
#cssfun2 .sliderlens > .handle1 .range,
|
||||
#cssfun2 .sliderlens > .handle2 svg,
|
||||
#cssfun2 .sliderlens > .handle2 .range {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#cssfun2 .sliderlens > .handle1:after,
|
||||
#cssfun2 .sliderlens > .handle2:after {
|
||||
content: 'min';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
font-size: .6em;
|
||||
line-height: .6em;
|
||||
color: rgb(186, 186, 186);
|
||||
text-align: center;
|
||||
background: none;
|
||||
-webkit-transform: translateY(40%);
|
||||
-moz-transform: translateY(40%);
|
||||
-ms-transform: translateY(40%);
|
||||
-o-transform: translateY(40%);
|
||||
transform: translateY(40%);
|
||||
}
|
||||
|
||||
#cssfun2 .sliderlens > .handle2:after {
|
||||
content: 'max';
|
||||
}
|
||||
|
||||
#cssfun2 .sliderlens > .handle1 {
|
||||
border-radius: 2em 0 0 2em;
|
||||
}
|
||||
|
||||
#cssfun2 .sliderlens > .handle2 {
|
||||
border-radius: 0 2em 2em 0;
|
||||
}
|
||||
|
||||
#cssfun2 > label {
|
||||
display: inline-block;
|
||||
font-family: monospace;
|
||||
width: 5em;
|
||||
font-size: .8em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#cssfun2 > label:first-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#cssfun2 > label:last-child {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#cssfun2 .sliderlens > .handle1:after,
|
||||
#cssfun2 > label:first-child {
|
||||
color: #7FB3D5;
|
||||
}
|
||||
|
||||
#cssfun2 .sliderlens > .handle2:after,
|
||||
#cssfun2 > label:last-child {
|
||||
color: #D98880;
|
||||
}
|
||||
|
||||
#cssfun1 {
|
||||
float: left;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#cssfun3 {
|
||||
margin-left: 5.5em;
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
#cssfun3 .sliderlens > .handle {
|
||||
border-radius: .5em;
|
||||
}
|
||||
|
||||
#cssfun3 ul {
|
||||
color: #a9a94d;
|
||||
display: inline-block;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: .8em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#cssfun3 ul li {
|
||||
font-family: monospace;
|
||||
font-size: .6em;
|
||||
display: inline-block;
|
||||
padding: .25em;
|
||||
width: 5em;
|
||||
}
|
||||
|
||||
#cssfun3 figure {
|
||||
display: block;
|
||||
height: 140px;
|
||||
opacity: 0;
|
||||
-webkit-transform: scale(1.2);
|
||||
-ms-transform: scale(1.2);
|
||||
-moz-transform: scale(1.2);
|
||||
-o-transform: scale(1.2);
|
||||
transform: scale(1.2);
|
||||
-webkit-transition: opacity 100ms, -webkit-transform 100ms;
|
||||
-ms-transition: opacity 100ms, -ms-transform 100ms;
|
||||
-moz-transition: opacity 100ms, -moz-transform 100ms;
|
||||
-o-transition: opacity 100ms, -o-transform 100ms;
|
||||
transition: opacity 100ms, transform 100ms;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
margin: 0 2.5em 0 0;
|
||||
}
|
||||
|
||||
#cssfun3 figure.phone0,
|
||||
#cssfun3 figure.phone1,
|
||||
#cssfun3 figure.phone2,
|
||||
#cssfun3 figure.phone3,
|
||||
#cssfun3 figure.phone4,
|
||||
#cssfun3 figure.phone5,
|
||||
#cssfun3 figure.phone6 {
|
||||
-webkit-transform: scale(1);
|
||||
-ms-transform: scale(1);
|
||||
-moz-transform: scale(1);
|
||||
-o-transform: scale(1);
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#cssfun3 figure.phone0 {
|
||||
background-image: url('phone0.png');
|
||||
}
|
||||
|
||||
#cssfun3 figure.phone1 {
|
||||
background-image: url('phone1.png');
|
||||
}
|
||||
|
||||
#cssfun3 figure.phone2 {
|
||||
background-image: url('phone2.png');
|
||||
}
|
||||
|
||||
#cssfun3 figure.phone3 {
|
||||
background-image: url('phone3.png');
|
||||
}
|
||||
|
||||
#cssfun3 figure.phone4 {
|
||||
background-image: url('phone4.png');
|
||||
}
|
||||
|
||||
#cssfun3 figure.phone5 {
|
||||
background-image: url('phone5.png');
|
||||
}
|
||||
|
||||
#cssfun3 figure.phone6 {
|
||||
background-image: url('phone6.png');
|
||||
}
|
||||
|
||||
#cssfun4 .range,
|
||||
#cssfun4 .handle:before,
|
||||
#cssfun4 .handle svg > g {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#cssfun4 .handle {
|
||||
width: 30% !important;
|
||||
height: 18% !important;
|
||||
}
|
||||
|
||||
#cssfun4 .handle:after {
|
||||
background:
|
||||
-moz-radial-gradient(center, ellipse cover, rgba(60, 60, 60, 0.05) 0%, rgba(60, 60, 60, 0.4) 30%, rgba(60, 60, 60, 0.8) 70%),
|
||||
-moz-linear-gradient(top, rgba(169, 169, 169, 0.95) 0%, rgba(169, 169, 169, 0.25) 30%, rgba(56, 56, 56, 0.25) 70%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background:
|
||||
-webkit-radial-gradient(center, ellipse cover, rgba(60, 60, 60, 0.05) 0%, rgba(60, 60, 60, 0.4) 30%, rgba(60, 60, 60, 0.8) 70%),
|
||||
-webkit-linear-gradient(top, rgba(169, 169, 169, 0.95) 0%, rgba(169, 169, 169, 0.25) 30%, rgba(56, 56, 56, 0.25) 70%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background:
|
||||
radial-gradient(ellipse at center, rgba(60, 60, 60, 0.05) 0%, rgba(60, 60, 60, 0.4) 30%, rgba(60, 60, 60, 0.8) 70%),
|
||||
linear-gradient(to bottom, rgba(169, 169, 169, 0.95) 0%, rgba(169, 169, 169, 0.25) 30%, rgba(56, 56, 56, 0.25) 70%, rgba(56, 56, 56, 0.95) 100%);
|
||||
}
|
||||
|
||||
#cssfun4 svg > g > text {
|
||||
font-size: .8em;
|
||||
font-family: monospace;
|
||||
letter-spacing: .1em;
|
||||
}
|
||||
|
||||
p.cssfun {
|
||||
margin: 0 0 3em 0;
|
||||
}
|
||||
|
||||
#cssfun5 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#cssfun5 .sliderlens {
|
||||
border: none;
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
#cssfun5 .slider {
|
||||
display: block !important;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
#cssfun5 .handle .slider {
|
||||
color: white;
|
||||
}
|
||||
|
||||
#cssfun5 .sliderlens:before,
|
||||
#cssfun5 .sliderlens .handle:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#cssfun5 .sliderlens:after {
|
||||
box-shadow: inset 0 6em 4em -3em #454545, inset 0 -6em 4em -3em #454545;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#cssfun5 .handle:after {
|
||||
background: none;
|
||||
}
|
||||
|
||||
#cssfun5 .handle {
|
||||
box-shadow: 0 0 0.3125em -0.03125em #333;
|
||||
}
|
||||
BIN
static/Magic4/Slide_Display/css/emotions.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
254
static/Magic4/Slide_Display/css/htmleaf-demo.css
Normal file
@@ -0,0 +1,254 @@
|
||||
@font-face {
|
||||
font-family: 'icomoon';
|
||||
src:url('../fonts/icomoon.eot?rretjt');
|
||||
src:url('../fonts/icomoon.eot?#iefixrretjt') format('embedded-opentype'),
|
||||
url('../fonts/icomoon.woff?rretjt') format('woff'),
|
||||
url('../fonts/icomoon.ttf?rretjt') format('truetype'),
|
||||
url('../fonts/icomoon.svg?rretjt#icomoon') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
[class^="icon-"], [class*=" icon-"] {
|
||||
font-family: 'icomoon';
|
||||
speak: none;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
line-height: 1;
|
||||
|
||||
/* Better Font Rendering =========== */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
body, html { font-size: 100%; padding: 0; margin: 0;}
|
||||
|
||||
/* Reset */
|
||||
*,
|
||||
*:after,
|
||||
*:before {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
|
||||
.clearfix:before,
|
||||
.clearfix:after {
|
||||
content: " ";
|
||||
display: table;
|
||||
}
|
||||
|
||||
.clearfix:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
body{
|
||||
background: #FFFFFF;/*#494A5F;*/
|
||||
font-weight: 500;
|
||||
font-size: 1.05em;
|
||||
font-family: "Microsoft YaHei","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif;
|
||||
}
|
||||
.htmleaf-links a{ color: rgba(255, 255, 255, 0.6);outline: none;text-decoration: none;-webkit-transition: 0.2s;transition: 0.2s;}
|
||||
.htmleaf-links a:hover,.htmleaf-links a:focus{color:#74777b;text-decoration: none;}
|
||||
.htmleaf-container{
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.bgcolor-1 { background: #f0efee; }
|
||||
.bgcolor-2 { background: #f9f9f9; }
|
||||
.bgcolor-3 { background: #e8e8e8; }/*light grey*/
|
||||
.bgcolor-4 { background: #2f3238; color: #fff; }/*Dark grey*/
|
||||
.bgcolor-5 { background: #df6659; color: #521e18; }/*pink1*/
|
||||
.bgcolor-6 { background: #2fa8ec; }/*sky blue*/
|
||||
.bgcolor-7 { background: #d0d6d6; }/*White tea*/
|
||||
.bgcolor-8 { background: #3d4444; color: #fff; }/*Dark grey2*/
|
||||
.bgcolor-9 { background: #ef3f52; color: #fff;}/*pink2*/
|
||||
.bgcolor-10{ background: #64448f; color: #fff;}/*Violet*/
|
||||
.bgcolor-11{ background: #3755ad; color: #fff;}/*dark blue*/
|
||||
.bgcolor-12{ background: #3498DB; color: #fff;}/*light blue*/
|
||||
.bgcolor-20{ background: #494A5F;color: #D5D6E2;}
|
||||
/* Header */
|
||||
.htmleaf-header{
|
||||
padding: 1em 190px 1em;
|
||||
letter-spacing: -1px;
|
||||
text-align: center;
|
||||
background: #66677c;
|
||||
}
|
||||
.htmleaf-header h1 {
|
||||
color: #D5D6E2;
|
||||
font-weight: 600;
|
||||
font-size: 2em;
|
||||
line-height: 1;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.htmleaf-header h1 span {
|
||||
display: block;
|
||||
font-size: 60%;
|
||||
font-weight: 400;
|
||||
padding: 0.8em 0 0.5em 0;
|
||||
color: #c3c8cd;
|
||||
}
|
||||
/*nav*/
|
||||
.htmleaf-demo a{color: #fff;text-decoration: none;}
|
||||
.htmleaf-demo{width: 100%;padding-bottom: 1.2em;}
|
||||
.htmleaf-demo a{display: inline-block;margin: 0.5em;padding: 0.6em 1em;border: 3px solid #fff;font-weight: 700;}
|
||||
.htmleaf-demo a:hover{opacity: 0.6;}
|
||||
.htmleaf-demo a.current{background:#1d7db1;color: #fff; }
|
||||
/* Top Navigation Style */
|
||||
.htmleaf-links {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
font-size: 1.5em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.htmleaf-links::after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
margin-left: -1px;
|
||||
width: 2px;
|
||||
height: 100%;
|
||||
background: #dbdbdb;
|
||||
content: '';
|
||||
-webkit-transform: rotate3d(0,0,1,22.5deg);
|
||||
transform: rotate3d(0,0,1,22.5deg);
|
||||
}
|
||||
|
||||
.htmleaf-icon {
|
||||
display: inline-block;
|
||||
margin: 0.5em;
|
||||
padding: 0em 0;
|
||||
width: 1.5em;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.htmleaf-icon span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.htmleaf-icon:before {
|
||||
margin: 0 5px;
|
||||
text-transform: none;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
font-family: 'icomoon';
|
||||
line-height: 1;
|
||||
speak: none;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
/* footer */
|
||||
.htmleaf-footer{width: 100%;padding-top: 10px;}
|
||||
.htmleaf-small{font-size: 0.8em;}
|
||||
.center{text-align: center;}
|
||||
/****/
|
||||
.related {
|
||||
color: #fff;
|
||||
background: #494A5F;
|
||||
text-align: center;
|
||||
font-size: 1.25em;
|
||||
padding: 0.5em 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.related > a {
|
||||
vertical-align: top;
|
||||
width: calc(100% - 20px);
|
||||
max-width: 340px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
margin: 20px 10px;
|
||||
padding: 25px;
|
||||
font-family: "Microsoft YaHei","宋体","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif, FreeSans, Arimo;
|
||||
}
|
||||
.related a {
|
||||
display: inline-block;
|
||||
text-align: left;
|
||||
margin: 20px auto;
|
||||
padding: 10px 20px;
|
||||
opacity: 0.8;
|
||||
-webkit-transition: opacity 0.3s;
|
||||
transition: opacity 0.3s;
|
||||
-webkit-backface-visibility: hidden;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.related a:hover,
|
||||
.related a:active {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.related a img {
|
||||
max-width: 100%;
|
||||
opacity: 0.8;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.related a:hover img,
|
||||
.related a:active img {
|
||||
opacity: 1;
|
||||
}
|
||||
.related h3{font-family: "Microsoft YaHei", sans-serif;font-size: 1.2em}
|
||||
.related a h3 {
|
||||
font-size: 0.85em;
|
||||
font-weight: 300;
|
||||
margin-top: 0.15em;
|
||||
color: #fff;
|
||||
}
|
||||
/* icomoon */
|
||||
.icon-htmleaf-home-outline:before {
|
||||
content: "\e5000";
|
||||
}
|
||||
|
||||
.icon-htmleaf-arrow-forward-outline:before {
|
||||
content: "\e5001";
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
.htmleaf-header {
|
||||
padding: 2em 10% 2em;
|
||||
}
|
||||
.htmleaf-header h1 {
|
||||
font-size:1.4em;
|
||||
}
|
||||
.htmleaf-links{font-size: 1.4em}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 960px) {
|
||||
.htmleaf-header {
|
||||
padding: 2em 10% 2em;
|
||||
}
|
||||
.htmleaf-header h1 {
|
||||
font-size:1.2em;
|
||||
}
|
||||
.htmleaf-links{font-size: 1.2em}
|
||||
.related h3{font-size: 1em;}
|
||||
.related a h3 {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 766px) {
|
||||
.htmleaf-header h1 {
|
||||
font-size:1.3em;
|
||||
}
|
||||
.htmleaf-links{font-size: 1.3em}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 640px) {
|
||||
.htmleaf-header {
|
||||
padding: 2em 10% 2em;
|
||||
}
|
||||
.htmleaf-header h1 {
|
||||
font-size:1em;
|
||||
}
|
||||
.htmleaf-links{font-size: 1em}
|
||||
.related h3{font-size: 0.8em;}
|
||||
.related a h3 {
|
||||
font-size: 0.6em;
|
||||
}
|
||||
}
|
||||
BIN
static/Magic4/Slide_Display/css/mdn.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
static/Magic4/Slide_Display/css/phone0.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
static/Magic4/Slide_Display/css/phone1.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
static/Magic4/Slide_Display/css/phone2.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
static/Magic4/Slide_Display/css/phone3.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
static/Magic4/Slide_Display/css/phone4.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
static/Magic4/Slide_Display/css/phone5.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
static/Magic4/Slide_Display/css/phone6.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
static/Magic4/Slide_Display/css/pic1.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
static/Magic4/Slide_Display/css/pic2.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
static/Magic4/Slide_Display/css/pic3.jpg
Normal file
|
After Width: | Height: | Size: 34 KiB |
215
static/Magic4/Slide_Display/css/rsSliderLens.css
Normal file
@@ -0,0 +1,215 @@
|
||||
.sliderlens {
|
||||
opacity: 0.8;
|
||||
cursor: pointer;
|
||||
}
|
||||
.sliderlens.focus {
|
||||
opacity: 1;
|
||||
}
|
||||
.sliderlens .range {
|
||||
background-color: #050505;
|
||||
border-width: 0.0625em;
|
||||
border-style: solid;
|
||||
-webkit-border-image: -webkit-linear-gradient(top, #121212, #787878) 1;
|
||||
-moz-border-image: -moz-linear-gradient(top, #121212, #787878) 1;
|
||||
-o-border-image: -o-linear-gradient(top, #121212, #787878) 1;
|
||||
-ms-border-image: -ms-linear-gradient(top, #121212, #787878) 1;
|
||||
border-image: linear-gradient(to bottom, #121212, #787878) 1;
|
||||
}
|
||||
.sliderlens .range > div {
|
||||
background-color: #313131;
|
||||
}
|
||||
.sliderlens .range.drag > div {
|
||||
cursor: ew-resize;
|
||||
}
|
||||
.sliderlens .range.drag.dragging > div {
|
||||
cursor: none;
|
||||
}
|
||||
.sliderlens > .handle,
|
||||
.sliderlens > .handle1,
|
||||
.sliderlens > .handle2 {
|
||||
border-radius: 3em/.75em;
|
||||
cursor: ew-resize;
|
||||
background-color: #454545;
|
||||
box-shadow: 0 0 0.3125em -0.03125em #000000;
|
||||
border: 0 solid #787878;
|
||||
border-bottom-color: #121212;
|
||||
border-width: 0.0625em 0;
|
||||
}
|
||||
.sliderlens > .handle:before,
|
||||
.sliderlens > .handle1:before,
|
||||
.sliderlens > .handle2:before,
|
||||
.sliderlens > .handle:after,
|
||||
.sliderlens > .handle1:after,
|
||||
.sliderlens > .handle2:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
.sliderlens > .handle.dragging,
|
||||
.sliderlens > .handle1.dragging,
|
||||
.sliderlens > .handle2.dragging {
|
||||
box-shadow: 0 0 0.3125em -0.0625em #000000;
|
||||
}
|
||||
.sliderlens > .handle .range,
|
||||
.sliderlens > .handle1 .range,
|
||||
.sliderlens > .handle2 .range {
|
||||
-webkit-border-image: -webkit-linear-gradient(top, #121212, #d1d1d1) 1;
|
||||
-moz-border-image: -moz-linear-gradient(top, #121212, #d1d1d1) 1;
|
||||
-o-border-image: -o-linear-gradient(top, #121212, #d1d1d1) 1;
|
||||
-ms-border-image: -ms-linear-gradient(top, #121212, #d1d1d1) 1;
|
||||
border-image: linear-gradient(to bottom, #121212, #d1d1d1) 1;
|
||||
}
|
||||
.sliderlens > .handle:before {
|
||||
right: 50%;
|
||||
bottom: 55%;
|
||||
border-right: 0.0625em solid rgba(186, 186, 186, 0.6);
|
||||
z-index: 1;
|
||||
}
|
||||
.sliderlens > .handle:after {
|
||||
background: -webkit-linear-gradient(left, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 50%, rgba(56, 56, 56, 0.25) 50%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: -moz-linear-gradient(left, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 50%, rgba(56, 56, 56, 0.25) 50%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: -o-linear-gradient(left, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 50%, rgba(56, 56, 56, 0.25) 50%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: -ms-linear-gradient(left, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 50%, rgba(56, 56, 56, 0.25) 50%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: linear-gradient(to right, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 50%, rgba(56, 56, 56, 0.25) 50%, rgba(56, 56, 56, 0.95) 100%);
|
||||
}
|
||||
.sliderlens > .handle1 {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
.sliderlens > .handle1:after {
|
||||
background: -webkit-linear-gradient(left, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 100%);
|
||||
background: -moz-linear-gradient(left, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 100%);
|
||||
background: -o-linear-gradient(left, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 100%);
|
||||
background: -ms-linear-gradient(left, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 100%);
|
||||
background: linear-gradient(to right, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 100%);
|
||||
}
|
||||
.sliderlens > .handle2 {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
.sliderlens > .handle2:after {
|
||||
background: -webkit-linear-gradient(left, rgba(56, 56, 56, 0.25) 0%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: -moz-linear-gradient(left, rgba(56, 56, 56, 0.25) 0%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: -o-linear-gradient(left, rgba(56, 56, 56, 0.25) 0%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: -ms-linear-gradient(left, rgba(56, 56, 56, 0.25) 0%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: linear-gradient(to right, rgba(56, 56, 56, 0.25) 0%, rgba(56, 56, 56, 0.95) 100%);
|
||||
}
|
||||
.sliderlens svg > path {
|
||||
stroke: rgba(186, 186, 186, 0.6);
|
||||
}
|
||||
.sliderlens svg > g > text {
|
||||
fill: rgba(186, 186, 186, 0.6);
|
||||
font-size: 0.5em;
|
||||
}
|
||||
.sliderlens.vert > .handle,
|
||||
.sliderlens.vert > .handle1,
|
||||
.sliderlens.vert > .handle2 {
|
||||
cursor: ns-resize;
|
||||
border-radius: 3em/.75em;
|
||||
}
|
||||
.sliderlens.vert > .handle .range,
|
||||
.sliderlens.vert > .handle1 .range,
|
||||
.sliderlens.vert > .handle2 .range {
|
||||
-webkit-border-image: -webkit-linear-gradient(top, #121212, #787878) 1;
|
||||
-moz-border-image: -moz-linear-gradient(top, #121212, #787878) 1;
|
||||
-o-border-image: -o-linear-gradient(top, #121212, #787878) 1;
|
||||
-ms-border-image: -ms-linear-gradient(top, #121212, #787878) 1;
|
||||
border-image: linear-gradient(to bottom, #121212, #787878) 1;
|
||||
}
|
||||
.sliderlens.vert > .handle:before {
|
||||
right: 55%;
|
||||
bottom: 50%;
|
||||
border-right: none;
|
||||
border-bottom: 0.0625em solid rgba(186, 186, 186, 0.6);
|
||||
}
|
||||
.sliderlens.vert > .handle:after {
|
||||
background: -webkit-linear-gradient(top, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 50%, rgba(56, 56, 56, 0.25) 50%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: -moz-linear-gradient(top, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 50%, rgba(56, 56, 56, 0.25) 50%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: -o-linear-gradient(top, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 50%, rgba(56, 56, 56, 0.25) 50%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: -ms-linear-gradient(top, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 50%, rgba(56, 56, 56, 0.25) 50%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: linear-gradient(to bottom, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 50%, rgba(56, 56, 56, 0.25) 50%, rgba(56, 56, 56, 0.95) 100%);
|
||||
}
|
||||
.sliderlens.vert > .handle1 {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
.sliderlens.vert > .handle1:after {
|
||||
background: -webkit-linear-gradient(top, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 100%);
|
||||
background: -moz-linear-gradient(top, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 100%);
|
||||
background: -o-linear-gradient(top, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 100%);
|
||||
background: -ms-linear-gradient(top, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 100%);
|
||||
background: linear-gradient(to bottom, rgba(69, 69, 69, 0.95) 0%, rgba(120, 120, 120, 0.25) 100%);
|
||||
}
|
||||
.sliderlens.vert > .handle2 {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
.sliderlens.vert > .handle2:after {
|
||||
background: -webkit-linear-gradient(top, rgba(56, 56, 56, 0.25) 0%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: -moz-linear-gradient(top, rgba(56, 56, 56, 0.25) 0%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: -o-linear-gradient(top, rgba(56, 56, 56, 0.25) 0%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: -ms-linear-gradient(top, rgba(56, 56, 56, 0.25) 0%, rgba(56, 56, 56, 0.95) 100%);
|
||||
background: linear-gradient(to bottom, rgba(56, 56, 56, 0.25) 0%, rgba(56, 56, 56, 0.95) 100%);
|
||||
}
|
||||
.sliderlens.fixed {
|
||||
border-width: 0.0625em;
|
||||
border-style: solid;
|
||||
-webkit-border-image: -webkit-linear-gradient(top, #121212, #787878) 1;
|
||||
-moz-border-image: -moz-linear-gradient(top, #121212, #787878) 1;
|
||||
-o-border-image: -o-linear-gradient(top, #121212, #787878) 1;
|
||||
-ms-border-image: -ms-linear-gradient(top, #121212, #787878) 1;
|
||||
border-image: linear-gradient(to bottom, #121212, #787878) 1;
|
||||
background-color: #383838;
|
||||
cursor: ew-resize;
|
||||
}
|
||||
.sliderlens.fixed:before,
|
||||
.sliderlens.fixed:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
border-width: 0 0 0.0625em 0;
|
||||
border-style: solid;
|
||||
pointer-events: none;
|
||||
-webkit-border-image: -webkit-linear-gradient(top, #050505, #5f5f5f) 1;
|
||||
-moz-border-image: -moz-linear-gradient(top, #050505, #5f5f5f) 1;
|
||||
-o-border-image: -o-linear-gradient(top, #050505, #5f5f5f) 1;
|
||||
-ms-border-image: -ms-linear-gradient(top, #050505, #5f5f5f) 1;
|
||||
border-image: linear-gradient(to bottom, #050505, #5f5f5f) 1;
|
||||
}
|
||||
.sliderlens.fixed:after {
|
||||
border-width: 0 0.0625em;
|
||||
box-shadow: inset 1em 0 1.25em -0.5em #000000, inset -1em 0 1.25em -0.5em #000000;
|
||||
}
|
||||
.sliderlens.fixed.vert {
|
||||
cursor: ns-resize;
|
||||
}
|
||||
.sliderlens.fixed.vert:before {
|
||||
border-width: 0 0.0625em;
|
||||
}
|
||||
.sliderlens.fixed.vert:after {
|
||||
border-width: 0 0 0.0625em 0;
|
||||
box-shadow: inset 0 1em 1.25em -0.5em #000000, inset 0 -1em 1.25em -0.5em #000000;
|
||||
}
|
||||
.sliderlens.fixed > .handle {
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
}
|
||||
.sliderlens.vert .range.drag > div {
|
||||
cursor: ns-resize;
|
||||
}
|
||||
.sliderlens.dragging {
|
||||
cursor: none;
|
||||
}
|
||||
.sliderlens.dragging > .handle,
|
||||
.sliderlens.dragging > .handle1,
|
||||
.sliderlens.dragging > .handle2 {
|
||||
cursor: none;
|
||||
}
|
||||
BIN
static/Magic4/Slide_Display/fonts/icomoon.eot
Normal file
12
static/Magic4/Slide_Display/fonts/icomoon.svg
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>Generated by IcoMoon</metadata>
|
||||
<defs>
|
||||
<font id="icomoon" horiz-adv-x="1024">
|
||||
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
||||
<missing-glyph horiz-adv-x="1024" />
|
||||
<glyph unicode=" " d="" horiz-adv-x="512" />
|
||||
<glyph unicode="󥀀" d="M949.845 492.032c-144.64 121.771-407.296 348.629-409.899 350.933l-27.947 24.021-27.819-24.021c-2.645-2.261-265.429-229.035-412.16-351.915-18.688-16.811-29.355-40.32-29.355-64.384 0-47.104 38.229-85.333 85.333-85.333h42.667v-256c0-47.104 38.229-85.333 85.333-85.333h512c47.104 0 85.333 38.229 85.333 85.333v256h42.667c47.104 0 85.333 38.229 85.333 85.333 0 25.515-11.733 49.536-31.488 65.365zM597.333 85.334h-170.667v213.333h170.667v-213.333zM768 426.667l0.085-341.333c-0.085 0-128.085 0-128.085 0v256h-256v-256h-128v341.333h-128.043c117.973 98.645 312.107 265.685 384.043 327.68 71.936-61.995 265.984-228.992 384-327.723 0 0-128 0-128 0.043z" />
|
||||
<glyph unicode="󥀁" d="M170.667 85.376c-4.096 0-8.149 0.64-12.203 1.792-18.091 5.376-30.464 22.016-30.464 40.875v42.667c0 204.8 144.256 378.197 341.333 417.963v72.704c0 22.784 8.875 44.203 24.96 60.331 32.256 32.299 88.533 32.256 120.704 0.043l268.288-264.661c8.149-8.021 12.715-18.901 12.715-30.379s-4.565-22.357-12.715-30.379l-268.501-264.832c-31.829-31.829-88.192-32.043-120.448 0.213-16.128 16.128-25.003 37.547-25.003 60.331v61.312c-106.453-8.576-192.981-42.027-262.997-148.651-8.107-12.288-21.547-19.328-35.669-19.328zM512 340.907c11.179 0 42.667 0.427 42.667 0.427v-149.291l237.909 234.667-237.909 234.496v-149.205c0 0-16.384 0.171-38.016-2.219-145.749-16.128-261.333-122.197-294.059-259.413 90.496 73.728 194.176 88.149 289.408 90.539z" />
|
||||
</font></defs></svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
BIN
static/Magic4/Slide_Display/fonts/icomoon.ttf
Normal file
BIN
static/Magic4/Slide_Display/fonts/icomoon.woff
Normal file
782
static/Magic4/Slide_Display/index.html
Normal file
@@ -0,0 +1,782 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>超炫酷UI效果的jQuery滑块插件|DEMO_jQuery之家-自由分享jQuery、html5、css3的插件库</title>
|
||||
<link rel="stylesheet" href="./css/rsSliderLens.css" />
|
||||
<link rel="stylesheet" href="./css/demo.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/htmleaf-demo.css"><!--演示页面样式,使用时可以不引用-->
|
||||
</head>
|
||||
<body>
|
||||
<div class="htmleaf-container">
|
||||
<header class="htmleaf-header">
|
||||
<h1>超炫酷UI效果的jQuery滑块插件 <span>UI slider control that magnifies the current value</span></h1>
|
||||
<div class="htmleaf-links">
|
||||
<a class="htmleaf-icon icon-htmleaf-home-outline" href="http://www.htmleaf.com/" title="jQuery之家" target="_blank"><span> jQuery之家</span></a>
|
||||
<a class="htmleaf-icon icon-htmleaf-arrow-forward-outline" href="http://www.htmleaf.com/jQuery/Form/201906115686.html" title="返回下载页" target="_blank"><span> 返回下载页</span></a>
|
||||
</div>
|
||||
</header>
|
||||
<h1>jquery-rsSliderLens demonstration</h1>
|
||||
<p>With this plug-in, you can change the default input range, from this:</p>
|
||||
<pre>
|
||||
<input type="range">
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 0 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
|
||||
<p>to:</p>
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
<span>$("input").rsSliderLens();</span>
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 1 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
|
||||
<p>To use a step 25, you can add a <code>step</code> attribute to the <code><input></code> element or add a parameter to the plug-in constructor:</p>
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
<span>step: 25</span>
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 2 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
|
||||
<p>The 0 and 100 labels are cropped! No problem, just add a padding space equal to 10% of the slider width:</p>
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
step: 25,
|
||||
<span>paddingStart: 0.1,
|
||||
paddingEnd: 0.1</span>
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 3 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
|
||||
<p>By default <code><input type="range"></code> has a range between 0 and 100.<br>
|
||||
For other ranges, you can add <code>min</code> and <code>max</code> attributes to the <code><input></code> element, or in the plug-in constructor:</p>
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
step: 25,
|
||||
paddingStart: 0.1,
|
||||
paddingEnd: 0.1,
|
||||
<span>min: -50,
|
||||
max: 150</span>
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 4 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
|
||||
<p>Great, but now the labels overlap each other.<br>
|
||||
To fix this, you have some options: (click each one for a sample)</p>
|
||||
<aside class="opt1">
|
||||
<label><input name="opt" type="radio" value="1" checked>Increase the slider width in CSS;</label>
|
||||
<label><input name="opt" type="radio" value="2">Increase the slider width in the plug-in constructor;</label>
|
||||
<label><input name="opt" type="radio" value="3">Use a vertical slider;</label>
|
||||
<label><input name="opt" type="radio" value="4">Hide the labels;</label>
|
||||
<label><input name="opt" type="radio" value="5">Use a fixed handle slider.</label>
|
||||
</aside>
|
||||
|
||||
<div id="o1">
|
||||
<pre>
|
||||
<input type="range">
|
||||
<span><style>
|
||||
input {
|
||||
width: 400px;
|
||||
}
|
||||
</style></span>
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
step: 25,
|
||||
paddingStart: 0.1,
|
||||
paddingEnd: 0.1,
|
||||
min: -50,
|
||||
max: 150
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 5 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div id="o2">
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
<span>width: 400,</span>
|
||||
step: 25,
|
||||
paddingStart: 0.1,
|
||||
paddingEnd: 0.1,
|
||||
min: -50,
|
||||
max: 150
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 6 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div id="o3">
|
||||
<pre>
|
||||
<input type="range">
|
||||
<span><style>
|
||||
input {
|
||||
width: 40px;
|
||||
height: 300px;
|
||||
}
|
||||
</style></span>
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
step: 25,
|
||||
paddingStart: 0.1,
|
||||
paddingEnd: 0.1,
|
||||
min: -50,
|
||||
max: 150
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 7 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div id="o4">
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
step: 25,
|
||||
min: -50,
|
||||
max: 150,
|
||||
<span>ruler: {
|
||||
labels: {
|
||||
visible: false
|
||||
}
|
||||
}</span>
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 8 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div id="o5">
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
step: 25,
|
||||
paddingStart: 0.1,
|
||||
paddingEnd: 0.1,
|
||||
min: -50,
|
||||
max: 150,
|
||||
<span>fixedHandle: true,
|
||||
ruler: {
|
||||
size: 4 <mark>// 400% of the <input type=range> width</mark>
|
||||
}</span>
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 9 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<p>Use a range to restrict input even further:</p>
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
width: 300,
|
||||
height: 45,
|
||||
step: 10,
|
||||
paddingStart: 0.1,
|
||||
paddingEnd: 0.1,
|
||||
<span>range: {
|
||||
type: [20, 60],
|
||||
draggable: true
|
||||
}</span>
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 10 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
<p class="small">Use your mouse to drag the range to other location</p>
|
||||
|
||||
<p>If you want labels every 20 positions, but with a <code>step</code> of 1:</p>
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
<span>step: 1,</span>
|
||||
paddingStart: 0.1,
|
||||
paddingEnd: 0.1,
|
||||
<span>ruler: {
|
||||
labels: {
|
||||
values: [0, 20, 40, 60, 80, 100]
|
||||
}
|
||||
}</span>
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 11 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
|
||||
<p>The same slider, but now with a fixed handle style with a <code>min</code> of 0 and <code>max</code> of 500:</p>
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
<span>var labels = [];
|
||||
for (var i = 0; i <= 500; i+= 20) {
|
||||
labels.push(i);
|
||||
}</span>
|
||||
$("input").rsSliderLens({
|
||||
<span>step: 1,</span>
|
||||
paddingStart: 0.1,
|
||||
paddingEnd: 0.1,
|
||||
<span>width: 300,
|
||||
max: 500,
|
||||
fixedHandle: true,
|
||||
ruler: {
|
||||
labels: {
|
||||
values: labels
|
||||
}
|
||||
}</span>
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 12 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
|
||||
<p>Using customized events to display current value inside the handle and to style labels:</p>
|
||||
<pre>
|
||||
<input type="range">
|
||||
<span><style>
|
||||
#custom + .range, <mark>// range outside the handle </mark>
|
||||
#custom ~ .handle .range { <mark>// range inside the handle </mark>
|
||||
background: -moz-linear-gradient(left, red 0%, green 100%);
|
||||
background: -webkit-linear-gradient(left, red 0%, green 100%);
|
||||
background: linear-gradient(to right, red 0%, green 100%);
|
||||
}
|
||||
</style></span>
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
step: 1,
|
||||
paddingStart: 0.1,
|
||||
paddingEnd: 0.1,
|
||||
min: -20,
|
||||
max: 20,
|
||||
ruler: {
|
||||
labels: {
|
||||
values: [-20, -10, 0, 10, 20],
|
||||
<span>onCustomLabel: function(event, value) {
|
||||
return value > 0 ? '+' + value : value;
|
||||
},
|
||||
onCustomAttrs: function(event, value) {
|
||||
if (value < 0) return { style: 'fill:red' };
|
||||
if (value > 0) return { style: 'fill:green' };
|
||||
<mark>// no style defined for zero, so returns nothing (or undefined)</mark>
|
||||
}</span>
|
||||
}
|
||||
},
|
||||
<span>onCreate: function (event) {
|
||||
<mark>// append a new child <label> element to the .handle</mark>
|
||||
$(event.currentTarget).nextAll(".handle").append("<label>");
|
||||
},
|
||||
onChange: function (event, value) {
|
||||
<mark>// use the <label> element created at run-time, to display the current value</mark>
|
||||
var $labelElement = $(event.currentTarget).nextAll(".handle").children("label");
|
||||
$labelElement.text(value < 0 ? value : ((value > 0 ? '+' : '') + value));
|
||||
}</span>
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 13 -->
|
||||
<input type="range" id="custom">
|
||||
</section>
|
||||
|
||||
<p>You have the choice of <code>OnChange</code> or <code>OnFinalChange</code> (recommended for computationally expensive tasks)</p>
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
<span>onChange: function (event, value) {
|
||||
$changeLabel.text(value);
|
||||
},
|
||||
onFinalChange: function (event, value) {
|
||||
$finalChangeLabel.text(value);
|
||||
}</span>
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 14 -->
|
||||
<input type="range">
|
||||
<aside id="changeLabels">
|
||||
<label></label>
|
||||
<label></label>
|
||||
</aside>
|
||||
</section>
|
||||
|
||||
<p>Did I mention the support for double handle sliders?</p>
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
$("input").rsSliderLens({
|
||||
<span>value: [10, 25]</span>
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 15 -->
|
||||
<input type="range">
|
||||
<aside id="doubleHandleLabels">
|
||||
<label></label>
|
||||
<label></label>
|
||||
</aside>
|
||||
</section>
|
||||
|
||||
<p>You can bind the plug-in to any element, not only to an <code><input type=range></code>:</p>
|
||||
<pre>
|
||||
<span>Hello world</span>
|
||||
<script>
|
||||
$("span").rsSliderLens({ ruler: { visible: false } });
|
||||
</script>
|
||||
</pre>
|
||||
<section class="bottommargin">
|
||||
<!-- 16 -->
|
||||
<span class="slider">Hello world</span>
|
||||
<label></label>
|
||||
</section><br>
|
||||
|
||||
<pre>
|
||||
<span>
|
||||
<img src="./pic1.jpg" width="60" height="40">
|
||||
<img src="./pic2.jpg" width="60" height="40">
|
||||
<img src="./pic3.jpg" width="60" height="40">
|
||||
</span>
|
||||
<script>
|
||||
$("span").rsSliderLens({ ruler: { visible: false } });
|
||||
</script>
|
||||
</pre>
|
||||
<section>
|
||||
<!-- 17 -->
|
||||
<span class="slider">
|
||||
<img src="./css/pic1.jpg" width="60" height="40">
|
||||
<img src="./css/pic2.jpg" width="60" height="40">
|
||||
<img src="./css/pic3.jpg" width="60" height="40">
|
||||
</span>
|
||||
<label></label>
|
||||
</section>
|
||||
|
||||
<p class="small"><br>Or with a little more customization</p>
|
||||
<pre>
|
||||
<span tabindex="0">
|
||||
<img src="./pic1.jpg" width="60" height="40">
|
||||
<img src="./pic2.jpg" width="60" height="40">
|
||||
<img src="./pic3.jpg" width="60" height="40">
|
||||
</span>
|
||||
<script>
|
||||
$("span").rsSliderLens({
|
||||
<span>max: 2,
|
||||
step: 1,
|
||||
paddingStart: .15,
|
||||
paddingEnd: .15,</span>
|
||||
ruler: { visible: false }
|
||||
});
|
||||
</script>
|
||||
</pre>
|
||||
<section class="bottommargin">
|
||||
<!-- 18 -->
|
||||
<span class="slider" tabindex="0">
|
||||
<img src="./css/pic1.jpg" width="60" height="40">
|
||||
<img src="./css/pic2.jpg" width="60" height="40">
|
||||
<img src="./css/pic3.jpg" width="60" height="40">
|
||||
</span>
|
||||
<label class="imgs"></label>
|
||||
</section>
|
||||
<p class="small">The tabindex makes the slider keyboard focusable</p>
|
||||
|
||||
<p>Responsive design. Please, resize your browser window.</p>
|
||||
<p class="small">This is possible with the use of relative CSS units.<br>Don't like the dark layout? You can recompile LESS files to generate the layout you like.</p><br>
|
||||
<pre>
|
||||
<input type="range">
|
||||
<script>
|
||||
$("span").rsSliderLens();
|
||||
</script>
|
||||
</pre>
|
||||
<section class="resize">
|
||||
<!-- 19 -->
|
||||
<input class="horiz" type="range"><br>
|
||||
<!-- 20 -->
|
||||
<input class="horiz" type="range"><br>
|
||||
<!-- 21 -->
|
||||
<input class="vert" type="range">
|
||||
<!-- 22 -->
|
||||
<input class="vert" type="range">
|
||||
</section>
|
||||
|
||||
<p>You have total flexibility over the style.</p>
|
||||
<p class="small cssfun">Just change the CSS (not the javascript) to give wings to your imagination.</p>
|
||||
<section id="cssfun1">
|
||||
<label></label>
|
||||
<!-- 23 -->
|
||||
<span class="slider" tabindex="0"></span>
|
||||
</section>
|
||||
|
||||
<section id="cssfun2">
|
||||
<label></label>
|
||||
<!-- 24 -->
|
||||
<input type="range">
|
||||
<label></label>
|
||||
</section>
|
||||
|
||||
<section id="cssfun3">
|
||||
<!-- 25 -->
|
||||
<span class="slider" tabindex="0"> <!-- tabindex to enable keyboard focus -->
|
||||
<ul>
|
||||
<li>
|
||||
iPhone<br>SE</li><li>
|
||||
iPhone<br>7</li><li>
|
||||
LG<br>G5</li><li>
|
||||
Samsung<br>S7</li><li>
|
||||
OnePlus<br>3</li><li>
|
||||
HTC<br>10</li><li>
|
||||
Huawei<br>P9</li>
|
||||
</ul>
|
||||
</span>
|
||||
<figure class="phone0"></figure>
|
||||
</section>
|
||||
|
||||
<section id="cssfun4">
|
||||
<!-- 26 -->
|
||||
<input type="range">
|
||||
</section>
|
||||
|
||||
<section id="cssfun5">
|
||||
<!-- 27 -->
|
||||
<span class="slider" tabindex="0">
|
||||
January<br>
|
||||
February<br>
|
||||
March<br>
|
||||
April<br>
|
||||
May<br>
|
||||
June<br>
|
||||
July<br>
|
||||
August<br>
|
||||
September<br>
|
||||
October<br>
|
||||
November<br>
|
||||
December
|
||||
</span>
|
||||
</section>
|
||||
<div class="related">
|
||||
<h3>如果你喜欢这个插件,那么你可能也喜欢:</h3>
|
||||
<a href="http://www.htmleaf.com/jQuery/Form/201812285474.html">
|
||||
<img src="related/1.jpg" width="300" alt="jquery和CSS3简洁滑块设计效果"/>
|
||||
<h3>jquery和CSS3简洁滑块设计效果</h3>
|
||||
</a>
|
||||
<a href="http://www.htmleaf.com/jQuery/Form/201810105360.html">
|
||||
<img src="related/2.jpg" width="300" alt="jQuery多功能滑块插件r-slider.js"/>
|
||||
<h3>jQuery多功能滑块插件r-slider.js</h3>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
|
||||
<script src="./js/jquery.rsSliderLens.js"></script>
|
||||
<script>
|
||||
$("#cssfun1 .slider").html(function() {
|
||||
var str = "";
|
||||
for(var speed = 0; speed <= 200; speed += 5) {
|
||||
str += speed + "<br>";
|
||||
}
|
||||
return str;
|
||||
});
|
||||
|
||||
var $inputs = $("input[type=range], span.slider"),
|
||||
change = function (event, value, isFirstHandle) {
|
||||
$(event.currentTarget).parent("div").next("label").text(value);
|
||||
};
|
||||
$inputs.eq(0).change(function () {
|
||||
$(this).next("label").text(this.value);
|
||||
}).change();
|
||||
rsSliderLens
|
||||
$inputs.eq(1).rsSliderLens({ onChange: change });
|
||||
$inputs.eq(2).rsSliderLens({ step: 25, onChange: change });
|
||||
$inputs.eq(3).rsSliderLens({ step: 25, paddingStart: 0.1, paddingEnd: 0.1, onChange: change });
|
||||
$inputs.eq(4).rsSliderLens({ step: 25, paddingStart: 0.1, paddingEnd: 0.1, min: -50, max: 150, onChange: change });
|
||||
$inputs.eq(5).rsSliderLens({ step: 25, paddingStart: 0.1, paddingEnd: 0.1, min: -50, max: 150, onChange: change });
|
||||
$inputs.eq(6).rsSliderLens({ width: 400, step: 25, paddingStart: 0.1, paddingEnd: 0.1, min: -50, max: 150, onChange: change });
|
||||
$inputs.eq(7).rsSliderLens({ step: 25, paddingStart: 0.1, paddingEnd: 0.1, min: -50, max: 150, onChange: change });
|
||||
$inputs.eq(8).rsSliderLens({ step: 25, min: -50, max: 150, ruler: { labels: { visible: false }}, onChange: change });
|
||||
$inputs.eq(9).rsSliderLens({ step: 25, paddingStart: 0.1, paddingEnd: 0.1, min: -50, max: 150, fixedHandle: true,
|
||||
ruler: { size: 4 }, onChange: change
|
||||
});
|
||||
$inputs.eq(10).rsSliderLens({ width: 300, height: 45, step: 10, paddingStart: 0.1, paddingEnd: 0.1, range: { type: [20, 60], draggable: true }, onChange: change });
|
||||
$inputs.eq(11).rsSliderLens({ step: 1, paddingStart: 0.1, paddingEnd: 0.1, ruler: { labels: { values: [0, 20, 40, 60, 80, 100] }}, onChange: change });
|
||||
|
||||
var labels = [];
|
||||
for (var i = 0; i <= 500; i+= 20) {
|
||||
labels.push(i);
|
||||
}
|
||||
$inputs.eq(12).rsSliderLens({ step: 1, paddingStart: 0.1, paddingEnd: 0.1, width: 300, max: 500, fixedHandle: true, ruler: { labels: { values: labels }, size: 4 }, onChange: change });
|
||||
$inputs.eq(13).rsSliderLens({ step: 1, paddingStart: 0.1, paddingEnd: 0.1, min: -20, max: 20,
|
||||
ruler: {
|
||||
labels: {
|
||||
values: [-20, -10, 0, 10, 20],
|
||||
onCustomLabel: function(event, value) {
|
||||
return value > 0 ? '+' + value : value;
|
||||
},
|
||||
onCustomAttrs: function(event, value) {
|
||||
if (value < 0) return { style: 'fill:red' };
|
||||
if (value > 0) return { style: 'fill:green' };
|
||||
// no style defined for zero, so returns nothing (or undefined)
|
||||
}
|
||||
}
|
||||
},
|
||||
onCreate: function (event) {
|
||||
// append a new child <label> element to the .handle
|
||||
$(event.currentTarget).nextAll(".handle").append("<label>");
|
||||
},
|
||||
onChange: function (event, value) {
|
||||
// use the <label> element created at run-time, to display the current value
|
||||
var $labelElement = $(event.currentTarget).nextAll(".handle").children("label");
|
||||
$labelElement.text(value < 0 ? value : ((value > 0 ? '+' : '') + value));
|
||||
}
|
||||
});
|
||||
$inputs.eq(14).rsSliderLens({
|
||||
onChange: function (event, value) {
|
||||
$("#changeLabels label").first().text(value);
|
||||
},
|
||||
onFinalChange: function (event, value) {
|
||||
$("#changeLabels label").last().text(value);
|
||||
}
|
||||
});
|
||||
$inputs.eq(15).rsSliderLens({
|
||||
step: 5,
|
||||
width: 300,
|
||||
paddingStart: .1,
|
||||
paddingEnd: .1,
|
||||
value: [10, 25],
|
||||
onChange: function (event, value, isFirstHandle) {
|
||||
$("#doubleHandleLabels label").eq(isFirstHandle ? 0 : 1).text(value);
|
||||
}
|
||||
});
|
||||
$inputs.slice(16, 18).rsSliderLens({ ruler: { visible: false }, onChange: change });
|
||||
$inputs.eq(18).rsSliderLens({ max: 2, step: 1, paddingStart: .15, paddingEnd: .15, ruler: { visible: false }, onChange: change });
|
||||
|
||||
$inputs.eq(19).rsSliderLens({ paddingStart: .1, paddingEnd: .1, ruler: { labels: { values: [0, 20, 40, 60, 80, 100] }} });
|
||||
$inputs.eq(20).rsSliderLens({ paddingStart: .1, paddingEnd: .1, fixedHandle: true, ruler: { labels: { values: [0, 20, 40, 60, 80, 100] }} });
|
||||
$inputs.eq(21).rsSliderLens({ width: 50, paddingStart: .1, paddingEnd: .1, orientation: 'vert', ruler: { labels: { values: [0, 20, 40, 60, 80, 100] }} });
|
||||
$inputs.eq(22).rsSliderLens({ width: 50, paddingStart: .1, paddingEnd: .1, orientation: 'vert', fixedHandle: true, ruler: { labels: { values: [0, 20, 40, 60, 80, 100] }} });
|
||||
|
||||
$("aside input[type=radio]").change(function() {
|
||||
$("aside").removeClass("opt1 opt2 opt3 opt4 opt5").addClass("opt" + this.value);
|
||||
});
|
||||
$("#o1, #o2, #o3, #o4, #o5").hide();
|
||||
|
||||
$inputs.eq(23).rsSliderLens({
|
||||
min: 0,
|
||||
max: 200,
|
||||
height: 200,
|
||||
fixedHandle: true,
|
||||
step: 1,
|
||||
paddingStart: .012,
|
||||
paddingEnd: .012,
|
||||
handle: {
|
||||
zoom: 2
|
||||
},
|
||||
ruler: {
|
||||
visible: false
|
||||
},
|
||||
onChange: function (event, value, isFirstHandle) {
|
||||
$("#cssfun1 > label").text(value + " km/h");
|
||||
}
|
||||
});
|
||||
|
||||
$inputs.eq(24).rsSliderLens({
|
||||
paddingStart: .075,
|
||||
paddingEnd: .075,
|
||||
value: [20, 40],
|
||||
width: 300,
|
||||
step: 1,
|
||||
min: -20,
|
||||
max: 70,
|
||||
handle: {
|
||||
size: .15
|
||||
},
|
||||
range: {
|
||||
type: 'between'
|
||||
},
|
||||
ruler: {
|
||||
labels: {
|
||||
values: [-20, -10, 0, 10, 20, 30, 40, 50, 60, 70]
|
||||
}
|
||||
},
|
||||
onChange: function (event, value, isFirstHandle) {
|
||||
$("#cssfun2 > label").eq(isFirstHandle ? 0 : 1).text(value + "°C");
|
||||
}
|
||||
});
|
||||
|
||||
var animObj = {
|
||||
$figure: $("#cssfun3 > figure")
|
||||
};
|
||||
$inputs.eq(25).rsSliderLens({
|
||||
min: 0,
|
||||
max: 6,
|
||||
step: 1,
|
||||
paddingStart: .07,
|
||||
paddingEnd: .07,
|
||||
ruler: {
|
||||
visible: false
|
||||
},
|
||||
handle: {
|
||||
zoom: 1.8,
|
||||
animation: 300
|
||||
},
|
||||
onChange: function (event, value, isFirstHandle) {
|
||||
if (animObj.timeoutIdHide) {
|
||||
clearTimeout(animObj.timeoutIdHide);
|
||||
}
|
||||
animObj.timeoutIdHide = setTimeout(function () {
|
||||
animObj.$figure.removeClass('phone0 phone1 phone2 phone3 phone4 phone5 phone6');
|
||||
if (animObj.timeoutIdShow) {
|
||||
clearTimeout(animObj.timeoutIdShow);
|
||||
}
|
||||
animObj.timeoutIdShow = setTimeout(function() {
|
||||
animObj.$figure.addClass('phone' + value);
|
||||
delete animObj.timeoutIdShow;
|
||||
}, 100);
|
||||
delete animObj.timeoutIdHide;
|
||||
}, 200);
|
||||
}
|
||||
});
|
||||
|
||||
$inputs.eq(26).rsSliderLens({
|
||||
height: 211,
|
||||
min: 0,
|
||||
max: 4,
|
||||
step: 1,
|
||||
flipped: true,
|
||||
paddingStart: .2,
|
||||
paddingEnd: .2,
|
||||
handle: {
|
||||
pos: .2,
|
||||
zoom: 1
|
||||
},
|
||||
ruler: {
|
||||
labels: {
|
||||
pos: .4,
|
||||
onCustomLabel: function (event, value) {
|
||||
switch (value) {
|
||||
case 0: return 'very unhappy';
|
||||
case 1: return 'unhappy';
|
||||
case 2: return 'normal';
|
||||
case 3: return 'happy';
|
||||
case 4: return 'very happy';
|
||||
}
|
||||
},
|
||||
onCustomAttrs: function (event, value, x, y) {
|
||||
return {
|
||||
transform: 'rotate(-25 ' + x + ',' + y + ')',
|
||||
'text-anchor': 'start'
|
||||
};
|
||||
}
|
||||
},
|
||||
tickMarks: {
|
||||
short: { visible: false },
|
||||
long: { visible: false }
|
||||
},
|
||||
onCustom: function(event, $svg, width, height, zoom, magnifiedRuler, createSvgDomFunc) {
|
||||
if (magnifiedRuler) {
|
||||
$svg.append(createSvgDomFunc('image', { width: 30, height: 155, x: 38, y: 27, 'href': './css/emotions.png' }));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$inputs.eq(27).rsSliderLens({
|
||||
min: 1,
|
||||
max: 12,
|
||||
height: 200,
|
||||
fixedHandle: true,
|
||||
step: 1,
|
||||
paddingStart: .04,
|
||||
paddingEnd: .04,
|
||||
handle: {
|
||||
size: .12
|
||||
},
|
||||
ruler: {
|
||||
visible: false
|
||||
}
|
||||
});
|
||||
|
||||
var resizeObj = {
|
||||
timeoutId: null,
|
||||
doResize: function () {
|
||||
$inputs.eq(19).add($inputs.eq(21)).rsSliderLens('resizeUpdate');
|
||||
resizeObj.timeoutId = null;
|
||||
},
|
||||
resize: function () {
|
||||
if (!resizeObj.timeoutId) {
|
||||
resizeObj.timeoutId = setTimeout(resizeObj.doResize, 100);
|
||||
}
|
||||
}
|
||||
};
|
||||
resizeObj.doResize();
|
||||
$(window).bind('resize', resizeObj.resize);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
11
static/Magic4/Slide_Display/jQuery#U4e4b#U5bb6.url
Normal file
@@ -0,0 +1,11 @@
|
||||
[{000214A0-0000-0000-C000-000000000046}]
|
||||
Prop3=19,2
|
||||
[InternetShortcut]
|
||||
URL=http://www.htmleaf.com/
|
||||
IDList=
|
||||
HotKey=0
|
||||
IconFile=C:\Windows\system32\SHELL32.dll
|
||||
IconIndex=220
|
||||
[InternetShortcut.A]
|
||||
[InternetShortcut.W]
|
||||
IconFile=F:+AFx/UVP2-jQuery+AFw-favicon.ico
|
||||
4
static/Magic4/Slide_Display/js/jquery-1.11.0.min.js
vendored
Normal file
2083
static/Magic4/Slide_Display/js/jquery.rsSliderLens.js
Normal file
22
static/Magic4/Slide_Display/readme.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>jQuery之家</title>
|
||||
<style type="text/css">
|
||||
body{font-size: 14px;}
|
||||
.content{
|
||||
width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>欢迎访问jQuery之家</h1>
|
||||
<div class="content">
|
||||
<p>更多精彩内容请访问jQuery之家:<a href="http://www.htmleaf.com">http://www.htmleaf.com</a></p>
|
||||
<p>jQuery之家致力于搜集和整理各种jQuery插件,jQuery特效,jquery ui,jQuery 教程,JS特效,网页特效,以及各种html5,css3动画和效果。</p>
|
||||
<p>为前端开发者提供最全面的网页开发素材。</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
static/Magic4/Slide_Display/related/1.jpg
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
static/Magic4/Slide_Display/related/2.jpg
Normal file
|
After Width: | Height: | Size: 19 KiB |