-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flex sidebar #178
Open
kenbowen
wants to merge
12
commits into
master
Choose a base branch
from
flex-sidebar
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Flex sidebar #178
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2e94d7d
Add basic flex sidebar layout for ref pages.
chuckhoupt 2af7861
Imported sidebar machinery from group-sidebar to flex-sidebar, and in…
kenbowen 53bf263
Add margin on left of ref pages; beginning work on search; throw-away…
kenbowen ccb7f56
Fixed broken arrow (->) in cut.md.
kenbowen 8ccc837
Added searchtype change event to call doSearch
kenbowen 6ac7a8c
Merge branch 'master' into flex-sidebar
kenbowen 0746330
Add Javacript error alert for development
chuckhoupt a873406
Cleanup ref-packtoc.html and add View All Predicates link on it.
kenbowen ee2ac45
Merge branch 'master' of https://github.com/AppliedLogicSystems/ALSPr…
kenbowen 2b901a9
Reapply 186b6da: Correct spelling of choicepoint.
chuckhoupt 07c2a21
Repair errors, & control displays.
kenbowen 610737f
Merge branch 'flex-sidebar' of https://github.com/AppliedLogicSystems…
kenbowen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
<script> $( document ).ready(function() { | ||
$("#outer-nav").removeAttr("hidden"); | ||
setupRef(); | ||
}); | ||
</script> | ||
|
||
<script> | ||
$(document).ready(function(){ | ||
$('#searchdiv').change(function(){ | ||
clearSearch(); | ||
doSearch(); | ||
}); | ||
}); | ||
</script> | ||
|
||
<script> | ||
$(document).ready(function(){ | ||
$("#searchInput").on("search", function(evt){ | ||
if($(this).val().length > 0){ | ||
// the search is being executed | ||
clearSearch(); | ||
doSearch(); | ||
} else { | ||
// user clicked reset | ||
clearSearch() | ||
} | ||
}) | ||
}); | ||
</script> | ||
|
||
<nav id="outer-nav" hidden> | ||
|
||
<div style="border:1px solid black;margin-left:10px; width:94%;"> | ||
<input type="search" id="searchInput" autocomplete="off" class="mysearch" | ||
placeholder="Search predicates..." incremental | ||
style="border:1px solid white; width:100%; font-size:18px;"> | ||
<br> | ||
<div id="searchdiv"> | ||
<input type="radio" name="searchtype" id="srchname" value="srchname"><label style="font-size:12px;" for="srchname">By Name</label> | ||
<input type="radio" name="searchtype" id="srchdesc" value="srchdesc"><label style="font-size:12px;" for="srchdesc">By Desc</label> | ||
<input type="radio" name="searchtype" id="srchboth" value="srchboth" checked><label style="font-size:12px;" for="srchboth">By Both</label> | ||
</div> | ||
<hr style="border:1px solid black;"> | ||
<div style="text-align:center;"><a href="/docs/ref/#control">View All Predicates</a></div> | ||
</div> | ||
|
||
<ul> <!-- packages list --> | ||
{%- for package in site.ref_packages %} | ||
|
||
<li class="pkg" > <!-- package --> | ||
<details {% if package == page.package %}open{% endif %}> | ||
<summary>{{package | escape}}</summary> | ||
|
||
{%- assign groups = site.pages | where: "reference", true | where: "package", package | group_by: "group" | sort: "name" %} | ||
|
||
<ul> <!-- group list --> | ||
{%- for g in groups %} | ||
|
||
<li class="grp" > <!-- group --> | ||
<details > <!-- group details --> | ||
<summary>{{g.name | escape}}</summary> | ||
<ul> <!-- predicates list --> | ||
|
||
{%- assign predicates = "" | split: "" %} | ||
{%- for r in g.items %} | ||
{% for p in r.predicates %} | ||
{% assign predicates = predicates | push: p %} | ||
{% endfor %} | ||
{%- endfor %} | ||
|
||
{%- assign sorted_preds = predicates | sort: "sig" %} | ||
|
||
{%- for p in sorted_preds %} | ||
{%- assign ppage = g.items | where_exp: "item", "item.predicates contains p" | first %} | ||
<li class="prd"> <!-- predicates list --> | ||
{%- assign predname = ppage.url | split: "/" | last | split: "." | first %} | ||
<a href="{{ppage.url}}" | ||
{%- assign psig0 = p.sig | slice: 0 %} | ||
{%- assign psigt = p.sig | slice: 1, 100 %} | ||
{%- if psig0 == "$" %} | ||
{%- assign thepred = p.sig %} | ||
{%- assign apppred = psigt | split: "/" | first %} | ||
{% elsif p.sig == "</2" %} | ||
{%- assign thepred = "<" %} | ||
{%- assign apppred = "lessthan" %} | ||
{% elsif p.sig == "=</2" %} | ||
{%- assign thepred = "=<" %} | ||
{%- assign apppred = "lessthaneq" %} | ||
{% elsif p.sig == "!/0" %} | ||
{%- assign thepred = "!" %} | ||
{%- assign apppred = "cut" %} | ||
{%- else %} | ||
{%- assign thepred = p.sig %} | ||
{%- assign apppred = p.sig | split: "/" | first %} | ||
{%- endif %} | ||
id="{{ppage.url | split: "/" | last | split: "." | first}}_{{apppred}}" | ||
onclick="accessPredPage('{{ppage.url | split: "/" | last | split: "." | first}}','{{apppred}}')" >{{thepred}} | ||
{%- if p.args %}/[{% for a in p.args %}{{ a[0] }}{% unless forloop.last %},{% endunless %}{% endfor %}]{% comment %} for-p.args {% endcomment %}{% endif %}</a> | ||
<div class="dscr" hidden>{%- if p.args %}{{p.args | first}}{% else %}{{p.desc}}{% endif %}</div> | ||
</li> <!-- END prd class list entry --> | ||
{%- endfor %} {% comment %} for p-sorted_preds {% endcomment %} | ||
</ul> <!-- END predicates list --> | ||
</details> <!-- END group details --> | ||
</li> <!-- END group list entry in pkg --> | ||
{%- endfor %} {% comment %} for g {% endcomment %} | ||
</ul> <!-- END group list --> | ||
</details> <!-- END package details --> | ||
{%- endfor %} | ||
|
||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ page.lang | default: site.lang | default: "en" }}"> | ||
|
||
{%- include head.html -%} | ||
|
||
{%- if jekyll.environment != "production" %} | ||
<script> | ||
window.onerror = function(message, source, lineno, colno, error) { | ||
alert(message); | ||
return false; | ||
} | ||
</script> | ||
{% endif -%} | ||
|
||
<script type="text/javascript" src="/assets/jquery-3.4.1.js"></script> | ||
<script type="text/javascript" src="/assets/searchhelp.js"></script> | ||
|
||
<body> | ||
|
||
{%- include header.html -%} | ||
|
||
<main class="page-content" aria-label="Content" style="margin-left:30px;"> | ||
{{ content }} | ||
</main> | ||
|
||
{%- include footer.html -%} | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing all the changes to this file are experimental/scratch changes. Should they be removed?