aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-01-25 19:01:15 (UTC)
committerrtz12 <koenig@fagott.pw>2016-01-25 19:01:15 (UTC)
commitd4b2422fd753df71be58d1a499194849b6e6d438 (patch)
treeac1b4eec67f6b83a955a82878b81ba2a1148fb0c /views
parenteaaa1ac2e509bf9df04aec24daa7286ab31089a9 (diff)
JavaScript Kram auf Hippe ES6 Kacke umgebaut
Diffstat (limited to 'views')
-rw-r--r--views/includes/instant_search_results.html4
-rw-r--r--views/pages/list.html5
2 files changed, 4 insertions, 5 deletions
diff --git a/views/includes/instant_search_results.html b/views/includes/instant_search_results.html
index 0dd445c..acdbb30 100644
--- a/views/includes/instant_search_results.html
+++ b/views/includes/instant_search_results.html
@@ -1,8 +1,8 @@
1{{ define "instant_search_results" }} 1{{ define "instant_search_results" }}
2{{ range .results }} 2{{ range .results }}
3<li class="collection-item search-result avatar hoverable valign-wrapper" onClick="clickSearchResult({{ .ID }})" > 3<li class="collection-item search-result avatar hoverable valign-wrapper" data-id="{{ .ID }}">
4 <img src="/{{ .ImagePath }}" alt="" class="circle"> 4 <img src="/{{ .ImagePath }}" alt="" class="circle">
5 <span class="title valign">{ {{ .Name }} }</span> 5 <span class="title valign">{ {{ .Name }} }</span>
6</li> 6</li>
7{{ end }} 7{{ end }}
8{{ end }} \ No newline at end of file 8{{ end }}
diff --git a/views/pages/list.html b/views/pages/list.html
index c85e147..c608b77 100644
--- a/views/pages/list.html
+++ b/views/pages/list.html
@@ -7,7 +7,6 @@
7 <title>grilist</title> 7 <title>grilist</title>
8 <link rel="stylesheet" href="/assets/css/list.css" /> 8 <link rel="stylesheet" href="/assets/css/list.css" />
9 <link rel="stylesheet" href="/assets/css/search.css" /> 9 <link rel="stylesheet" href="/assets/css/search.css" />
10 <script src="/assets/js/search.js"></script>
11 <script src="/assets/js/list.js"></script> 10 <script src="/assets/js/list.js"></script>
12 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> 11 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
13 </head> 12 </head>
@@ -35,8 +34,8 @@
35 <span style="font-size: 130%">Gril hinzufügen</span><br /> 34 <span style="font-size: 130%">Gril hinzufügen</span><br />
36 <form> 35 <form>
37 <div class="input-field"> 36 <div class="input-field">
38 <input id="search" type="search" onKeyDown="instantSearch()" required> 37 <input id="gril-add-search" class="gril-search" type="search" required>
39 <label for="search"><i class="material-icons">search</i></label> 38 <label for="gril-add-search"><i class="material-icons">search</i></label>
40 <i class="material-icons">close</i> 39 <i class="material-icons">close</i>
41 </div> 40 </div>
42 </form> 41 </form>