Staff bar header color according to group color

3 posters

Go down

Solved Staff bar header color according to group color

Post by Dipener Mon Feb 06, 2023 3:13 pm

Hello,

I used this java code below for staff header bar color
Code:
(function($) {
    'use strict';
 
  $('<style>').text([
    '.fa-post-staff {',
    '  border-top: 5px solid;',
    '}',
  ].join('\n'))
    .appendTo('head');
 
    $(function() {
        if (!/^\/t(\d+)(p\d+-|-).*$/i.test(location.pathname)) return;
        $('.post').each(function() {
            var $post = $(this);
            var $name = $post.find('.postprofile strong[style] > a[href] > span[style]');
            if (!$name.length) return;
            if (!$name.css('color')) return;
            $post.addClass('fa-post-staff').css('border-top-color', $name.css('color'));
        });
    });
})(jQuery);

But it is showing like this below. Under the red bar,  i see a blue bar
Here you see
Staff bar header color according to group color Screen18
Dipener
Dipener
Banned

Posts : 111
FS - Cash : 285
Age : 31

https://moviez.forumotion.asia/

Solved Re: Staff bar header color according to group color

Post by System32 Mon Feb 06, 2023 3:28 pm

In CSS type this:

Code:
div.post .inner {
border-top:none;
}
System32
System32
Premium MemberRetired Staff

Posts : 324
FS - Cash : 350
Age : 31

Solved Re: Staff bar header color according to group color

Post by Dipener Mon Feb 06, 2023 3:46 pm

Wow solved, thanks
Dipener
Dipener
Banned

Posts : 111
FS - Cash : 285
Age : 31

https://moviez.forumotion.asia/

System32 likes this post

Solved Re: Staff bar header color according to group color

Post by System32 Mon Feb 06, 2023 3:51 pm

Information:Issue solved, topic locked.
System32
System32
Premium MemberRetired Staff

Posts : 324
FS - Cash : 350
Age : 31

Solved Re: Staff bar header color according to group color

Post by Mati Fri Feb 10, 2023 2:58 pm

Information: Topic moved to HTML, CSS & JavaScript Archives.
Mati
Mati
Staff MemberAdministratorFounder

Posts : 557
FS - Cash : 1162

https://forumservice.forumotion.com

Solved Re: Staff bar header color according to group color

Post by Sponsored content


Sponsored content


Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum