mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 17:12:50 -06:00
RGL browser: move help button, re-add synopsis link
This commit is contained in:
@@ -13,6 +13,8 @@
|
|||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<h1>RGL Source Browser</h1>
|
<h1>RGL Source Browser</h1>
|
||||||
|
<a class="tab help" href="#help">Help</a>
|
||||||
|
<a href="http://www.grammaticalframework.org/lib/doc/synopsis.html" target="_blank">Synopsis...</a>
|
||||||
</header>
|
</header>
|
||||||
<div id="loading">
|
<div id="loading">
|
||||||
<img src="ajax-loader.gif" /> Loading...
|
<img src="ajax-loader.gif" /> Loading...
|
||||||
@@ -25,6 +27,8 @@
|
|||||||
<div class="pane right">
|
<div class="pane right">
|
||||||
<div id="tabbar">
|
<div id="tabbar">
|
||||||
Module: <span id="module_name">...</span>
|
Module: <span id="module_name">...</span>
|
||||||
|
<a class="tab scope" href="#scope">scope</a>
|
||||||
|
<a class="tab code" href="#code">code</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="scope" class="panel scope maxheight">
|
<div id="scope" class="panel scope maxheight">
|
||||||
<div id="scope_controls">
|
<div id="scope_controls">
|
||||||
@@ -93,7 +97,7 @@
|
|||||||
<br style="clear:both" />
|
<br style="clear:both" />
|
||||||
</div>
|
</div>
|
||||||
<footer id="footer">
|
<footer id="footer">
|
||||||
John J. Camilleri<br/><em>Updated 2012-07-11</em>
|
John J. Camilleri<br/><em>Updated 2013-01-29</em>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
||||||
<script src="jquery.history.min.js"></script>
|
<script src="jquery.history.min.js"></script>
|
||||||
|
|||||||
@@ -177,19 +177,11 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Initialize the panels & tabs
|
// Initialize the panels, tabs
|
||||||
$(".panel").each(function(a,b){
|
$("a.tab").click(function(){
|
||||||
$("<a>")
|
var panel = $(this).attr("href");
|
||||||
.addClass('tab')
|
showPanel(panel);
|
||||||
.addClass($(b).attr('id'))
|
return false;
|
||||||
.attr('href', '#'+$(b).attr('id'))
|
|
||||||
.html($(b).attr('id'))
|
|
||||||
.click(function(){
|
|
||||||
showPanel(b);
|
|
||||||
return false;
|
|
||||||
})
|
|
||||||
// .appendTo("#tabbar")
|
|
||||||
.insertAfter("#tabbar *:last-child")
|
|
||||||
});
|
});
|
||||||
showPanel(".panel:first");
|
showPanel(".panel:first");
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,12 @@ header {
|
|||||||
padding:10px;
|
padding:10px;
|
||||||
}
|
}
|
||||||
header h1 {
|
header h1 {
|
||||||
margin:0;
|
margin:0 1em 0 0;
|
||||||
font-size:1em;
|
font-size:1em;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
header .tab {
|
||||||
|
font-size: 90%;
|
||||||
}
|
}
|
||||||
div[role='main'] {
|
div[role='main'] {
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
|
|||||||
Reference in New Issue
Block a user