MyBB Support

Aoki's MyBB Helpdesk

Submitted by Aoki, , Thread ID: 10700

Thread Closed

RE: Aoki's MyBB Helpdesk

This post was last modified: 23-10-2015, 03:39 PM by AAA
#18
So i have this shity color picker on my shity theme, now i know how to add div's, and id's to change colors
but no clue how zo add something like this ....

::-webkit-scrollbar-thumb, .thread_status.dot_newfolder::before



Code:
jQuery(document).ready(function($) {

$('.color-box').colpick({
  onChange:function(hsb,hex,rgb,el,bySetColor) {
$('.thead,.nav-options,.menu').css("background-color", "#"+hex);
$.cookie("mycookie", "#" + hex,{expires:365}); //set cookie with name "mycookie" and value that you have picked
  }
}).keyup(function(){
  $(this).colpickSetColor(this.value);
});


//Check if cookie exists
if (typeof $.cookie('mycookie') === 'undefined'){
//no cookie
} else {
//cookie is there, do something
$(".thead,.nav-options,.menu").css("backgroundColor", $.cookie('mycookie'));
}

});



TNX Aoki
[Image: XhhKTdF.png]

Users browsing this thread: 1 Guest(s)