PageSourceSearch

https://blddb.net/assets/js/language.js

js blddb.net collected 2026-10-06 13:14:38 UTC 22,266 bytes, 499 lines download raw bytes

1const arrLang = {
2    "en": {
3        "title": "3BLD Algorithms Database",
4        "description": "The online website for BLDDB.",
5        "corner": "3-Style Corner",
6        "twists": "Corner Twist",
7        "edge": "3-Style Edge",
8        "2flips": "Edge Flip",
9        "parity": "3BLD Parity",
10        "ltct": "LTCT & T2C",
11        "2e2e": "2e2e",
12        "ltef": "LTEF",
13        "5style": "5-Style",
14        "code": "Lettering Scheme",
15        "introduction": "Readme",
16        "cornerHint": "Please enter 3 letter pairs (buffer-position1-position2) you want to query (eg. JAD)",
17        "edgeHint": "Please enter 3 letter pairs (buffer-position1-position2) you want to query (eg. ACG)",
18        "twistsHint": "Please set the corner twist condition (solved if empty)",
19        "2flipsHint": "Please enter the 2 positions you want to flip",
20        "parityHint": "Please enter the parity you want to solve",
21        "2e2eHint": "Please enter the positions you want to swap",
22        "ltctHint1": "Edge swap is always UF-UR.",
23        "ltctHint2": "For LTCT inquiry, select first and second drop-down lists.",
24        "ltctHint3": "For T2C inquiry, select first and third drop-down lists.",
25        "ltefHint": "Please enter the positions you want to query (Here LTEF stand for last edge target + edge flip. eg. UF-xy-RU-FU, plus a flip)",
26        "5styleHint": "Please enter 5 letter pairs (buffer-position1-position2-position3-position4) you want to query (eg. ACEGJ)",
27        "wingHint": "Please enter 3 letter pairs (buffer-position1-position2) you want to query (eg. ACG)",
28        "midgeHint": "Please enter 3 letter pairs (buffer-position1-position2) you want to query (eg. ACG)",
29        "xcenterHint": "Please enter 3 letter pairs (buffer-position1-position2) you want to query (eg. JAB)",
30        "tcenterHint": "Please enter 3 letter pairs (buffer-position1-position2) you want to query (eg. ACF)",
31        "position": "Position: ",
32        "pairs": "Letter Pairs: ",
33        "cw": "CW: ",
34        "ccw": "CCW: ",
35        "2flips1": "Position1: ",
36        "2flips2": "Position2: ",
37        "parity1": "Edge:",
38        "parity2": "Corner:",
39        "twistscw": "CW",
40        "twistsccw": "CCW",
41        "ltcttwist": "Twist: ",
42        "ltcttwistHint": "Where U/D sticker is",
43        "2e2e1": "Swap1: ",
44        "2e2e2": "Swap2: ",
45        "2e2eflips": "Flips:",
46        "2e2eyes": "Yes",
47        "2e2eno": "No",
48        "ltefflips": "Flips:",
49        "codeChichu": "Chinese Lettering Scheme",
50        "codeSpeffz": "Speffz Lettering Scheme",
51        "codeLetterSetting": "Lettering Scheme Setting: ",
52        "codeOrientationSetting": "Orientation Setting: ",
53        "code1": "Yellow(top) - Red(front)",
54        "code2": "Yellow(top) - Orange(front)",
55        "code3": "Yellow(top) - Blue(front)",
56        "code4": "Yellow(top) - Green(front)",
57        "code5": "White(top) - Red(front)",
58        "code6": "White(top) - Orange(front)",
59        "code7": "White(top) - Blue(front)",
60        "code8": "White(top) - Green(front)",
61        "code9": "Blue(top) - Red(front)",
62        "code10": "Blue(top) - Orange(front)",
63        "code11": "Blue(top) - Yellow(front)",
64        "code12": "Blue(top) - White(front)",
65        "code13": "Green(top) - Red(front)",
66        "code14": "Green(top) - Orange(front)",
67        "code15": "Green(top) - Yellow(front)",
68        "code16": "Green(top) - White(front)",
69        "code17": "Red(top) - Blue(front)",
70        "code18": "Red(top) - Green(front)",
71        "code19": "Red(top) - Yellow(front)",
72        "code20": "Red(top) - White(front)",
73        "code21": "Orange(top) - Blue(front)",
74        "code22": "Orange(top) - Green(front)",
75        "code23": "Orange(top) - Yellow(front)",
76        "code24": "Orange(top) - White(front)",
77        "wingCodeSetting": "Wing Coding Position: ",
78        "wingcode1": "Standard (coding at UFr)",
79        "wingcode2": "Non-standard (coding at FUr)",
80        "thumbup": "Thumb up",
81        "thumbdown": "Thumb down",
82        "homegrip": "Home grip",
83        "no": "No.",
84        "algorithm": "Algorithm",
85        "commutator": "Commutator",
86        "thumbPosition": "Thumb Position",
87        "source": "Source",
88        "buffer": "Buffer: ",
89        "nightmare": "Nightmare Alg Set",
90        "nightmareDescription": "The online website for Nightmare.",
91        "nightmareLetters": "Letters",
92        "nightmareEdge": "3-Style Edge",
93        "nightmareCorner": "3-Style Corner",
94        "nightmare2Flips": "Edge Flip",
95        "nightmare2Twists": "Corner Twist",
96        "nightmareParity": "Parity",
97        "nightmareParityTwist": "LTCT/LTEF",
98        "nightmare2e2e": "2e2e",
99        "nightmare2c2c": "2c2c",
100        "nightmare3Twists": "3 Corner Twist",
101        "nightmare4Flips": "4 Edge Flip",
102        "nightmare5Style": "5-Style Edge(UR)",
103        "style": "Style:",
104        "cornerStyleNightmare": "nightmare",
105        "cornerStyleBalance": "balance",
106        "cornerStyleYuanzi": "yuanzi",
107        "cornerStyleManmade": "manmade",
108        "edgeStyleNightmare": "nightmare",
109        "edgeStyleManmade": "manmade",
110        "custom": "Custom Alg Set",
111        "customDescription": "Customize your Alg set.",
112        "customEdge": "3-Style Edge",
113        "customCorner": "3-Style Corner",
114        "customUpfile": "Import Local Excel",
115        "customDownfile": "Export Excel",
116        "customClear": "Clear",
117        "bigbld": "BigBLD Alg Set",
118        "wing": "Wing",
119        "midge": "Midge",
120        "xcenter": "X-center",
121        "tcenter": "+-center",
122        "notice": "Notice",
123        "noticeSentence1": "The next version of BLDDB (",
124        "noticeSentence2": ") is currently in beta. Please visit and provide your feedback to help us improve!",
125        "neverShowAgain": "Never show again"
126    },
127    "zh": {
128        "title": "三盲公式库",
129        "description": "三盲公式库的在线网页版本。",
130        "corner": "角块公式库",
131        "twists": "翻角公式库",
132        "edge": "棱块公式库",
133        "2flips": "翻棱公式库",
134        "parity": "奇偶公式库",
135        "ltct": "奇偶带翻库",
136        "2e2e": "2e2e库",
137        "ltef": "棱三循环带翻库",
138        "5style": "五循环库",
139        "code": "编码",
140        "introduction": "说明",
141        "cornerHint": "请在下方输入你要查询的公式编码(例如: JAD)",
142        "edgeHint": "请在下方输入你要查询的公式编码(例如: ACG)",
143        "twistsHint": "请在下方选择你要查询的翻角公式",
144        "2flipsHint": "请在下方选择你要查询的翻棱公式",
145        "parityHint": "请在下方输入你要查询的奇偶公式",
146        "ltctHint1": "棱块交换位置为 UF-UR。",
147        "ltctHint2": "查询奇偶带翻公式时,请在下方选择第一和第二个下拉栏。",
148        "ltctHint3": "查询 T2C 公式时,请在下方选择第一和第三个下拉栏。",
149        "2e2eHint": "请在下方选择你要查询的 2e2e 公式",
150        "ltefHint": "请在下方选择你要查询的棱三循环带翻公式",
151        "5styleHint": "请在下方输入你要查询的五循环公式",
152        "wingHint": "请在下方输入你要查询的公式编码(例如: ACG)",
153        "midgeHint": "请在下方输入你要查询的公式编码(例如: ACG)",
154        "xcenterHint": "请在下方输入你要查询的公式编码(例如: JAB)",
155        "tcenterHint": "请在下方输入你要查询的公式编码(例如: ACF)",
156        "position": "位置类:",
157        "pairs": "公式查询:",
158        "cw": "顺翻:",
159        "ccw": "逆翻:",
160        "2flips1": "位置一:",
161        "2flips2": "位置二:",
162        "parity1": "棱:",
163        "parity2": "角:",
164        "twistscw": "顺翻",
165        "twistsccw": "逆翻",
166        "ltcttwist": "翻角:",
167        "ltcttwistHint": "翻角高级色所在的位置",
168        "2e2e1": "交换一: ",
169        "2e2e2": "交换二: ",
170        "2e2eflips": "含翻:",
171        "2e2eyes": "是",
172        "2e2eno": "否",
173        "ltefflips": "翻色:",
174        "codeChichu": "彳亍编码",
175        "codeSpeffz": "Speffz 编码",
176        "codeLetterSetting": "编码设置:",
177        "codeOrientationSetting": "坐标设置:",
178        "code1": "黄顶红前",
179        "code2": "黄顶橙前",
180        "code3": "黄顶蓝前",
181        "code4": "黄顶绿前",
182        "code5": "白顶红前",
183        "code6": "白顶橙前",
184        "code7": "白顶蓝前",
185        "code8": "白顶绿前",
186        "code9": "蓝顶红前",
187        "code10": "蓝顶橙前",
188        "code11": "蓝顶黄前",
189        "code12": "蓝顶白前",
190        "code13": "绿顶红前",
191        "code14": "绿顶橙前",
192        "code15": "绿顶黄前",
193        "code16": "绿顶白前",
194        "code17": "红顶蓝前",
195        "code18": "红顶绿前",
196        "code19": "红顶黄前",
197        "code20": "红顶白前",
198        "code21": "橙顶蓝前",
199        "code22": "橙顶绿前",
200        "code23": "橙顶黄前",
201        "code24": "橙顶白前",
202        "wingCodeSetting": "翼棱编码位置:",
203        "wingcode1": "标准(在 UFr 位置编码)",
204        "wingcode2": "非标准(在 FUr 位置编码)",
205        "thumbup": "上",
206        "thumbdown": "下",
207        "homegrip": "中",
208        "no": "序号",
209        "source": "来源",
210        "algorithm": "公式",
211        "commutator": "交换子",
212        "thumbPosition": "起手",
213        "buffer": "缓冲:",
214        "nightmare": "噩梦公式集",
215        "nightmareDescription": "噩梦公式集的在线网页版本。",
216        "nightmareLetters": "编码",
217        "nightmareEdge": "全缓冲棱",
218        "nightmareCorner": "全缓冲角",
219        "nightmare2Flips": "全两棱翻",
220        "nightmare2Twists": "全两角翻",
221        "nightmareParity": "奇偶",
222        "nightmareParityTwist": "奇偶带翻",
223        "nightmare2e2e": "2e2e",
224        "nightmare2c2c": "2c2c",
225        "nightmare3Twists": "全三角翻",
226        "nightmare4Flips": "全四棱翻",
227        "nightmare5Style": "五循环(UR)",
228        "style": "风格:",
229        "cornerStyleNightmare": "噩梦",
230        "cornerStyleBalance": "平衡",
231        "cornerStyleYuanzi": "圆子",
232        "cornerStyleManmade": "人造",
233        "edgeStyleNightmare": "噩梦",
234        "edgeStyleManmade": "人造",
235        "custom": "个人公式集",
236        "customDescription": "自定义你的盲拧公式集。",
237        "customEdge": "棱块公式集",
238        "customCorner": "角块公式集",
239        "customUpfile": "导入本地 Excel",
240        "customDownfile": "导出为 Excel",
241        "customClear": "清空",
242        "bigbld": "高盲公式库",
243        "wing": "翼棱公式库",
244        "midge": "中棱公式库",
245        "xcenter": "角心公式库",
246        "tcenter": "边心公式库",
247        "notice": "通知",
248        "noticeSentence1": "新版盲拧公式库(",
249        "noticeSentence2": ")目前处于公测阶段。请访问并提供您的反馈以帮助我们改进!",
250        "neverShowAgain": "不再显示"
251    },
252    "ja": {
253        "title": "3BLD手順データベース",
254        "description": "BLDDBのオンラインウェブサイト。",
255        "corner": "3-Styleコーナー",
256        "twists": "コーナーツイスト",
257        "edge": "3-Styleエッジ",
258        "2flips": "エッジフリップ",
259        "parity": "3BLD パリティ",
260        "ltct": "LTCT & T2C",
261        "2e2e": "2e2e",
262        "ltef": "LTEF",
263        "5style": "5-Style",
264        "code": "ナンバリング設定",
265        "introduction": "Readme",
266        "cornerHint": "検索したい3ナンバリング(バッファ-位置1-位置2)を入力してください(例:JAD)",
267        "edgeHint": "検索したい3ナンバリング(バッファ-位置1-位置2)を入力してください(例:ACG)",
268        "twistsHint": "コーナーツイストの条件を設定してください(未解決の場合は空にしてください)",
269        "2flipsHint": "フリップしたい2つの位置を入力してください",
270        "parityHint": "解決したいパリティを入力してください",
271        "ltctHint1": "エッジ交換は常にUF-URです。",
272        "ltctHint2": "LTCTの問い合わせの場合、最初と2番目のドロップダウンリストを選択してください。",
273        "ltctHint3": "T2Cの問い合わせの場合、最初と3番目のドロップダウンリストを選択してください。",
274        "2e2eHint": "交換したい位置を入力してください",
275        "ltefHint": "検索したい位置を入力してください (例:UF-xy-RU-FU, plus a flip)",
276        "5styleHint": "検索したい5ナンバリング(バッファ-位置1-位置2-位置3-位置4)を入力してください(例:ACEGJ)",
277        "wingHint": "検索したい3ナンバリング(バッファ-位置1-位置2)を入力してください(例:ACG)",
278        "midgeHint": "検索したい3ナンバリング(バッファ-位置1-位置2)を入力してください(例:ACG)",
279        "xcenterHint": "検索したい3ナンバリング(バッファ-位置1-位置2)を入力してください(例:JAB)",
280        "tcenterHint": "検索したい3ナンバリング(バッファ-位置1-位置2)を入力してください(例:ACF)",
281        "position": "ステッカー:",
282        "pairs": "ナンバリング:",
283        "cw": "時計回り:",
284        "ccw": "反時計回り:",
285        "2flips1": "位置1:",
286        "2flips2": "位置2:",
287        "parity1": "エッジ:",
288        "parity2": "コーナー:",
289        "twistscw": "時計回り",
290        "twistsccw": "反時計回り",
291        "ltcttwist": "コーナーツイスト:",
292        "ltcttwistHint": "U/Dステッカーがある位置",
293        "2e2e1": "交換1:",
294        "2e2e2": "交換2:",
295        "2e2eflips": "フリップ:",
296        "2e2eyes": "はい",
297        "2e2eno": "いいえ",
298        "ltefflips": "フリップ:",
299        "codeChichu": "Chichuナンバリング",
300        "codeSpeffz": "Speffzナンバリング",
301        "codeLetterSetting": "ナンバリング設定:",
302        "codeOrientationSetting": "向き設定:",
303        "code1": "黄(U面) - 赤(F面)",
304        "code2": "黄(U面) - 橙(F面)",
305        "code3": "黄(U面) - 青(F面)",
306        "code4": "黄(U面) - 緑(F面)",
307        "code5": "白(U面) - 赤(F面)",
308        "code6": "白(U面) - 橙(F面)",
309        "code7": "白(U面) - 青(F面)",
310        "code8": "白(U面) - 緑(F面)",
311        "code9": "青(U面) - 赤(F面)",
312        "code10": "青(U面) - 橙(F面)",
313        "code11": "青(U面) - 黄(F面)",
314        "code12": "青(U面) - 白(F面)",
315        "code13": "緑(U面) - 赤(F面)",
316        "code14": "緑(U面) - 橙(F面)",
317        "code15": "緑(U面) - 黄(F面)",
318        "code16": "緑(U面) - 白(F面)",
319        "code17": "赤(U面) - 青(F面)",
320        "code18": "赤(U面) - 緑(F面)",
321        "code19": "赤(U面) - 黄(F面)",
322        "code20": "赤(U面) - 白(F面)",
323        "code21": "橙(U面) - 青(F面)",
324        "code22": "橙(U面) - 緑(F面)",
325        "code23": "橙(U面) - 黄(F面)",
326        "code24": "橙(U面) - 白(F面)",
327        "wingCodeSetting": "Wing Coding Position: ",
328        "wingcode1": "Standard (coding at UFr)",
329        "wingcode2": "Non-standard (coding at FUr)",
330        "thumbup": "上",
331        "thumbdown": "下",
332        "homegrip": "中",
333        "no": "連番",
334        "source": "出典",
335        "algorithm": "手順",
336        "commutator": "コミュテーター",
337        "thumbPosition": "スタート",
338        "buffer": "バッファ:",
339        "nightmare": "悪夢手順表",
340        "nightmareDescription": "悪夢手順表のオンラインウェブサイト。",
341        "nightmareLetters": "ステッカー",
342        "nightmareEdge": "全エッジバッファ",
343        "nightmareCorner": "全コーナーバッファ",
344        "nightmare2Flips": "全2エッジフリップ",
345        "nightmare2Twists": "全2コーナーツイスト",
346        "nightmareParity": "パリティ",
347        "nightmareParityTwist": "LTCT/LTEF",
348        "nightmare2e2e": "2e2e",
349        "nightmare2c2c": "2c2c",
350        "nightmare3Twists": "全3コーナーツイスト",
351        "nightmare4Flips": "全4エッジフリップ",
352        "nightmare5Style": "5-Styleエッジ(UR)",
353        "style": "スタイル:",
354        "cornerStyleNightmare": "悪夢",
355        "cornerStyleBalance": "バランス",
356        "cornerStyleYuanzi": "yuanzi",
357        "cornerStyleManmade": "人工",
358        "edgeStyleNightmare": "悪夢",
359        "edgeStyleManmade": "人工",
360        "custom": "カスタム手順表",
361        "customDescription": "あなたの3BLD手順表をカスタマイズする",
362        "customEdge": "3-Styleエッジ",
363        "customCorner": "3-Styleコーナー",
364        "customUpfile": "Excelファイルをインポート",
365        "customDownfile": "Excelファイルにエクスポート",
366        "customClear": "クリア",
367        "bigbld": "BigBLD Alg Set",
368        "wing": "Wing",
369        "midge": "Midge",
370        "xcenter": "X-center",
371        "tcenter": "+-center",
372        "notice": "お知らせ",
373        "noticeSentence1": "BLDDBの次のバージョン(",
374        "noticeSentence2": ")は現在ベータ版です。ぜひ訪問して、改善のためにフィードバックをお寄せください!",
375        "neverShowAgain": "再表示しない"
376    }
377};
378
379const langNames = {
380    "zh": "简体中文",
381    "en": "English",
382    "ja": "日本語"
383};
384
385// Check for cookie support
386// The default language is English
387let lang = getCookie("lang") || navigator.language.slice(0, 2) || navigator.userLanguage.slice(0, 2) || "en";
388if (!Object.keys(arrLang).includes(lang)) {
389    lang = "en";
390}
391
392document.querySelector(".language .status_circle").textContent = langNames[lang];
393if (lang === "zh") {
394    $("#introduction").attr("href", "https://docs.blddb.net/zh");
395    $("#nightmareIntroduction").attr("href", "https://docs.blddb.net/zh/#nightmare");
396    $("#donate").attr("href", "donate.html");
397    $("#codeinput").width("5.5em");
398    $("#cornerstyle").width("5em");
399    $("#edgestyle").width("5em");
400    $("#ltctstyle").width("5em");
401    $("#paritystyle").width("5em");
402    $("#image").show();
403} else {
404    $("#introduction").attr("href", "https://docs.blddb.net/en");
405    $("#nightmareIntroduction").attr("href", "https://docs.blddb.net/en/#nightmare");
406    $("#donate").attr("href", "donate_en.html");
407    $("#codeinput").width("14em");
408    $("#cornerstyle").width("7em");
409    $("#edgestyle").width("7em");
410    $("#ltctstyle").width("7em");
411    $("#paritystyle").width("7em");
412    $("#image").hide();
413}
414
415dropdown = document.querySelector(".dropdown-content");
416dropdown.innerHTML = "";
417
418for (const langOther in langNames) {
419    if (langOther !== lang) {
420        dropdown.innerHTML += `<div class="status_circle" data-lang="${langOther}">${langNames[langOther]}</div>`;
421    }
422}
423
424// Get the translate button and dropdown content
425const translateBtn = document.querySelector(".language .status_circle");
426const dropdownContent = document.querySelector(".language .dropdown-content");
427
428translateBtn.textContent = langNames[lang];
429translateBtn.style.backgroundImage = `url(../../images/${lang}.png)`;
430// Add a click event listener to the translate button
431translateBtn.addEventListener("click", () => {
432    // Toggle the "show" class on the dropdown content
433    dropdownContent.classList.toggle("show");
434});
435
436$(document).ready(() => {
437    $(".lang").each(function (index, element) {
438        $(this).text(arrLang[lang][$(this).attr("key")]);
439    });
440    if (typeof $(".allscreen")[0] !== "undefined") {
441        $(".allscreen")[0].style.display = "block";
442    }
443    const r = $("#table").width() / $("#div1").width();
444    if (r > 1) {
445        $("#table").css("font-size", 16 / r);
446    }
447    if (typeof fontAwesome === "function") {
448        fontAwesome();
449    }
450});
451
452dropdownContent.addEventListener("click", (event) => {
453    if (event.target.classList.contains("status_circle")) {
454        lang = event.target.dataset.lang;
455        translateBtn.textContent = langNames[lang];
456        translateBtn.style.backgroundImage = `url(../../images/${lang}.png)`;
457        dropdownContent.classList.remove("show");
458        // add options to the dropdown for the other languages
459        dropdown.innerHTML = "";
460        for (const langOther in langNames) {
461            if (langOther !== lang) {
462                dropdown.innerHTML += `<div class="status_circle" data-lang="${langOther}">${langNames[langOther]}</div>`;
463            }
464        }
465        // update cookie key
466        setCookie("lang", lang, 400);
467        document.querySelector(".language .status_circle").textContent = langNames[lang];
468        if (lang === "zh") {
469            $("#introduction").attr("href", "https://docs.blddb.net/zh");
470            $("#nightmareIntroduction").attr("href", "https://docs.blddb.net/zh/#nightmare");
471            $("#donate").attr("href", "donate.html");
472            $("#codeinput").width("5.5em");
473            $("#cornerstyle").width("5em");
474            $("#edgestyle").width("5em");
475            $("#ltctstyle").width("5em");
476            $("#paritystyle").width("5em");
477            $("#image").show();
478        } else {
479            $("#introduction").attr("href", "https://docs.blddb.net/en");
480            $("#nightmareIntroduction").attr("href", "https://docs.blddb.net/en/#nightmare");
481            $("#donate").attr("href", "donate_en.html");
482            $("#codeinput").width("14em");
483            $("#cornerstyle").width("7em");
484            $("#edgestyle").width("7em");
485            $("#ltctstyle").width("7em");
486            $("#paritystyle").width("7em");
487            $("#image").hide();
488        }
489        $(".lang").each(function (index, element) {
490            $(this).text(arrLang[lang][$(this).attr("key")]);
491        });
492        if (typeof algSearch === "function") {
493            algSearch();
494        }
495        if (typeof fontAwesome === "function") {
496            fontAwesome();
497        }
498    }
499});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.