o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356306315.411734: @value"ô{I" class:EFI"BundledAsset;FI"logical_path;FI"cytoplasm/cytoSlider.js;FI" pathname;FI"g/Applications/XAMPP/xamppfiles/htdocs/cytoplasm/app/assets/javascripts/cytoplasm/cytoSlider.js.erb;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-12-23T18:44:45-05:00;FI" length;FiI" digest;F"%04c636fe8cb8cd781d38a00237273732I" source;FI"// CytoSlider v0.5 // By MacKinley Smith (function($){ var defaults = { widget:{ label:{ css:{ font:'12px Verdana' }, html:"", readout:{ css:{}, unit:false } }, slider:{ css:{}, options:{ min:0, max:100, value:0, slide:function(e,ui){}, change:function(e,ui){} } }, wrapper:{ css:{ padding:"5px 0px" } } }, events:{ create:function(cy){}, change:function(cy,event){}, destroy:function(cy){} } }; var methods = { init:function(options,reinit){ if (reinit==null) reinit = false; return this.each(function(){ var $this = $(this); if ($this.data('cytoSlider')!=null) return console.warn("You cannot reinstatiate cytoSlider before calling the destroy method.\nProtip: Use the refresh method to reinstantiate in one move."); if (!$this.hasClass('cytoSlider')) $this.addClass("cytoSlider"); // Initialize settings var settings; if (!reinit) { settings = $.extend(true,{},defaults,options); if ($this.data('settings')!=null) settings = $.extend(true,{},settings,$this.data('settings')); if ($this.data('label')!=null) settings.widget.label.html = $this.data('label'); if ($this.data('unit')!=null) settings.widget.label.readout.unit = $this.data('unit'); if ($this.data('min')!=null) settings.widget.slider.options.min = $this.data('min'); if ($this.data('max')!=null) settings.widget.slider.options.max = $this.data('max'); if ($this.val()!=null && $this.val()!="") settings.widget.slider.options.value = parseInt($this.val()); } else settings = options; // Generate widget settings.widget.wrapper.element = $this.wrap("
").parent().addClass('cytoSlider-wrapper').css(settings.widget.wrapper.css); settings.widget.label.element = $('