aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/main.js
blob: 3c3d797b27d335c7e0429f19b248d12cc31ef449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Remove search query
window.history.pushState(
  {
    html: document.documentElement.innerHTML,
    pageTitle: document.title
  },
  '',
  document.location.pathname + document.location.hash
);

var app = Elm.Main.fullscreen({
  time: new Date().getTime(),
  translations: JSON.parse(document.getElementById('translations').innerHTML),
  conf: JSON.parse(document.getElementById('conf').innerHTML),
  result: JSON.parse(document.getElementById('result').innerHTML),
  windowSize: { width: window.innerWidth, height: window.innerHeight }
});