diff options
| author | hallgren <hallgren@chalmers.se> | 2012-11-21 15:07:59 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2012-11-21 15:07:59 +0000 |
| commit | 8bd58a02970d3650b5b3efb6298f40529737c2d8 (patch) | |
| tree | e6bf28a4ef008c69b38f3f985249ab43d119892d /src/www/syntax-editor | |
| parent | 051b7b0d21ad8ac1fe42dfd09cd773b48b8fd8ea (diff) | |
minibar+syntax editor integration, work in progress
Diffstat (limited to 'src/www/syntax-editor')
| -rw-r--r-- | src/www/syntax-editor/editor.css | 4 | ||||
| -rw-r--r-- | src/www/syntax-editor/editor.html | 4 | ||||
| -rw-r--r-- | src/www/syntax-editor/editor_menu.js | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/www/syntax-editor/editor.css b/src/www/syntax-editor/editor.css index 8640a819f..1675372f7 100644 --- a/src/www/syntax-editor/editor.css +++ b/src/www/syntax-editor/editor.css @@ -1,5 +1,5 @@ -body { - background: #ccc url("http://cloud.grammaticalframework.org/minibar/brushed-metal.png"); +body.syntax_editor { + background: #ccc url("../minibar/brushed-metal.png"); } .hidden diff --git a/src/www/syntax-editor/editor.html b/src/www/syntax-editor/editor.html index bb6b49fa8..36045957c 100644 --- a/src/www/syntax-editor/editor.html +++ b/src/www/syntax-editor/editor.html @@ -4,10 +4,10 @@ <meta charset="utf-8"> <link rel="author" href="http://www.grammaticalframework.org/~john/" title="John J. Camilleri"> <title>Syntax Editor</title> - <link rel="stylesheet" type="text/css" href="http://cloud.grammaticalframework.org/minibar/minibar.css" /> + <link rel="stylesheet" type="text/css" href="../minibar/minibar.css" /> <link rel="stylesheet" type="text/css" href="editor.css" /> </head> -<body> +<body class=syntax_editor> <h2>Syntax Editor</h2> <div id="editor"></div> <noscript>This page doesn't works unless JavaScript is enabled.</noscript> diff --git a/src/www/syntax-editor/editor_menu.js b/src/www/syntax-editor/editor_menu.js index e8d39ae37..3d813a79b 100644 --- a/src/www/syntax-editor/editor_menu.js +++ b/src/www/syntax-editor/editor_menu.js @@ -82,7 +82,7 @@ EditorMenu.prototype.show_grammarlist=function(dir,grammar_names,dir_count) { return hasPrefix(dir,"/tmp/gfse.") ? "gfse: "+g : g } function opt(g) { return option(glabel(g),dir+g); } - appendChildren(grammar_menu,map(opt,grammar_names)); + appendChildren(t.ui.grammar_menu,map(opt,grammar_names)); function pick_first_grammar() { if(t.timeout) clearTimeout(t.timeout),t.timeout=null; var grammar0=t.options.initial.grammar; |
