diff --git a/code/static/css/styles.css b/code/static/css/styles.css index 6cd923a..5004370 100755 --- a/code/static/css/styles.css +++ b/code/static/css/styles.css @@ -72,6 +72,13 @@ tr:nth-child(even) { margin-left: 5em; } +#index_menu { + float:right; + padding: 8px; + border: 4px solid lightslategray; + background-color: #f3f3fb; +} + #index_table { border-collapse: collapse; margin-left: 2em; diff --git a/code/static/js/scripts.js b/code/static/js/scripts.js new file mode 100644 index 0000000..c7ed9f5 --- /dev/null +++ b/code/static/js/scripts.js @@ -0,0 +1,12 @@ + +function index_form_enter(event) { + if (event.which || event.keyCode) { + if ((event.which == 13) || (event.keyCode == 13)) { + index_form_submit(); + } + }; +} + +function index_form_submit() { + window.location = window.location + "/list/" + document.getElementById("index_form_name").value; +} diff --git a/code/templates/index.html b/code/templates/index.html index 93e8d87..50bcd1a 100755 --- a/code/templates/index.html +++ b/code/templates/index.html @@ -1,6 +1,13 @@ {% extends "layout.html" %} {% block body %}

Flees

+
+
+ + +
+
@@ -13,8 +20,6 @@
{{ entry.name }} {% if entry.expire %}{{ entry.expire|safe }}{% else %}-{% endif %} {% if entry.upload %}yes{% else %}no{% endif %} - {% else %} -
  • no shares {% endfor %}
  • {% endblock %} diff --git a/code/templates/layout.html b/code/templates/layout.html index c280c97..a4694fb 100644 --- a/code/templates/layout.html +++ b/code/templates/layout.html @@ -3,6 +3,7 @@ Flees +