Commit 8972ab99 authored by Ian Dennis Miller's avatar Ian Dennis Miller

starting on search box

parent 04e861f2
......@@ -19,6 +19,11 @@
<div id="container">
<div id="ui">
<a href="#" id="ui-control" class="control expanded" onclick="toggle_ui(); return false;">&gt;</a>
<div id="search-ui">
<form name="search">
<input name="query" type="text"></input>
</form>
</div>
<div id="ui-content">
<ul id="article-list">
{% for aid, title in articles %}
......
......@@ -181,11 +181,15 @@ var handler = function(e) {
var charCode = (typeof e.which == "number") ? e.which : e.keyCode;
// console.log(charCode);
if (charCode == '65') {
if (e.ctrlKey && charCode == '65') {
// a: all
show_all();
}
else if (charCode == '70') {
else if (e.ctrlKey && charCode == '70') {
// s: search
hide_all();
}
else if (e.ctrlKey && charCode == '70') {
// f: focus
hide_all();
}
......@@ -201,11 +205,11 @@ var handler = function(e) {
// escape
toggle_ui();
}
else if (charCode == '68') {
else if (e.ctrlKey && charCode == '68') {
// d: dark
toggle_dark_mode();
}
else if (charCode == '191') {
else if (e.shiftKey && charCode == '191') {
// question
toggle_help();
}
......
......@@ -144,6 +144,10 @@ body.dark a, body.dark a:visited {
color: #999;
}
#search-ui {
display: none;
}
@media screen and (max-width: 1200px) {
#container { column-count: 3; }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment