{combine_script id='jquery.ui.slider' require='jquery.ui' load='footer' path='themes/default/js/ui/minified/jquery.ui.slider.min.js'} {combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"} {combine_script id="farbtastic" load='footer' require="jquery" path=$SPBA_PATH2|@cat:"js/farbtastic/farbtastic.js"} {combine_css path=$SPBA_PATH2|@cat:"js/farbtastic/farbtastic.css"} {footer_script} jQuery(function($) { // slide $('.range').each(function(){ var cls=$(this).attr('class'); var elem=$(this).parent(); var input=elem.find('input'); var options={}; elem.append('
'); options.slide=function(event,ui){ elem.find('label span').empty().append(ui.value); input.val(ui.value); } options.value=input.val(); options.range='min'; options.min=$(this).data('min'); options.max=$(this).data('max'); elem.find('.uirange').slider(options); elem.find('label span').empty().append(input.val()); input.hide(); }); // schow option cumulus if option is select $("input[name=insspbu6]:checked").each(function(){ if($(this).val()==2){ $('.optionseecolor').show(); } }); $("input[name=insspbu6]").change(function(){ if($(this).attr("value")==2){ $('.optionseecolor').show(); }else{ $('.optionseecolor').hide(); } }); // init colorpicker $('#colorpicker').farbtastic('#hexval'); }); {/footer_script} {html_style} .uirange{ margin:10px; margin-left: 40px; } {/html_style}