From c2c151cc664db5a73718661799e0c8d982a9763e Mon Sep 17 00:00:00 2001 From: Jeff Lucca Date: Thu, 28 Feb 2019 00:21:24 -0700 Subject: [PATCH 1/2] Fix overnight events --- upcoming.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/upcoming.html b/upcoming.html index 16ed0d2..f6c0204 100644 --- a/upcoming.html +++ b/upcoming.html @@ -114,7 +114,13 @@

{{ event.Description }} at {{event.Locati day2_date = "2019-02-24"; for (x in schedule.day1){ schedule.day1[x].StartXML = formatDate(schedule.day1[x].Start, day1_date); - schedule.day1[x].EndXML = formatDate(schedule.day1[x].End, day1_date); + // If event overlaps into next day, end time needs to be given day2_date + if (schedule.day1[x].Start.includes("PM") && schedule.day1[x].End.includes("AM")) { + schedule.day1[x].EndXML = formatDate(schedule.day1[x].End, day2_date); + } + else { + schedule.day1[x].EndXML = formatDate(schedule.day1[x].End, day1_date); + } } schedule.day2 = data.day2; for (x in schedule.day2){ From bd8be314a596d6313417333f2512f47880e8fc04 Mon Sep 17 00:00:00 2001 From: Jeff Lucca Date: Thu, 28 Feb 2019 00:46:50 -0700 Subject: [PATCH 2/2] Fix moving countdown --- _layouts/reverse.html | 2 ++ assets/css/upcoming.scss | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/_layouts/reverse.html b/_layouts/reverse.html index 1c1e8c1..ecc8778 100644 --- a/_layouts/reverse.html +++ b/_layouts/reverse.html @@ -57,8 +57,10 @@
{% raw %}

+
| {{hours|twodigits}} : {{minutes|twodigits}} : {{seconds|twodigits}} +

{% endraw %}
diff --git a/assets/css/upcoming.scss b/assets/css/upcoming.scss index f409317..4e6cd9f 100644 --- a/assets/css/upcoming.scss +++ b/assets/css/upcoming.scss @@ -26,8 +26,7 @@ body { @include box-shadow( 0px 20px 40px 0px rgba($accent-color, 1.0)); top:0px; z-index: 1000; - - min-width: 305px; + text-align: center; h1 { img { @@ -42,6 +41,12 @@ body { } +.header { + min-width: 680px; + display: inline-block; + text-align: left; +} + /* The actual timeline (the vertical ruler) */ .timeline { position: relative;