From 72913d68c1e2cfe6767c86b48a1f7fc01088e2f9 Mon Sep 17 00:00:00 2001 From: marcusgreen Date: Sat, 22 Jun 2024 13:27:44 +0000 Subject: [PATCH] Displahing and basic rendereing in mobile --- classes/output/mobile.php | 3 +-- db/mobile.php | 2 +- mobile/qtype_aitext.html | 14 ++++++-------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/classes/output/mobile.php b/classes/output/mobile.php index 2673978..a2af9da 100644 --- a/classes/output/mobile.php +++ b/classes/output/mobile.php @@ -41,8 +41,7 @@ class mobile { public static function mobile_get_aitext($args) { global $CFG; $args = (object) $args; - $folder = $args->appversioncode >= 3950 ? 'latest' : 'ionic3'; - $templatepath = $CFG->dirroot."/question/type/aitext/mobile/$folder/addon-qtype-aitext.html"; + $templatepath = $CFG->dirroot."/question/type/aitext/mobile/qtype_aitext.html"; return [ 'templates' => [ [ diff --git a/db/mobile.php b/db/mobile.php index 1b04244..6fd7189 100644 --- a/db/mobile.php +++ b/db/mobile.php @@ -41,7 +41,7 @@ 'mobile_get_aitext' => [], // Function in classes/output/mobile.php. ], // Function needs caching for offline. 'styles' => [ - 'url' => $CFG->wwwroot.'/question/type/aitext/mobile/styles_app.css', + 'url' => $CFG->wwwroot.'/question/type/aitext/mobile/qtype_aitext_app.css', 'version' => '0.1' ] ] diff --git a/mobile/qtype_aitext.html b/mobile/qtype_aitext.html index 60e3629..2733815 100644 --- a/mobile/qtype_aitext.html +++ b/mobile/qtype_aitext.html @@ -1,14 +1,12 @@ -
-

- -

+
- +

+ +

+ [text]="question.textarea">