mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-30 14:52:51 -06:00
minibar+syntax editor integration, work in progress
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user