2 $('.bg_input').ColorPicker({
\r
3 onBeforeShow: function () {
\r
4 $(this).ColorPickerSetColor(this.value);
\r
6 onSubmit: function(hsb, hex, rgb, el) {
\r
7 $(el).val("#" + hex);
\r
8 $(el).ColorPickerHide();
\r
10 }).bind('keyup', function(){
\r
11 $(this).ColorPickerSetColor(this.value);
\r
14 $('#reset_link').bind('click', function(e){
\r
16 if(confirm("You will lose all customized settings!")){
\r
17 $.cookie('myCSS', '');
\r
18 $.cookie('fontsize', '');
\r
19 $.cookie('bodyBg', '');
\r
25 "Twitter Default":{myCSS:"/*default*/ "},
\r
26 "Dark Rabr":{myCSS:"@import url(themes/1.css);"},
\r
27 "Monokai Python":{myCSS:"@import url(themes/2.css);"},
\r
28 "Old Times":{myCSS:"@import url(themes/3.css);"},
\r
29 "Pink":{myCSS:"@import url(themes/4.css);"},
\r
30 "Warm @lgsoltek":{myCSS:"@import url(themes/5.css);"},
\r
31 "Cold @lgsoltek":{myCSS:"@import url(themes/6.css);"},
\r
32 "Green":{myCSS:"@import url(themes/7.css);"},
\r
33 "Shine":{myCSS:"@import url(themes/8.css);"},
\r
34 "Flew":{myCSS:"@import url(themes/9.css);"},
\r
35 "Golden":{myCSS:"@import url(themes/10.css);"},
\r
36 "#red":{myCSS:"@import url(themes/11.css);"},
\r
37 "Storm":{myCSS:"@import url(themes/12.css);"},
\r
38 "City":{myCSS:"@import url(themes/13.css);"},
\r
39 "Cosmos":{myCSS:"@import url(themes/14.css);"},
\r
40 "Pride (Rainbow)":{myCSS:"@import url(themes/15.css); /* Have a gay day! */"},
\r
41 "Drop Bombs":{myCSS:"@import url(themes/16.css);"},
\r
42 "Minimal":{myCSS:"@import url(themes/minimal.css);"},
\r
45 $.each(style, function (i,o) {
\r
46 $("#styleSelect").append('<option value="' + i + '">' + i + '</option>');
\r
48 $("#styleSelect").change(function(){
\r
49 if ($(this).val() != "n/a") {
\r
50 $.each(style[$(this).val()], function (i,o) {
\r
59 function show_pic_option () {
\r
60 var cookie_val = $.cookie (COOKIE_NAME);
\r
61 if (cookie_val === null) {
\r
62 $.cookie (COOKIE_NAME, true, options);
\r
64 else if (cookie_val === 'false') {
\r
65 $("#show_pic").attr("checked", false);
\r
68 $("#show_pic").click(function (){
\r
69 $.cookie (COOKIE_NAME, $("#show_pic").attr("checked"), options);
\r
72 if ($.cookie('mediaPre') === null) {
\r
73 $.cookie('mediaPre', true, { expires: 30 });
\r
74 $("#mediaPreSelect").attr('checked', true);
\r
77 if($.cookie('mediaPre') === 'true'){
\r
78 $("#mediaPreSelect").attr('checked', true);
\r
80 $("#mediaPreSelect").attr('checked', false);;
\r
83 $("#mediaPreSelect").click(function(){
\r
84 if($(this).attr('checked') == true){
\r
85 $.cookie('mediaPre', true, { expires: 30 });
\r
87 $.cookie('mediaPre', false, { expires: 30 });
\r