diff --git a/assets/scripts.js b/assets/scripts.js index 6f10736..864b64e 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -63,34 +63,6 @@ function switch_choices() { return moments; } -// momentsBySegment = moments; - -// Get translations from bandersnatch.js - -// var translation = {}; - -// for (var key in moments) { - -// translation[key] = {}; - -// for (var i = 0; i < Object.keys(moments[key]).length; i++) { - -// if ("choices" in moments[key][i]) { - -// for (var k = 0; k < Object.keys(moments[key][i]["choices"]).length; k++) { - -// if ("id" in moments[key][i]["choices"][k]) { - -// translation[key][moments[key][i]["choices"][k]["id"]] = moments[key][i]["choices"][k]['text']; -// } -// } -// } -// } -// } - -// console.log(moments); -// console.log(JSON.stringify(moments).length); // 165517 - // Persistent state var ls = window.localStorage || {}; if (!('initialized' in ls)) { diff --git a/index.html b/index.html index d0777ef..bb5a8ab 100644 --- a/index.html +++ b/index.html @@ -177,7 +177,6 @@ select.addEventListener('change',(e)=>{ translated_choices = window[select.value]; console.log(select.value); - // console.log(translated_choices); momentsBySegment = switch_choices(); })