summaryrefslogtreecommitdiff
path: root/src/runtime/javascript
AgeCommit message (Collapse)Author
2010-09-28minibar: update about.html with description of recent changeshallgren
2010-09-24minibar/about.html: fix typos and formattinghallgren
2010-09-24minibar.html: specify charset, move initializationhallgren
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.)
2010-09-14minibar.js: server API code cleanuphallgren
2010-09-14minibar.js: bug fix: the current word should be accepted when you press ↵hallgren
enter if it matches one of the possible completions exactly The current word is also accepted if there is only one remaining possible completion.
2010-09-14minibar.js: add access keys to some of the buttonshallgren
2010-09-10support.js: create buttons with access keyshallgren
2010-09-10minibar: default input language is now the user's preferred language, if ↵hallgren
possible This is implemented using the userLanguage field in the grammar info output by pgf-server.
2010-09-10minibar: use AJAX instead of JSONP when possiblehallgren
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.
2010-09-05Minibar: PGF server API: pass callback functions directly instead of passing ↵hallgren
function names as strings.
2010-09-05minibar: fix broken link to brushed-metal backgroundhallgren
Solution: include a local copy of brushed-metal.png
2010-08-27Adapt minibar.js to the current GF web service APIhallgren
Quick fix. More work needed for correct behaviour when multiple words are entered at once.
2010-07-13Add missing <td> tags in the HTML constructed by functio ↵hallgren
show_groupedtranslations
2010-07-13Bug fix in minibar.js: no translations where shown when using option ↵hallgren
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.
2010-07-13Make minibar.js work again after backwards incompatible changes to the data ↵hallgren
structures output by pgf-server. The canParse field was removed without notice.
2010-07-08FridgeApp and TranslateApp now show the type errorskrasimir
2010-07-06Access keys for input fields in minibar and feedback formhallgren
2010-06-02feedback list stylinghallgren
2010-06-02minibar feedback: save user_agent, simple feedback viewerhallgren
2010-06-02Feedback form for phrasebook/minibarhallgren
2010-06-02New minibar option: default_source_languagehallgren
2010-06-02Some minibar/phrasebook button and style changeshallgren
* 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.
2010-06-02Improved Goolge Translate buttonhallgren
2010-06-01Work on the feedback button for the minibarhallgren
2010-05-29Always show link to Google Translate, and open it in a new window.hallgren
2010-05-28updated documentationhallgren
2010-05-28Add link to Google Translatehallgren
2010-05-28Changes for publication of SALDO demo web appshallgren
Published at http://spraakbanken.gu.se/swe/forskning/saldo/ordspel
2010-05-28support.js: new function span_id, bug fix in function sorthallgren
2010-05-26Add meta tag to avoid horizontal scrolling in Mobile Safarihallgren
With thanks to codinggeekette, http://www.codinggeekette.com/post/Mobile-Safari-40-2b-Horizontal-Scrolling-3d-SUX.aspx
2010-05-26Improved keyboard input handling in minibar/phrasebookhallgren
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").
2010-05-26Enable display of abstract syntax in minibarhallgren
2010-05-26Use <input type=button ...> instead of <div ...> tags for the word magnets. ↵hallgren
This should make them clickable in more browsers and could improve layout.
2010-05-26Change server to http://www.grammaticalframework.org:41296hallgren
2010-05-21hide the language code if translating to only one target languagehallgren
2010-05-21smaller input fieldhallgren
2010-05-07Amharic transliteration by Markosaarne
2010-04-30Merge phrasebook.js into minibar.jshallgren
2010-04-28Some work on the Saldo gamehallgren
2010-04-19Some work on minibar:hallgren
1. Menu for choosing target language. 2. Pass options when calling start_minibar. See about.html for more details.
2010-04-15Work in progress on keyboard input in minibarhallgren
2010-04-15Code simplificationhallgren
2010-04-15Omit redundant trailing "&" in jsonp urlhallgren
2010-04-15Fix bug in get_grammarlist. Some code simplificaiton.hallgren
2010-04-09Some documentationhallgren
2010-04-09Abstract out grammar access methodhallgren
2010-04-09Adding the Minibar files to the darcs repository.hallgren
2010-03-23add JavaScript API for completion. contributed by John J. Camillerikrasimir
2010-01-07inplace editing/parsing in the syntax editorkrasimir
2010-01-07better tokenizer in the JavaScript runtimekrasimir