From a81522790eedf3f005e393317fdd539e75ab111e Mon Sep 17 00:00:00 2001 From: sirsandmann Date: Sat, 30 Dec 2017 14:51:29 +0100 Subject: [PATCH] Changed Position of Buttons and Size of RaceInfo --- css/main.css | 7 +++++++ js/util.js | 18 +++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/css/main.css b/css/main.css index dfd1906..13843f1 100644 --- a/css/main.css +++ b/css/main.css @@ -85,6 +85,13 @@ body { margin-right: auto; } +.card-body{ + padding-top: 0.75rem; + padding-right: 1.25rem; + padding-bottom: 0.5rem; + padding-left: 1.25rem; +} + #toggle-btn{ text-align: center; } diff --git a/js/util.js b/js/util.js index e7c99cf..73273cf 100644 --- a/js/util.js +++ b/js/util.js @@ -169,13 +169,17 @@ function renderRaceInfoBox(race) { //console.log(raceInfo); var content = ""; - content = "

"+raceInfo.name+" "+raceInfo.date.getFullYear()+"

"; - content += "
"+circuit.name+" ("+circuit.location+", "+circuit.country+")
"; - content += "
"+germanDateString(raceInfo.date)+"
" - content += "
"; - content += "See Race on Wikipedia "; - content += "See Circuit on Wikipedia "; - content += "See Circuit on GoogleMaps"; + content = "
"; + content += "
"; + content += "

"+raceInfo.name+" "+raceInfo.date.getFullYear()+"

"; + content += "
"+circuit.name+" ("+circuit.location+", "+circuit.country+")
"; + content += ""+germanDateString(raceInfo.date)+""; + content += "
"; + content += "
" + content += "See Race on Wikipedia "; + content += "See Circuit on Wikipedia "; + content += "See Circuit on GoogleMaps"; + content += "
"; content += "
"; return content; }