diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-08-14 01:53:21 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-08-14 01:53:21 +0200 |
| commit | 11e6523098abc8bf781fb9d1b71c77a11cf4c884 (patch) | |
| tree | 5ab48702e9425f29545423f8b7142299f76ff63d /StoneIsland/www/js/index.js | |
| parent | a0ea31b7b1e189e4ea742dcabadcd1942caf1864 (diff) | |
a11y font sizing yeaa
Diffstat (limited to 'StoneIsland/www/js/index.js')
| -rwxr-xr-x | StoneIsland/www/js/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js index ed82a820..69a0a3e0 100755 --- a/StoneIsland/www/js/index.js +++ b/StoneIsland/www/js/index.js @@ -86,6 +86,15 @@ var app = (function(){ sim.fetch(app.api_ready) var image = new Image image.src = "./img/compass-logo.png" + + MobileAccessibility.usePreferredTextZoom(true); + MobileAccessibility.getTextZoom(function getTextZoomCallback(textZoom) { + console.log('WebView text should be scaled to the preferred value ' + textZoom + '%') + if (textZoom > 100) { + app.accessible = true + $("html").addClass('accessible') + } + }); } else { app.api_ready() |
