diff options
Diffstat (limited to 'js/yui3/slider-value-range')
-rw-r--r-- | js/yui3/slider-value-range/assets/slider-base-core.css | 37 | ||||
-rw-r--r-- | js/yui3/slider-value-range/assets/slider-core.css | 37 | ||||
-rw-r--r-- | js/yui3/slider-value-range/assets/thumb-x-oblong-dark.png | bin | 0 -> 4042 bytes | |||
-rw-r--r-- | js/yui3/slider-value-range/assets/thumb-x-oblong.png | bin | 0 -> 961 bytes | |||
-rw-r--r-- | js/yui3/slider-value-range/assets/thumb-x-oblong2-dark.png | bin | 0 -> 4045 bytes | |||
-rw-r--r-- | js/yui3/slider-value-range/assets/thumb-x-oblong2.png | bin | 0 -> 706 bytes | |||
-rw-r--r-- | js/yui3/slider-value-range/assets/thumb-y-oblong-dark.png | bin | 0 -> 519 bytes | |||
-rw-r--r-- | js/yui3/slider-value-range/assets/thumb-y-oblong.png | bin | 0 -> 1023 bytes | |||
-rw-r--r-- | js/yui3/slider-value-range/assets/thumb-y-oblong2-dark.png | bin | 0 -> 706 bytes | |||
-rw-r--r-- | js/yui3/slider-value-range/assets/thumb-y-oblong2.png | bin | 0 -> 746 bytes | |||
-rw-r--r-- | js/yui3/slider-value-range/slider-value-range-min.js | 7 |
11 files changed, 81 insertions, 0 deletions
diff --git a/js/yui3/slider-value-range/assets/slider-base-core.css b/js/yui3/slider-value-range/assets/slider-base-core.css new file mode 100644 index 000000000..905d4a34d --- /dev/null +++ b/js/yui3/slider-value-range/assets/slider-base-core.css @@ -0,0 +1,37 @@ +/* +YUI 3.7.3 (build 5687) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +.yui3-slider, +.yui3-slider-rail { + /* xbrowser inline-block styles */ + display: -moz-inline-stack; /* FF2 */ + display: inline-block; + *display: inline; /* IE 7- (with zoom) */ + zoom: 1; + vertical-align: middle; +} + +.yui3-slider-content { + position: relative; + display: block; +} +.yui3-slider-rail { + position: relative; +} + +.yui3-slider-rail-cap-top, +.yui3-slider-rail-cap-left, +.yui3-slider-rail-cap-bottom, +.yui3-slider-rail-cap-right, +.yui3-slider-thumb, +.yui3-slider-thumb-image, +.yui3-slider-thumb-shadow { + position: absolute; +} + +.yui3-slider-thumb { + overflow: hidden; +} diff --git a/js/yui3/slider-value-range/assets/slider-core.css b/js/yui3/slider-value-range/assets/slider-core.css new file mode 100644 index 000000000..905d4a34d --- /dev/null +++ b/js/yui3/slider-value-range/assets/slider-core.css @@ -0,0 +1,37 @@ +/* +YUI 3.7.3 (build 5687) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +.yui3-slider, +.yui3-slider-rail { + /* xbrowser inline-block styles */ + display: -moz-inline-stack; /* FF2 */ + display: inline-block; + *display: inline; /* IE 7- (with zoom) */ + zoom: 1; + vertical-align: middle; +} + +.yui3-slider-content { + position: relative; + display: block; +} +.yui3-slider-rail { + position: relative; +} + +.yui3-slider-rail-cap-top, +.yui3-slider-rail-cap-left, +.yui3-slider-rail-cap-bottom, +.yui3-slider-rail-cap-right, +.yui3-slider-thumb, +.yui3-slider-thumb-image, +.yui3-slider-thumb-shadow { + position: absolute; +} + +.yui3-slider-thumb { + overflow: hidden; +} diff --git a/js/yui3/slider-value-range/assets/thumb-x-oblong-dark.png b/js/yui3/slider-value-range/assets/thumb-x-oblong-dark.png Binary files differnew file mode 100644 index 000000000..bc0aa14ce --- /dev/null +++ b/js/yui3/slider-value-range/assets/thumb-x-oblong-dark.png diff --git a/js/yui3/slider-value-range/assets/thumb-x-oblong.png b/js/yui3/slider-value-range/assets/thumb-x-oblong.png Binary files differnew file mode 100644 index 000000000..670ba1ea1 --- /dev/null +++ b/js/yui3/slider-value-range/assets/thumb-x-oblong.png diff --git a/js/yui3/slider-value-range/assets/thumb-x-oblong2-dark.png b/js/yui3/slider-value-range/assets/thumb-x-oblong2-dark.png Binary files differnew file mode 100644 index 000000000..20f126029 --- /dev/null +++ b/js/yui3/slider-value-range/assets/thumb-x-oblong2-dark.png diff --git a/js/yui3/slider-value-range/assets/thumb-x-oblong2.png b/js/yui3/slider-value-range/assets/thumb-x-oblong2.png Binary files differnew file mode 100644 index 000000000..76e34e60a --- /dev/null +++ b/js/yui3/slider-value-range/assets/thumb-x-oblong2.png diff --git a/js/yui3/slider-value-range/assets/thumb-y-oblong-dark.png b/js/yui3/slider-value-range/assets/thumb-y-oblong-dark.png Binary files differnew file mode 100644 index 000000000..a0eed7087 --- /dev/null +++ b/js/yui3/slider-value-range/assets/thumb-y-oblong-dark.png diff --git a/js/yui3/slider-value-range/assets/thumb-y-oblong.png b/js/yui3/slider-value-range/assets/thumb-y-oblong.png Binary files differnew file mode 100644 index 000000000..e63c8d7d8 --- /dev/null +++ b/js/yui3/slider-value-range/assets/thumb-y-oblong.png diff --git a/js/yui3/slider-value-range/assets/thumb-y-oblong2-dark.png b/js/yui3/slider-value-range/assets/thumb-y-oblong2-dark.png Binary files differnew file mode 100644 index 000000000..e91ffb7b3 --- /dev/null +++ b/js/yui3/slider-value-range/assets/thumb-y-oblong2-dark.png diff --git a/js/yui3/slider-value-range/assets/thumb-y-oblong2.png b/js/yui3/slider-value-range/assets/thumb-y-oblong2.png Binary files differnew file mode 100644 index 000000000..89a466727 --- /dev/null +++ b/js/yui3/slider-value-range/assets/thumb-y-oblong2.png diff --git a/js/yui3/slider-value-range/slider-value-range-min.js b/js/yui3/slider-value-range/slider-value-range-min.js new file mode 100644 index 000000000..b0acdd765 --- /dev/null +++ b/js/yui3/slider-value-range/slider-value-range-min.js @@ -0,0 +1,7 @@ +/* +YUI 3.7.3 (build 5687) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +YUI.add("slider-value-range",function(e,t){function o(){this._initSliderValueRange()}var n="min",r="max",i="value",s=Math.round;e.SliderValueRange=e.mix(o,{prototype:{_factor:1,_initSliderValueRange:function(){},_bindValueLogic:function(){this.after({minChange:this._afterMinChange,maxChange:this._afterMaxChange,valueChange:this._afterValueChange})},_syncThumbPosition:function(){this._calculateFactor(),this._setPosition(this.get(i))},_calculateFactor:function(){var e=this.get("length"),t=this.thumb.getStyle(this._key.dim),i=this.get(n),s=this.get(r);e=parseFloat(e)||150,t=parseFloat(t)||15,this._factor=(s-i)/(e-t)},_defThumbMoveFn:function(e){e.source!=="set"&&this.set(i,this._offsetToValue(e.offset))},_offsetToValue:function(e){var t=s(e*this._factor)+this.get(n);return s(this._nearestValue(t))},_valueToOffset:function(e){var t=s((e-this.get(n))/this._factor);return t},getValue:function(){return this.get(i)},setValue:function(e){return this.set(i,e)},_afterMinChange:function(e){this._verifyValue(),this._syncThumbPosition()},_afterMaxChange:function(e){this._verifyValue(),this._syncThumbPosition()},_verifyValue:function(){var e=this.get(i),t=this._nearestValue(e);e!==t&&this.set(i,t)},_afterValueChange:function(e){var t=e.newVal;this._setPosition(t,{source:"set"}),this.thumb.set("aria-valuenow",t),this.thumb.set("aria-valuetext",t)},_setPosition:function(e,t){this._uiMoveThumb(this._valueToOffset(e),t)},_validateNewMin:function(t){return e.Lang.isNumber(t)},_validateNewMax:function(t){return e.Lang.isNumber(t)},_setNewValue:function(e){return s(this._nearestValue(e))},_nearestValue:function(e){var t=this.get(n),i=this.get(r),s;return s=i>t?i:t,t=i>t?t:i,i=s,e<t?t:e>i?i:e}},ATTRS:{min:{value:0,validator:"_validateNewMin"},max:{value:100,validator:"_validateNewMax"},minorStep:{value:1},majorStep:{value:10},value:{value:0,setter:"_setNewValue"}}},!0)},"3.7.3",{requires:["slider-base"]}); |