summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorhallgren <hallgren@altocumulus.org>2011-02-18 11:51:41 +0000
committerhallgren <hallgren@altocumulus.org>2011-02-18 11:51:41 +0000
commitc2c8f34288066e250ac390feca410c2d548846a1 (patch)
tree57502581c8d1c530777b36f1958361fbd9ddcad6 /demos
parent8dd2a1ddc05043f98b092b67364d7051e947e82d (diff)
translation quiz: a small change to make easy to select an alternate grammar directory
Diffstat (limited to 'demos')
-rw-r--r--demos/TransQuiz/translation_quiz.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/TransQuiz/translation_quiz.html b/demos/TransQuiz/translation_quiz.html
index 5ea991b77..e99d3c77e 100644
--- a/demos/TransQuiz/translation_quiz.html
+++ b/demos/TransQuiz/translation_quiz.html
@@ -139,6 +139,10 @@
//grammar_list: ["Foods.pgf"], // leave undefined to get list from server
}
+ if(/^\?\/tmp\//.test(location.search)) {
+ online_options.grammars_url=location.search.substr(1);
+ }
+
var server=pgf_online(online_options);
var minibar_options= {