Jump to content
MakeWebGames

To help the Visually Impaired Players + Change font styles


Recommended Posts

Posted

This Plugin will allow your users to select from different font sizes they can reduce and Enlarge the font to suit their needs and the options are saved they can also change their Fontstyles and again this is saved... The Javascript wasnt written by me but ive added some functions so it works with MCC...

Call this file easydynfont.js

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

open up header.php

where the HTML part is find

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Underneath add

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now remove the function for fonts which is

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now near the end of the HTML look for the body tag <body> and underneath add

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And your done

DEMO >>> http://www.mccode.doom-nights.com

USERNAME= test AND PASSWORD= test

Download the fontimages.rar fle and upload to the root of your game

Posted

So much unnecessary code, just set a master font size then for other elements just use em sizing. The saving part could be created in seconds with jQuery.

Posted

There is actually a lot more work than a different font.

Each image needs a long desc , tables need a caption etc...

To comply to the rules for Visually Impaired internet users .... it's really a lot of work to alter a website

Posted
So much unnecessary code, just set a master font size then for other elements just use em sizing. The saving part could be created in seconds with jQuery.

I dont claim to be a geat Javascript coder i just added some extra parts and thought it would be useful..

However if this can be reduced in size and made smaller than the original Script thats good by me the font size on this doesnt have a limit and can be zoomed in and out at incredible sizes.

Posted

yet another good addition to people's games.. This will make your players know that you care about your game and that no matter what their vision is they can play and actually see what your clicking on.. Well thought of illusions +1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...