+function konamiToggle() {
+ var t = trollToggle.apply(this, arguments);
+ var sequence = [2, 2, 1, 1, 0, 3, 0, 3, 4, 5];
+ var idx = 0;
+ t.set = (value) => {
+ if (value === sequence[idx]) {
+ if (++idx >= sequence.length) {
+ ToggleModule.toggles['troll'] = true;
+ ToggleModule.refreshContent();
+ }
+ }
+ else { idx = 0; }
+ }
+ return t;
+}
+
+export const options = ip_shuffle ([
+ konamiToggle('troll', "Do not touch this", false,
+ '←', 0, '↓', 1, '↑', 2, '→', 3, 'B', 4, 'A', 5),
+ trollToggle('pants', 'pants', 1 + Math.floor(3 * Math.random()),
+ 'red', 1, 'green', 2, 'blue', 3, 'you perv', 4),