You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 05-06-2013 19:06:06

semajhtims
Contributors
Registered: 21-05-2013
Posts: 52

Sidebar background color

HI,

I was wondering if anyone has modified this project so that teh sidebars background color is the same as the tile that invoked it?


Cheers

Offline

#2 05-06-2013 19:31:56

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Sidebar background color

Probably adding this js code to the template should work:

$(document).on("click","a[href^='panels/']",function(){
$("#panel").css("background-color",$(this).css("background-color"));
});

Offline

#3 05-06-2013 20:08:23

semajhtims
Contributors
Registered: 21-05-2013
Posts: 52

Re: Sidebar background color

Would there be any particular place that one would add this?

Offline

#4 05-06-2013 20:09:36

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Sidebar background color

best way is your custom plugin folder (to prevent overwriting with updates).

So create a file
plugins/your/plugin.js

and add it there. It will automaticly loaded in the template.

Offline

#5 05-06-2013 20:21:50

semajhtims
Contributors
Registered: 21-05-2013
Posts: 52

Re: Sidebar background color

Thank You Thomas!

Offline

Board footer

Powered by FluxBB