mirror of
https://github.com/mehotkhan/BandersnatchInteractive.git
synced 2025-07-27 17:23:22 +00:00
Prepared for pull request
This commit is contained in:
parent
a4f6d03137
commit
a930971a7a
2 changed files with 0 additions and 29 deletions
|
@ -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)) {
|
||||
|
|
|
@ -177,7 +177,6 @@
|
|||
select.addEventListener('change',(e)=>{
|
||||
translated_choices = window[select.value];
|
||||
console.log(select.value);
|
||||
// console.log(translated_choices);
|
||||
momentsBySegment = switch_choices();
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue