From b11e8ff3dcc1f5cab14b156399a5c1bd92473071 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sun, 31 Dec 2017 17:04:58 +0100 Subject: [PATCH] Show first race of selected year by default --- js/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/main.js b/js/main.js index 0a9e486..86672e4 100644 --- a/js/main.js +++ b/js/main.js @@ -96,6 +96,8 @@ preprocessor.load(function(data) { $("#courseSelection li[data="+raceD1.raceInfo.raceId+"] .courseimagecontainer").append(imageTag); }); } + // Show first race by default + $("#courseSelection li").first().click(); }); $(window).resize(function(e) {