increase/decrease font size in topics

View previous topic View next topic Go down

increase/decrease font size in topics

Post by _Twisted_Mods_ on 1/24/2015, 7:26 pm

avatar
_Twisted_Mods_
Founder
Founder

Posts : 101
Reputation : 2
Birthday : 1986-08-05
Join date : 2014-10-03
Age : 30
Location : USA

View user profile
acp>modules>javascript management

make sure javascript is turned on  .. if not  turn it on and save  then

create a new javascript and set
titlle: dont matter
placement: in topics


you can change the images to what ever u like


punbb
Code:
$(function(){
var minimg = 'http://icons.iconarchive.com/icons/icons8/windows-8/16/Very-Basic-Minus-icon.png';
var maximg = 'http://icons.iconarchive.com/icons/icons8/windows-8/16/Very-Basic-Plus-icon.png';
$('#main-content
 .post_body').prepend('Font Size: <img id="plfonsize"
src="'+maximg+'"><img src="'+minimg+'"
id="minfonsize"><br><br> ');
$('#main-content .post_body').css('line-height','initial');
$('#plfonsize').click(function(){
str = parseInt($(this).parent().css('font-size'));
$(this).parent().css('font-size',str+2+"px");
});
$('#minfonsize').click(function(){
str = parseInt($(this).parent().css('font-size'));
$(this).parent().css('font-size',str-2+"px");
});
});


phpbb3

Code:
    $(function(){
    var minimg = 'http://icons.iconarchive.com/icons/icons8/windows-8/16/Very-Basic-Minus-icon.png';
    var maximg = 'http://icons.iconarchive.com/icons/icons8/windows-8/16/Very-Basic-Plus-icon.png';
    $('#main-content .postbody .content').prepend('Font Size: <img id="plfonsize" src="'+maximg+'"><img src="'+minimg+'" id="minfonsize"><br><br> ');
    $('#main-content .postbody .content').css('line-height','initial');
    $('#plfonsize').click(function(){
    str = parseInt($(this).parent().css('font-size'));
    $(this).parent().css('font-size',str+2+"px");
    });
    $('#minfonsize').click(function(){
    str = parseInt($(this).parent().css('font-size'));
    $(this).parent().css('font-size',str-2+"px");
    });
    });

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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