mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
Translation quiz: improvements from Elnaz
This commit is contained in:
@@ -2,7 +2,7 @@ body {
|
||||
background: #eee url("brushed-metal.png");
|
||||
}
|
||||
|
||||
/*th, td { vertical-align: baseline; text-align: left; }*/
|
||||
/* th, td { vertical-align: baseline; text-align: left; } */
|
||||
|
||||
div#surface {
|
||||
min-height: 3ex;
|
||||
|
||||
@@ -51,7 +51,7 @@ function Minibar(server,opts,target) {
|
||||
this.translations=div_id("translations");
|
||||
|
||||
this.minibar=element(target || "minibar");
|
||||
this.minibar_contin=element("minibar_contin");
|
||||
this.minibar_contin=element("minibar_contin");
|
||||
this.minibar_buttons=element("minibar_buttons");
|
||||
this.minibar.innerHTML="";
|
||||
|
||||
@@ -146,7 +146,7 @@ Minibar.prototype.show_languages=function(grammar_info) {
|
||||
|
||||
//var langname = element("to_menu").value;
|
||||
//to_menu.current={to: langname, input: ""};
|
||||
clear_all();
|
||||
//clear_all();
|
||||
}
|
||||
|
||||
from_menu.onchange=bind(new_language,t);
|
||||
|
||||
@@ -33,7 +33,7 @@ function show_word_magnets()
|
||||
{
|
||||
show_element("words");
|
||||
words_hidden= false;
|
||||
var buttons_bar=element("buttons_bar")
|
||||
var buttons_bar=element("buttons_bar");
|
||||
buttons_bar.removeChild(buttons_bar.lastChild);
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,7 @@ function hide_word_magnets()
|
||||
words_hidden= true;
|
||||
|
||||
//add "Show magnets" button
|
||||
var buttons_bar=element("buttons_bar")
|
||||
var buttons_bar=element("buttons_bar");
|
||||
appendChildren(buttons_bar,
|
||||
[ button("Show Magnets","show_word_magnets()","M", "show_magnets")]);
|
||||
}
|
||||
|
||||
@@ -18,11 +18,12 @@
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<body onLoad="pre_start()">
|
||||
|
||||
<div id = "info" >
|
||||
<a href="javascript:popUp('quiz_about.html', 'about')">About GF Translation Quiz</a>
|
||||
<h2 style=" padding-left: 35px;"><i> Welcome to <b>GF Translation Quiz </i></b></h2>
|
||||
<h2 style=" padding-left: 35px;"><i> Welcome to GF Translation Quiz </i></h2>
|
||||
|
||||
<p style="font-size:20px;">
|
||||
To start the quiz choose a grammar, From and To languages
|
||||
@@ -132,27 +133,27 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var online_options={
|
||||
var online_options={
|
||||
grammars_url: "http://www.grammaticalframework.org/grammars/"
|
||||
//grammars_url: "http://tournesol.cs.chalmers.se:41296/grammars",
|
||||
//grammars_url: "http://localhost:41296/grammars",
|
||||
//grammar_list: ["Foods.pgf"], // leave undefined to get list from server
|
||||
}
|
||||
//grammars_url: "http://tournesol.cs.chalmers.se:41296/grammars",
|
||||
//grammars_url: "http://localhost:41296/grammars",
|
||||
//grammar_list: ["Foods.pgf"], // leave undefined to get list from server
|
||||
}
|
||||
|
||||
var server=pgf_online(online_options);
|
||||
var server=pgf_online(online_options);
|
||||
|
||||
var minibar_options= {
|
||||
show_abstract: false,
|
||||
show_trees: false,
|
||||
show_grouped_translations: false,
|
||||
default_source_language: "Eng",
|
||||
try_google: false
|
||||
}
|
||||
var minibar_options= {
|
||||
show_abstract: false,
|
||||
show_trees: false,
|
||||
show_grouped_translations: false,
|
||||
default_source_language: "Eng",
|
||||
try_google: false
|
||||
}
|
||||
|
||||
var minibar=new Minibar(server,minibar_options,"minibar1");
|
||||
var minibar=new Minibar(server,minibar_options,"minibar1");
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -521,7 +521,7 @@ function exam_continue()
|
||||
exam_result();
|
||||
else
|
||||
{
|
||||
//clears the question and answer display areas
|
||||
//clears the question and answer and the explanation and hint display areas
|
||||
clearing();
|
||||
|
||||
document.getElementById('counter_display').value = counter + "/" + exam_quesNo;
|
||||
|
||||
Reference in New Issue
Block a user