| Age | Commit message (Collapse) | Author |
|
+ ajax_http_get(url,callback) now checks the HTTP response status and shows an
error message if the status is not OK (is not 200)
+ New function node(tag,attrs,children) to create document nodes with arbitraty
attributes and children. The functions node() and text() should now be enough
to construct arbitrary document trees in an easy, functional way, and many of
the more specialized functions could be removed.
+ When calling the function button(label,action,key), the action can be a
function instead of a string, so you can use local/anonymous functions.
+ New function debug(str) adds text to the element with id=debug, if it
exists.
|
|
work unless JavaScript is enabled
|
|
dependent types
|
|
|
|
pressing enter in between
It mostly works now, but some minor issues still need to be fixed.
|
|
|
|
|
|
Added a meta tag to specify that the file is in UTF-8. This makes the browser
(at least Firefox) assume that the JavaScript files are also in UTF-8, it seems.
Moved the call to start_minibar() from the <body onload="..."> to the end of
the file. The onload action is not executed until all images in the document
has been loaded, while javascipt at the end of the file is executed as soon
as the HTML file has been loaded. (Calling start_minibar() from the head of
the document would be too soon, since it refers to elements in the body,
which hasn't been loaded yet.)
|
|
|
|
enter if it matches one of the possible completions exactly
The current word is also accepted if there is only one remaining possible
completion.
|
|
|
|
|
|
possible
This is implemented using the userLanguage field in the grammar info output by
pgf-server.
|
|
Using AJAX instead of JSONP can give better caching in the browser, since the
URL doesn't need to contain a (dynamically generated) callback function name.
But because of the same origin policy in JavaScript, AJAX can only be used when
the HTML file is served from the same server as the PGF. The new function
http_get_json in support.js uses AJAX if this is the case, and falls back to
JSONP otherwise.
|
|
function names as strings.
|
|
Solution: include a local copy of brushed-metal.png
|
|
Quick fix. More work needed for correct behaviour when multiple words are
entered at once.
|
|
show_groupedtranslations
|
|
show_grouped_translations: false
This affected minibar.html but not phrasebook.html and was
caused by accidental shadowing of function tr in function show_translations.
|
|
structures output by pgf-server.
The canParse field was removed without notice.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Add help button at top of page.
* Change style of word buttons to look like fridge magnets again.
* New options to specify locations of other pages: feedback_url, help_url. If
they are left undefined, no Help/Feedback buttons will be created.
* Shorter test in Google Translate button.
|
|
|
|
|
|
|
|
|
|
|
|
Published at http://spraakbanken.gu.se/swe/forskning/saldo/ordspel
|
|
|
|
With thanks to codinggeekette,
http://www.codinggeekette.com/post/Mobile-Safari-40-2b-Horizontal-Scrolling-3d-SUX.aspx
|
|
1. The text input field is shown form the start, no need to click.
2. The text input field is removed when no more words can be added to the
sentence.
3. When you press Enter, a word is added to the sentence (1) if there is only
one possible completion left (e.g. if you typed "airp" and the only
completion is "airport"), or (2) if what you typed exactly matches one
of the completions (e.g. if you typed "the" and the completions are
"the", "theatre" and "these").
|
|
|
|
This should make them clickable in more browsers and could improve layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1. Menu for choosing target language.
2. Pass options when calling start_minibar.
See about.html for more details.
|
|
|
|
|
|
|
|
|
|
|