blob: bdcb479e18af2d837f81611a634e3d9a80249a3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Elm.fullscreen(Elm.Main, {
signInError: getParameterByName('signInError'),
initialTime: new Date().getTime(),
translations: document.getElementById('messages').innerHTML,
config: document.getElementById('config').innerHTML
});
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results && decodeURIComponent(results[1].replace(/\+/g, " "));
}
|