Page 2 of 2 Go to page : 1, 2
- Guest
First topic message reminder :
I added this java code
I added this java code
- Code:
$(function() {
var thanked = $('#main-content > .post[style*="background-color"]')[0];
if (thanked) {
thanked.className += ' thanked-post';
thanked.style.backgroundColor = '';
thanked.insertAdjacentHTML(
'beforeend',
'<div class="thanked-message"><i class="fa fa-thumbs-up"></i> The topic starter has thanked {USERNAME} !</div>'
.replace('{USERNAME}', $(thanked).find('p.author a').text())
);
$('head').append('<style type="text/css">'+
'.thanked-post .thanked-message { color:#FFF; font-size:12px; background:#88cc55; border-radius:2px; border-bottom:1px solid #77BB44; padding:0px 10px; margin-bottom: -6px; margin-left: -5px; margin-right: -5px; height: 30px; line-height: 31px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }'+
'.thanked-message .fa-thumbs-up { font-size:16px; margin-right:5px; vertical-align:-2px; }'+
'@media (min-width:0px) and (max-width:768px) {'+
'.thanked-post { padding-bottom:116px; }'+
'.thanked-post .thanked-message { position:absolute; bottom:0; left:0; right:0; }'+
'.thanked-post .postbody .profile-icons { bottom:44px; }'+
'}'+
'</style>');
}
});
Last edited by The sea on Sun Feb 27, 2022 3:31 pm; edited 1 time in total
- Guest
Test
- Guest
@Admin
- Manager
- Posts : 19
Points : 24
Reputation : 3
Join date : 2022-03-09
Age : 30
Location : Newyork
Language : English
Test
- Manager
- Posts : 19
Points : 24
Reputation : 3
Join date : 2022-03-09
Age : 30
Location : Newyork
Language : English
Thanks
Go to page : 1, 2
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Permissions in this forum:
You cannot reply to topics in this forum