User:Ultimate Dark Carnage/Sandbox9.js

/******************************
 * Color Select Module *****
 * Created by **********
 * Ultimate Dark Carnage ****
 * Ultimate Dark Carnage ****

window.colorSelectLoad = 0; if (colorSelectLoad < 1 && typeof colorSelectLoad != "undefined"){ colorSelectLoad = 1; window.colorSelectHTML = '' + 'Color Select ' + '' + '' + 'Color' + 'Gradient' + '' + ' ' +           ' ' +                '' + ' ' +               ' ' +            ' ' +            ' ' +                ' Color: ' + ' ' +               ' ' +                '' + 'RGBA: rgb</li>' + 'Hex: </li>' + '</ul>' + ' ' +       ' ';    if ($('.ColorSelectNavigation li').hasClass('ColorSelectDisabled') == true){ $(this).children('a').removeAttr('href'); }   var RGBRed = $('#RGBRed').val; var RGBGreen = $('#RGBGreen').val; var RGBBlue = $('#RGBBlue').val; var RGBAlpha = #('#RGBAlpha:not(:disabled)').val; if ($('#RGBAlpha').is(':disabled') == true){ $('.ColorSelectForm input[name="rgb"][type="range"]').on('change', function{           $('.ColorSelect .ColorBox').css('background', 'rgb(' + RGBRed + ', ' + RGBGreen + ', ' + RGBBlue + ')');        }); }   $('.ColorSelectWrapper').append(colorSelectHTML); }