Minor responsive update
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index a483390..8dfb04c 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -15,18 +15,24 @@
</head>
<body>
+% my $search_route = url_for;
% unless (current_route 'tutorial') {
-<div id="tutorial" style="display: none">
+<div id="tutorial">
% my $tut_page = url_for(session('tutorial') || 'tutorial');
<a href="<%= $tut_page %>" target="_blank"><i title="Open in new tab" class="fa fa-external-link-square"></i></a>
<i onclick="closeTutorial()" title="close" class="fa fa-toggle-up"></i>
<iframe src="about:blank" data-src="<%= $tut_page->query([snippet => 1]) %>"></iframe>
</div>
+% }
+% else {
+% $search_route = url_for('index');
% };
<div id="top">
<a href="<%= url_for 'index' %>"><h1><span>KorAP- Korpusanalyseplattform der nächsten Generation</span></h1></a>
-%= form_for url_for() => begin
+
+
+%= form_for $search_route => begin
%= select_field ql => [[Poliqarp => 'poliqarp'], ['Cosmas II' => 'cosmas2']], id => 'ql-field'
<br />
%= search_field 'q', id => 'q-field', autofocus => 'autofocus'
@@ -108,6 +114,7 @@
<div id="sidebar" style="padding-top: 90px">
%= include 'collections'
+<i class="fa fa-bars"></i>
</div>
<div id="search">
@@ -155,14 +162,14 @@
function openTutorial (o) {
var tut = $("#tutorial");
- tut.slideDown();
+ tut.addClass("active");
var iframe = tut.children("iframe");
var src = iframe.attr("data-src");
iframe.attr("src", src);
};
function closeTutorial (o) {
- $("#tutorial").slideUp();
+ $("#tutorial").removeClass("active");
};
function useQuery (o) {
diff --git a/templates/layouts/snippet.html.ep b/templates/layouts/snippet.html.ep
index 1c3ef1c..77c50ba 100644
--- a/templates/layouts/snippet.html.ep
+++ b/templates/layouts/snippet.html.ep
@@ -3,7 +3,8 @@
<head>
<title><%= title %></title>
%= stylesheet '/style.css'
-%= stylesheet '/kwic-3.0.css'
+%= stylesheet '/kwic-4.0.css'
+%= stylesheet '/responsive.css'
%= stylesheet '/fontawesome/font-awesome.min.css'
%= javascript '/jquery-2.0.0.min.js'
<meta charset="utf-8" />