aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/getURLOfUser.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-09-07 18:23:27 +0200
committerNoah Loomans <noahloomans@gmail.com>2016-09-07 18:23:27 +0200
commit89f7dafc89dc4705f6c8f1787e157b67f92e77ae (patch)
tree1a040f26c086a499e01c4b5cf3e669766e60c5c4 /public/javascripts/getURLOfUser.js
parentc3f2d2328edf56e67009b4f008815242a0f5e04a (diff)
IE fix
Diffstat (limited to 'public/javascripts/getURLOfUser.js')
-rw-r--r--public/javascripts/getURLOfUser.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/public/javascripts/getURLOfUser.js b/public/javascripts/getURLOfUser.js
index a546ace..04f13ac 100644
--- a/public/javascripts/getURLOfUser.js
+++ b/public/javascripts/getURLOfUser.js
@@ -1,9 +1,9 @@
-const leftPad = require('left-pad')
-const getWeek = require('./getWeek')
+var leftPad = require('left-pad')
+var getWeek = require('./getWeek')
function getURLOfUsers (weekOffset, type, id) {
- return `http://${window.location.host}/meetingpointProxy/Roosters-AL%2Fdoc%2Fdagroosters%2F` +
- `${getWeek() + weekOffset}%2F${type}%2F${type}${leftPad(id, 5, '0')}.htm`
+ return 'http://' + window.location.host + '/meetingpointProxy/Roosters-AL%2Fdoc%2Fdagroosters%2F' +
+ (getWeek() + weekOffset) + '%2F' + type + '%2F' + type + leftPad(id, 5, '0') + '.htm'
}
module.exports = getURLOfUsers