User:Ultimate Dark Carnage/Sandbox9.js

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

window.colorSelectLoad = 0; if (colorSelectLoad < 1){ colorSelectLoad = 1; window.colorSelectHTML = '' + 'Color Select ' + '' + '' + 'Color' + 'Gradient' + '' + ' ' +           ' ' +                '' + ' ' +               ' ' +            ' ' +            ' ' +                ' Color: ' + ' ' +                   ' ' +                ' ' +                '' + 'RGBA: </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').val; $('.ColorSelectWrapper').append(colorSelectHTML); $('.ColorSelect input[type="radio"][name="rgb"]').on('change', function{       $('.ColorBox').css('background', 'rgba(' + RGBRed + ', ' + RGBGreen + ', ' + RGBBlue + ', ' + RGBAlpha + ')');    }); }