summaryrefslogtreecommitdiff
path: root/src/runtime/javascript/minibar/minibar.html
AgeCommit message (Collapse)Author
2011-10-12Improvements of "gf -server" mode and related setuphallgren
"gf -server" mode now contains everything needed to run the minibar and the grammar editor (including example-based grammar writing). The Setup.hs script installs the required files where gf -server can find them. These files have been moved to a new directory: src/www. The separate server program pgf-http is now obsolete.
2011-08-08minibar: refactoring for improved modularityhallgren
Two smaller objects have been factored out from the Minibar object: Input and Translations. These have been placed in two separate files: minibar_input.js and minibar_translations.js. Some common auxiliary functions have also been moved to a separate file: minibar_support.js
2011-08-08minibar: resolve conflicthallgren
2011-08-03minibar: small code and documentation tweakshallgren
2011-08-08minibar: recording old configuration changeshallgren
2011-03-22minibar: add trailing slash in suggested grammar URLshallgren
2011-03-01minibar: make the feedback form work in the generic minibarhallgren
It is still disabled by default, since some manual configuraiton of feedback.cgi is required.
2011-01-27minibar: a small change to make easy to select an alternate grammar directoryhallgren
2011-01-11minibar: update my home page link (cs->cse)hallgren
2010-12-17minibar.html: omit explicit grammars_url optionhallgren
The grammars will then by default be fetched from the same server as minibar.html. This means that everything will be served locally when accessing minibar through a locally running pgf-http.
2010-12-01minibar: rewrite minibar.js in a more idiomatic JS OOP stylehallgren
This provides easier access to minibar internals for people who want to extend it, but probably also reveals too much of the internal machinery...
2010-10-26minibar: restructured code and improved user interfacehallgren
* Keyboard input and completion should now work much more smoothly: + When you press space, the current word will be completed (if incomplete) and a new magnet will be created. If there is more than one possible completion, no magnet is created, but the common prefix of the possible completions is added to the text box. + Instead of asking the server for possible completions every time a new letter is added to the curent word, minibar only ask for completions for whole words and then filters the list locally when more letters are entered, speeding things up when server responses are slow. * Code restructuring: + The PGF server API has been moved to its own file: pgf_online.js. This allows it to be reused in other applicaitons without importing the entire minibar. It also allows minibar to be used with different server interfaces. + The minibar code has been rewritten to avoid storing state information in the document tree and accessing it by referring to named document elements. The code now also avoids using string literals contaning the names of top-level functions to specify event handlers for buttons and menus. (The code is no longer introspective, so alpha conversion will not change its meaning.)
2010-10-23minibar.html: add a <noscript> element with a note that the page doesn't ↵hallgren
work unless JavaScript is enabled
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-05-28updated documentationhallgren
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-26Enable display of abstract syntax in minibarhallgren
2010-04-30Merge phrasebook.js into minibar.jshallgren
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-09Adding the Minibar files to the darcs repository.hallgren