aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-01-17 21:31:12 (UTC)
committerrtz12 <koenig@fagott.pw>2016-01-17 21:31:12 (UTC)
commit72ad0e53f3887b5ad74034a99c6453a88eeb0cbd (patch)
treea2b83127f37ff1706e593f15299cd6e7347f788a /assets
parent6cb2de0a1f583ef8d018e430181a7414fa7faff1 (diff)
Geiles neues Buildsystem fuer die Assets
Diffstat (limited to 'assets')
-rw-r--r--assets/css/gril.css31
-rw-r--r--assets/css/list.css27
-rw-r--r--assets/css/search.css20
-rw-r--r--assets/js/list.js17
-rw-r--r--assets/js/search.js40
5 files changed, 0 insertions, 135 deletions
diff --git a/assets/css/gril.css b/assets/css/gril.css
deleted file mode 100644
index b82e2c7..0000000
--- a/assets/css/gril.css
+++ /dev/null
@@ -1,31 +0,0 @@
1#gril-title {
2 margin-bottom: 0rem;
3}
4
5#gril-alias {
6 margin-top: 0rem;
7 margin-bottom: 1rem;
8}
9
10.gril-tag {
11 transition: background-color .2s, color .2s;
12}
13
14.gril-tag:hover {
15 background-color: #BA68C8;
16 color: #FFF;
17}
18
19h1 > small {
20 padding-left: 8px;
21 font-size: 50%;
22}
23
24.card-title.big {
25 font-size: 36px !important;
26}
27
28.card-content.center-big {
29 padding-top: 9px;
30 padding-bottom: 9px;
31}
diff --git a/assets/css/list.css b/assets/css/list.css
deleted file mode 100644
index 7e6dde9..0000000
--- a/assets/css/list.css
+++ /dev/null
@@ -1,27 +0,0 @@
1.jap-name {
2 color: rgb(166, 166, 166);
3}
4
5.list-entry {
6 height: 80px;
7 padding: 8px;
8}
9
10.list-img {
11 width: 64px;
12 height: 64px;
13}
14
15.list-controls {
16 position: relative;
17 top: 8px;
18 left: -15px;
19}
20
21.gril-img {
22 background-repeat: no-repeat;
23 background-position: center center;
24 background-size: cover;
25 width: 64px;
26 height: 64px;
27} \ No newline at end of file
diff --git a/assets/css/search.css b/assets/css/search.css
deleted file mode 100644
index 124a378..0000000
--- a/assets/css/search.css
+++ /dev/null
@@ -1,20 +0,0 @@
1.collection .collection-item.avatar {
2 min-height: 64px !important;
3}
4
5.collection-item.avatar > .circle {
6 top: 12px;
7}
8
9.search-results {
10 top: -50px;
11 z-index: 2;
12}
13
14.collection > .collection-item {
15 transition: background-color .35s;
16}
17
18.collection > .collection-item:hover {
19 background-color: #e1bee7;
20} \ No newline at end of file
diff --git a/assets/js/list.js b/assets/js/list.js
deleted file mode 100644
index 25ff80d..0000000
--- a/assets/js/list.js
+++ /dev/null
@@ -1,17 +0,0 @@
1function clickSearchResult(resId) {
2 var xhr = new XMLHttpRequest();
3 xhr.onreadystatechange = function() {
4 if (xhr.readyState == XMLHttpRequest.DONE) {
5 if (xhr.status !== 200) {
6 alert(xhr.status + ": " + xhr.response);
7 return;
8 }
9
10 data = xhr.responseText;
11 document.getElementById("gril-list").innerHTML += data;
12 }
13 }
14 xhr.open('POST', window.location, true);
15 xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
16 xhr.send('id=' + resId);
17} \ No newline at end of file
diff --git a/assets/js/search.js b/assets/js/search.js
deleted file mode 100644
index 0cb33df..0000000
--- a/assets/js/search.js
+++ /dev/null
@@ -1,40 +0,0 @@
1var strokeTimeout = null;
2
3function instantSearch() {
4 if (strokeTimeout) {
5 clearTimeout(strokeTimeout);
6 }
7 strokeTimeout = setTimeout(doSearch, 150);
8}
9
10function doSearch() {
11 value = document.getElementById("search").value;
12
13 if (value === "") {
14 strokeTimeout = null;
15 document.getElementById("search-results").innerHTML = "";
16 return;
17 }
18 var xhr = new XMLHttpRequest();
19 xhr.onreadystatechange = function() {
20 if (xhr.readyState == XMLHttpRequest.DONE) {
21 if (xhr.status === 404 || xhr.status === 400 || typeof xhr.response === 'undefined' || xhr.response === '404 not found') {
22 document.getElementById("search-results").innerHTML = '';
23 return
24 }
25 if (value === "") {
26 document.getElementById("search-results").innerHTML = "";
27 return;
28 }
29
30 document.getElementById("search-results").innerHTML = xhr.response.replace(new RegExp('{ (.*?)(' + value + ')(.*?) }', 'gi'), "$1<b>$2</b>$3").replace(new RegExp('{ (.*?) }', 'gi'), '$1');
31 }
32 }
33 xhr.open('GET', '/search/gril_instant/' + value, true);
34 xhr.send(null);
35 strokeTimeout = null;
36}
37
38function clickSearchResult(resId) {
39
40} \ No newline at end of file