From 11e6523098abc8bf781fb9d1b71c77a11cf4c884 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 14 Aug 2019 01:53:21 +0200 Subject: a11y font sizing yeaa --- StoneIsland/www/js/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'StoneIsland/www/js/index.js') 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() -- cgit v1.2.3-70-g09d2