diff --git a/app/routers/file.router.js b/app/routers/file.router.js index 615b45b..9ef72d8 100644 --- a/app/routers/file.router.js +++ b/app/routers/file.router.js @@ -69,14 +69,15 @@ module.exports = (app, router, upload) => { } }) res.end(result) + break default: - res.sendStatus(404); - break; + res.sendStatus(404) + break } } else if (req.query.type === 'json') { res.set({"Content-Disposition":"attachment; filename=\"" + tsp_list[req.query.tsp] + ".json\""}) - // res.header("Content-Type",'application/json'); + // res.header("Content-Type",'application/json') data = {} switch (parseInt(req.query.tsp)) { case 0: @@ -166,10 +167,10 @@ module.exports = (app, router, upload) => { default: break; } - res.end(JSON.stringify(data)); + res.end(JSON.stringify(data)) } else { - res.sendStatus(404); + res.sendStatus(404) } }); diff --git a/resources/css/style.css b/resources/css/style.css index 20fdaaa..541082c 100644 --- a/resources/css/style.css +++ b/resources/css/style.css @@ -1,28 +1,9 @@ body { - overflow-x: hidden; font-size: 18px; - position: relative; - min-height: 100vh; -} - -html, body { height: 100%; - width: 100%; background-color: #FFF; } -body { - position: relative; - min-height: 100vh; -} - -body::after { - content: ''; - display: block; - height: 220px; - /* Set same as footer's height */ -} - /*-------- Navbar --------*/ .navbar .nav-link { @@ -52,6 +33,15 @@ body::after { color: #000 !important; } +#overview { + min-height: 100%; +} + +#leaderboard { + background-color: #FAFAFA; + min-height: 800px; +} + .project-tab #tabs{ background: #007b5e; border: 1px solid transparent; @@ -114,7 +104,7 @@ body::after { } .subfooter { - position: absolute; + /* position: absolute; */ bottom: 60px; width: 100%; height: 160px; @@ -159,7 +149,7 @@ body::after { } .footer { - position: absolute; + /* position: absolute; */ bottom: 0; width: 100%; height: 60px; diff --git a/resources/index.html b/resources/index.html index 6c36b6c..1f6c726 100644 --- a/resources/index.html +++ b/resources/index.html @@ -18,11 +18,6 @@ - - - - - @@ -32,6 +27,7 @@ + @@ -64,40 +60,31 @@ -
-
-
-
-
-
-
-
Traveling Salesman Problem
-
-
-
-
-
- -
-
-
-
-
-
+
+
+
+
+
+
Traveling Salesman Problem
+
+
+
+
+
+
-
-
- +
+
+
-
-
+
-
Leaderboard
+
Leaderboard
@@ -237,19 +224,16 @@
-
-
-
-
+
-

Your Submission

+

Your Submission

@@ -257,16 +241,16 @@
- + - + - + @@ -276,8 +260,8 @@ - - + + @@ -287,8 +271,8 @@ - - + + @@ -298,8 +282,8 @@ - - + + @@ -309,8 +293,8 @@ - - + + @@ -320,8 +304,8 @@ - - + + @@ -331,9 +315,9 @@ - + -
Problem Your Solution Best Solution Download
ulysses16 - Inf
att48 - Inf
st70 - Inf
a280 - Inf
pcb442 - Inf
dsj1000 - Inf
+
@@ -367,49 +351,47 @@
- - -