1/*! 2* Copyright (c) 2012 Ben Olson (https://github.com/bseth99/jquery-ui-extensions) 3* jQuery UI LabeledSlider @VERSION 4* 5* Permission is hereby granted, free of charge, to any person 6* obtaining a copy of this software and associated documentation 7* files (the "Software"), to deal in the Software without 8* restriction, including without limitation the rights to use, 9* copy, modify, merge, publish, distribute, sublicense, and/or sell 10* copies of the Software, and to permit persons to whom the 11* Software is furnished to do so, subject to the following 12* conditions: 13* 14* The above copyright notice and this permission notice shall be 15* included in all copies or substantial portions of the Software. 16* 17* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 19* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 21* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24* OTHER DEALINGS IN THE SOFTWARE. 25* 26* Depends: 27* jquery.ui.core.js 28* jquery.ui.widget.js 29* jquery.ui.mouse.js 30* jquery.ui.slider.js 31*/ 32 33!function(i,t){i.widget("ui.labeledslider",i.ui.slider,{version:"@VERSION",options:{tickInterval:0,tweenLabels:!0,tickLabels:null,tickArray:[]},uiSlider:null,tickInterval:0,tweenLabels:!0,_create:function(){this._detectOrientation(),this.uiSlider=this.element.wrap('<div class="ui-slider-wrapper ui-widget"></div>').before('<div class="ui-slider-labels"></div>').parent().addClass(this.orientation).css("font-size",this.element.css("font-size")),this._super(),this.element.removeClass("ui-widget"),this._alignWithStep(),this._drawLabels()},_drawLabels:function(){var t,e=this.options.tickLabels||{},s=this.uiSlider.children(".ui-slider-labels"),a="horizontal"==this.orientation?"left":"bottom",n=this.options.min,l=this.options.max,r=this.tickInterval,o=l-n,h=this.options.tickArray,c=h.length>0,d=0;for(s.html("");o>=d;d++)(!c&&d%r==0||c&&h.indexOf(d+n)>-1)&&(t=e[d+n]?e[d+n]:this.options.tweenLabels?d+n:"",i("<div>").addClass("ui-slider-label-ticks").css(a,Math.round(d/o*1e4)/100+"%").html('<span data-value="'+d+'">'+t+"</span>").appendTo(s))},_setOption:function(i,t){switch(this._super(i,t),i){case"tickInterval":case"tickLabels":case"tickArray":case"min":case"max":case"step":this._alignWithStep(),this._drawLabels();break;case"orientation":this.element.removeClass("horizontal vertical").addClass(this.orientation),this._drawLabels()}},_alignWithStep:function(){this.options.tickInterval<this.options.step?this.tickInterval=this.options.step:this.tickInterval=this.options.tickInterval},_destroy:function(){this._super(),this.uiSlider.replaceWith(this.element)},widget:function(){return this.uiSlider}})}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.