From 1980b74e6fbd8c55e2481243ca10dd0ac2b10495 Mon Sep 17 00:00:00 2001 From: Hope Casey-Allen Date: Sun, 3 Dec 2017 00:18:43 -0800 Subject: [PATCH] Nicer search bar --- index.css | 8 -------- index.html | 15 +++++++++++---- index.js | 2 +- server.js | 4 ++-- 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/index.css b/index.css index b2a8e95..20dd871 100644 --- a/index.css +++ b/index.css @@ -1,11 +1,3 @@ -.summoner-name { - -} - -.enter-btn { - -} - .timeSliderWrapper { width: 500px; } diff --git a/index.html b/index.html index a0f0601..bc6956b 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,7 @@ + @@ -16,9 +17,11 @@
-
Summoner: - - +
@@ -48,8 +51,12 @@ Loss Both
- Enable area filter +
diff --git a/index.js b/index.js index bf71a97..a2d3772 100644 --- a/index.js +++ b/index.js @@ -50,7 +50,7 @@ loadStaticData(); $(".summoner-name").keyup(function(event) { if (event.keyCode === 13) { - $(".enter-btn").click(); + searchSummoner(); } }); diff --git a/server.js b/server.js index 316bf94..eaca702 100644 --- a/server.js +++ b/server.js @@ -8,7 +8,7 @@ let express = require('express'); let app = express(); let fs = require('fs'); -const port = 8080; +const port = 8082; let baseURL = 'https://na1.api.riotgames.com/lol/'; let apiKey = 'RGAPI-dce505ed-21a4-4809-89c8-1ccc16ac1bfb'; @@ -50,7 +50,7 @@ app.get('/all-match-data', function (req, res) { app.listen(port, function () { //TODO: remove prefetchData //prefetchFavoritesMatchData(); // YO don't call - prefetchFavoritesTimelinesData(); // these at same time because asynchronous + //prefetchFavoritesTimelinesData(); // these at same time because asynchronous //prefetchMasterLeagueMatchListData(); //prefetchTimelinesAndDetailsData();