Math question font

roadside
roadside's Avatar Topic Author
Posts: 15
4 years 10 months ago #3609 by roadside
Math question font was created by roadside
How can I change the color and size of the math question font?

Attachments:

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1185
4 years 10 months ago #3610 by Lodder
Replied by Lodder on topic Math question font
Hi roadside,

Currently, the maths questions is generated through a HTML5 canvas which is all done in the Javascript file. The only way you're going to be able to do this is by performing an override of the Javascript file.

So copy the following file from:
media/mod_shoutbox/js/mod_shoutbox.js
to:
templates/YOUR_TEMPLATE/js/mod_shoutbox/mod_shoutbox.js

Then open the file and go to line 334, where you'll see the following code and can change to whatever you wish:
ctx.fillStyle = 'grey';

Once done, rename the file from mod_shoutbox.js to mod_shoutbox.min.js

I would also suggest using a minifying to reduce the file size: skalman.github.io/UglifyJS-online but this is optional.

Hope this helps

Please Log in or Create an account to join the conversation.

roadside
roadside's Avatar Topic Author
Posts: 15
4 years 10 months ago #3611 by roadside
Replied by roadside on topic Math question font
Thx, working.

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1185
4 years 10 months ago #3612 by Lodder
Replied by Lodder on topic Math question font
Hi Roadside,

I've just released an update for the Shoutbox, which now allows you to easily change the colour via the Shoutbox options.

Please remove the following directory:
templates/YOUR_TEMPLATE/js/mod_shoutbox

then update to the latest version, which you can download from here: joomjunk.co.uk/products/ajax-shoutbox-pro.html

regards,
Lodder

Please Log in or Create an account to join the conversation.

roadside
roadside's Avatar Topic Author
Posts: 15
4 years 10 months ago #3614 by roadside
Replied by roadside on topic Math question font
Hi guys,

Thank you for your work, I'm really satisfied your shoutbox.

Zoltan

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum