From a9c832b003daa70ee78cacecc518cebdf4071ca1 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Tue, 31 Jul 2018 15:23:53 +0200 Subject: Add MAVO version --- public/javascripts/schedule.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'public/javascripts/schedule.js') diff --git a/public/javascripts/schedule.js b/public/javascripts/schedule.js index bf87af5..1a2e62f 100644 --- a/public/javascripts/schedule.js +++ b/public/javascripts/schedule.js @@ -46,7 +46,11 @@ self._handleError = function (event) { self._getURLOfUsers = function (week, type, index) { const id = index + 1 - return '//' + window.location.host + '/meetingpointProxy/Roosters-AL%2Fdoc%2Fdagroosters%2F' + + const meetingpointProxyUrl = process.env.SCHOOL_LEVEL === 'mavo' + ? '/meetingpointProxy/Roosters-AL%2FTOSweb%2Fdagroosters%2F' + : '/meetingpointProxy/Roosters-AL%2Fdoc%2Fdagroosters%2F' + + return '//' + window.location.host + meetingpointProxyUrl + leftPad(week, 2, '0') + '%2F' + type + '%2F' + type + leftPad(id, 5, '0') + '.htm' } -- cgit v1.1