From 0f9bcfeee6b47e6206b062d2affd0862209820f3 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Tue, 13 Dec 2016 22:49:26 +0000 Subject: [PATCH] Use navbar for loading indication --- index.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index e522ba4..af4dacb 100644 --- a/index.js +++ b/index.js @@ -30,7 +30,7 @@ var alert_text = document.getElementById('alert-text'); var alert_close = document.getElementById('alert-close'); -var progress = document.getElementById('progress'); +var nav = document.getElementsByTagName('nav')[0]; var parseStatusBoarding = '>>>'; function parseStatus(status) { @@ -130,11 +130,11 @@ } function loading_start() { - progress.style.display = 'block'; + nav.className += ' loading'; } function loading_end() { - progress.style.display = 'none'; + nav.className = nav.className.replace(' loading', ''); } function loadTimes(stopId = null, clearRoute = false) { -- Gitblit v1.9.1