From e4a845248104c421b6519ae45936905505fc2555 Mon Sep 17 00:00:00 2001 From: akuma06 Date: Wed, 3 May 2017 19:45:18 +0200 Subject: [PATCH] Rearranged static Files and add number of item per page No CSS and Javascript in the index.html, more easy to maintain the design and the code. Added a select for the number of item to show and added the new parameter to the SQL query. Total number of item determined by the SQL query and not fixed. --- .gitignore | 1 + css/style.css | 13 +++++++++++ index.html | 65 ++++++++++++++++++--------------------------------- js/main.js | 30 ++++++++++++++++++++++++ main.go | 40 ++++++++++++++++++++++++++----- 5 files changed, 101 insertions(+), 48 deletions(-) create mode 100644 css/style.css create mode 100644 js/main.js diff --git a/.gitignore b/.gitignore index 2d24479d..ece147f5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.db main nyaa +nyaa-master.exe \ No newline at end of file diff --git a/css/style.css b/css/style.css new file mode 100644 index 00000000..73a75ebb --- /dev/null +++ b/css/style.css @@ -0,0 +1,13 @@ +.navbar { + background: linear-gradient(to bottom, #76eda0 0%,#1ad87f 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ +} + +.remake { + background-color: #f0b0b0; +} +.trusted { + background-color: #98d9a8; +} +.aplus { + background-color: #60b0f0; +} \ No newline at end of file diff --git a/index.html b/index.html index 9d3a92fc..e4588a1b 100644 --- a/index.html +++ b/index.html @@ -17,18 +17,10 @@ + + + -