blob: 4c7e2df18b20550c701f60738206ec2ee47dc3ae (
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,
conf: document.getElementById('conf').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, " "));
}
|