Prepared for pull request

This commit is contained in:
MxShift 2023-02-25 01:11:51 +06:00
parent a4f6d03137
commit a930971a7a
2 changed files with 0 additions and 29 deletions

View file

@ -63,34 +63,6 @@ function switch_choices() {
return moments; 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 // Persistent state
var ls = window.localStorage || {}; var ls = window.localStorage || {};
if (!('initialized' in ls)) { if (!('initialized' in ls)) {

View file

@ -177,7 +177,6 @@
select.addEventListener('change',(e)=>{ select.addEventListener('change',(e)=>{
translated_choices = window[select.value]; translated_choices = window[select.value];
console.log(select.value); console.log(select.value);
// console.log(translated_choices);
momentsBySegment = switch_choices(); momentsBySegment = switch_choices();
}) })
</script> </script>