summaryrefslogtreecommitdiffstats
path: root/js/yui3/clickable-rail
diff options
context:
space:
mode:
Diffstat (limited to 'js/yui3/clickable-rail')
-rw-r--r--js/yui3/clickable-rail/assets/slider-base-core.css37
-rw-r--r--js/yui3/clickable-rail/assets/slider-core.css37
-rw-r--r--js/yui3/clickable-rail/assets/thumb-x-oblong-dark.pngbin0 -> 4042 bytes
-rw-r--r--js/yui3/clickable-rail/assets/thumb-x-oblong.pngbin0 -> 961 bytes
-rw-r--r--js/yui3/clickable-rail/assets/thumb-x-oblong2-dark.pngbin0 -> 4045 bytes
-rw-r--r--js/yui3/clickable-rail/assets/thumb-x-oblong2.pngbin0 -> 706 bytes
-rw-r--r--js/yui3/clickable-rail/assets/thumb-y-oblong-dark.pngbin0 -> 519 bytes
-rw-r--r--js/yui3/clickable-rail/assets/thumb-y-oblong.pngbin0 -> 1023 bytes
-rw-r--r--js/yui3/clickable-rail/assets/thumb-y-oblong2-dark.pngbin0 -> 706 bytes
-rw-r--r--js/yui3/clickable-rail/assets/thumb-y-oblong2.pngbin0 -> 746 bytes
-rw-r--r--js/yui3/clickable-rail/clickable-rail-min.js7
11 files changed, 81 insertions, 0 deletions
diff --git a/js/yui3/clickable-rail/assets/slider-base-core.css b/js/yui3/clickable-rail/assets/slider-base-core.css
new file mode 100644
index 000000000..905d4a34d
--- /dev/null
+++ b/js/yui3/clickable-rail/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/clickable-rail/assets/slider-core.css b/js/yui3/clickable-rail/assets/slider-core.css
new file mode 100644
index 000000000..905d4a34d
--- /dev/null
+++ b/js/yui3/clickable-rail/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/clickable-rail/assets/thumb-x-oblong-dark.png b/js/yui3/clickable-rail/assets/thumb-x-oblong-dark.png
new file mode 100644
index 000000000..bc0aa14ce
--- /dev/null
+++ b/js/yui3/clickable-rail/assets/thumb-x-oblong-dark.png
Binary files differ
diff --git a/js/yui3/clickable-rail/assets/thumb-x-oblong.png b/js/yui3/clickable-rail/assets/thumb-x-oblong.png
new file mode 100644
index 000000000..670ba1ea1
--- /dev/null
+++ b/js/yui3/clickable-rail/assets/thumb-x-oblong.png
Binary files differ
diff --git a/js/yui3/clickable-rail/assets/thumb-x-oblong2-dark.png b/js/yui3/clickable-rail/assets/thumb-x-oblong2-dark.png
new file mode 100644
index 000000000..20f126029
--- /dev/null
+++ b/js/yui3/clickable-rail/assets/thumb-x-oblong2-dark.png
Binary files differ
diff --git a/js/yui3/clickable-rail/assets/thumb-x-oblong2.png b/js/yui3/clickable-rail/assets/thumb-x-oblong2.png
new file mode 100644
index 000000000..76e34e60a
--- /dev/null
+++ b/js/yui3/clickable-rail/assets/thumb-x-oblong2.png
Binary files differ
diff --git a/js/yui3/clickable-rail/assets/thumb-y-oblong-dark.png b/js/yui3/clickable-rail/assets/thumb-y-oblong-dark.png
new file mode 100644
index 000000000..a0eed7087
--- /dev/null
+++ b/js/yui3/clickable-rail/assets/thumb-y-oblong-dark.png
Binary files differ
diff --git a/js/yui3/clickable-rail/assets/thumb-y-oblong.png b/js/yui3/clickable-rail/assets/thumb-y-oblong.png
new file mode 100644
index 000000000..e63c8d7d8
--- /dev/null
+++ b/js/yui3/clickable-rail/assets/thumb-y-oblong.png
Binary files differ
diff --git a/js/yui3/clickable-rail/assets/thumb-y-oblong2-dark.png b/js/yui3/clickable-rail/assets/thumb-y-oblong2-dark.png
new file mode 100644
index 000000000..e91ffb7b3
--- /dev/null
+++ b/js/yui3/clickable-rail/assets/thumb-y-oblong2-dark.png
Binary files differ
diff --git a/js/yui3/clickable-rail/assets/thumb-y-oblong2.png b/js/yui3/clickable-rail/assets/thumb-y-oblong2.png
new file mode 100644
index 000000000..89a466727
--- /dev/null
+++ b/js/yui3/clickable-rail/assets/thumb-y-oblong2.png
Binary files differ
diff --git a/js/yui3/clickable-rail/clickable-rail-min.js b/js/yui3/clickable-rail/clickable-rail-min.js
new file mode 100644
index 000000000..28240d7c1
--- /dev/null
+++ b/js/yui3/clickable-rail/clickable-rail-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("clickable-rail",function(e,t){function n(){this._initClickableRail()}e.ClickableRail=e.mix(n,{prototype:{_initClickableRail:function(){this._evtGuid=this._evtGuid||e.guid()+"|",this.publish("railMouseDown",{defaultFn:this._defRailMouseDownFn}),this.after("render",this._bindClickableRail),this.on("destroy",this._unbindClickableRail)},_bindClickableRail:function(){this._dd.addHandle(this.rail),this.rail.on(this._evtGuid+e.DD.Drag.START_EVENT,e.bind(this._onRailMouseDown,this))},_unbindClickableRail:function(){if(this.get("rendered")){var e=this.get("contentBox"),t=e.one("."+this.getClassName("rail"));t.detach(this.evtGuid+"*")}},_onRailMouseDown:function(e){this.get("clickableRail")&&!this.get("disabled")&&(this.fire("railMouseDown",{ev:e}),this.thumb.focus())},_defRailMouseDownFn:function(e){e=e.ev;var t=this._resolveThumb(e),n=this._key.xyIndex,r=parseFloat(this.get("length"),10),i,s,o;t&&(i=t.get("dragNode"),s=parseFloat(i.getStyle(this._key.dim),10),o=this._getThumbDestination(e,i),o=o[n]-this.rail.getXY()[n],o=Math.min(Math.max(o,0),r-s),this._uiMoveThumb(o,{source:"rail"}),e.target=this.thumb.one("img")||this.thumb,t._handleMouseDownEvent(e))},_resolveThumb:function(e){return this._dd},_getThumbDestination:function(e,t){var n=t.get("offsetWidth"),r=t.get("offsetHeight");return[e.pageX-Math.round(n/2),e.pageY-Math.round(r/2)]}},ATTRS:{clickableRail:{value:!0,validator:e.Lang.isBoolean}}},!0)},"3.7.3",{requires:["slider-base"]});