Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #28652
| Subject | Re: Change font size in multiple classes |
|---|---|
| Newsgroups | comp.lang.javascript |
| References | <l8-dnaGgOJ9fWXrInZ2dnUU7-VOdnZ2d@westnet.com.au> <UWkNucEwc06VFw8t@invalid.uk.co.demon.merlyn.invalid> |
| From | Andrew Poulos <ap_prog@hotmail.com> |
| Date | 2015-09-06 19:30 +1000 |
| Message-ID | <EOednaQ1K6UCmnHInZ2dnUU7-KWdnZ2d@westnet.com.au> (permalink) |
On 6/09/2015 5:49 AM, Dr J R Stockton wrote:
> In comp.lang.javascript message <l8-dnaGgOJ9fWXrInZ2dnUU7-VOdnZ2d@westne
> t.com.au>, Thu, 3 Sep 2015 13:55:45, Andrew Poulos <ap_prog@hotmail.com>
> posted:
>
>> A 3rd party elearning app that the client is using publishes to HTML.
>> The client wants me to add a button that will allow the user to
>> increase/decrease the font size.
>
> Contemplate <http://www.merlyn.demon.co.uk/js-tests.htm#Fnt> and its
> "Set" button.
Ok though it looks like it works because the body's font size is set to
100%. The app does not produce any code that sets a body's font size nor
does it use anything other than pixel font size dimensions for textural
content.
> Also, in <http://www.merlyn.demon.co.uk/essai-3c.htm>, I use
>
> var Esay = document.getElementById("essai")
> Esay.innerHTML = Esay.innerHTML.
> replace(/##(\w['~]?)?(\d)?([\.,; ]*)?/g, Func)
>
> in which 'essai' is the ID of a rather large DIV element.
>
> It is perhaps possible to edit the string document.body.innerHTML with a
> RegExp and assign the result to document.body.innerHTML - that should
> probably be the last statement of a function.
Thanks for the RegExp but I'm not sure I want to play with replacing a
body's HTML when I'm not 100% certain what the app's code is trying to do.
> What does the client want to happen to the size of images? By default
> they are sized in px but they can be styled in ex, em, etc.
Non-textural elements are to stay unchanged.
> An alternative might be to tell the client about Ctrl-+ Ctrl-- Ctrl-0
> and Ctrl-mousewheel, if the client system supports those.
The entire window scaling is something that the client does not want.
Andrew Poulos
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-03 13:55 +1000
Re: Change font size in multiple classes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-03 10:09 +0200
Re: Change font size in multiple classes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-03 10:51 +0200
Re: Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-03 20:39 +1000
Re: Change font size in multiple classes Jake Jarvis <pig_in_shoes@yahoo.com> - 2015-09-03 16:20 +0200
Re: Change font size in multiple classes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-03 16:27 +0200
Re: Change font size in multiple classes Jake Jarvis <pig_in_shoes@yahoo.com> - 2015-09-03 16:30 +0200
Re: Change font size in multiple classes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-03 16:39 +0200
Re: Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-04 15:49 +1000
Re: Change font size in multiple classes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-04 09:37 +0200
Re: Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-04 18:11 +1000
Re: Change font size in multiple classes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-07 03:33 +0200
Re: Change font size in multiple classes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-03 16:24 +0200
Re: Change font size in multiple classes Dr J R Stockton <reply1500@merlyn.demon.co.uk.invalid> - 2015-09-05 20:49 +0100
Re: Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-06 19:30 +1000
Re: Change font size in multiple classes Dr J R Stockton <reply1500@merlyn.demon.co.uk.invalid> - 2015-09-07 20:27 +0100
Re: Change font size in multiple classes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-06 14:07 +0200
Re: Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-07 09:53 +1000
Re: Change font size in multiple classes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-07 20:35 +0200
Re: Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-08 14:18 +1000
Re: Change font size in multiple classes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-09 04:51 +0200
csiph-web