From 6ca2fe58987eed31fb54efc340f4945ff0c5c5ef Mon Sep 17 00:00:00 2001 From: hallgren Date: Fri, 24 May 2013 14:20:36 +0000 Subject: [PATCH] Demo page: add a version of the minibar that shows just the MOLTO Application grammars --- demos/index.html | 2 ++ demos/molto.html | 49 +++++++++++++++++++++++++++++++++++++++++ demos/molto_grammars.js | 19 ++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 demos/molto.html create mode 100644 demos/molto_grammars.js diff --git a/demos/index.html b/demos/index.html index 61992ddd1..62833c902 100644 --- a/demos/index.html +++ b/demos/index.html @@ -13,6 +13,8 @@

Tourist Phrasebook +

MOLTO Application Grammars +

Mathbar

GF online editor for simple multilingual grammars diff --git a/demos/molto.html b/demos/molto.html new file mode 100644 index 000000000..cf6a3426b --- /dev/null +++ b/demos/molto.html @@ -0,0 +1,49 @@ + + + +MOLTO Application Grammars + + + + + + + + + + + +

MOLTO Application Grammars

+
+
+ + + +
+ + +[GF + Application Grammars on the MOLTO web site] + + +HTML Last modified: Fri May 24, 2013 + + + + + + + + + + + + + + + + + + + + diff --git a/demos/molto_grammars.js b/demos/molto_grammars.js new file mode 100644 index 000000000..1a7f64518 --- /dev/null +++ b/demos/molto_grammars.js @@ -0,0 +1,19 @@ +var online_options={ + grammars_url: "/grammars/molto/" +} + +var minibar_options= { + show_abstract: true, + show_trees: true, + tree_img_format: "svg", // or "png" + show_grouped_translations: false, + to_multiple: false, + show_brackets: true, + word_replacements: true, + default_source_language: "Eng", + feedback_url: "feedback.html", + try_google: true +} + +var server=pgf_online(online_options); +var minibar=new Minibar(server,minibar_options);