Repository navigation
Expand file tree
/
Copy pathtutorial.html
More file actions
1239 lines (1121 loc) · 43.5 KB
/
Copy pathtutorial.html
File metadata and controls
1239 lines (1121 loc) · 43.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SwitchFix — Install & First Launch Guide</title>
<meta name="description" content="Install SwitchFix, find macOS Open Anyway with real screenshots, and enable typing access. A short visual setup guide for Mac.">
<link rel="icon" type="image/svg+xml" href="images/app_icon.svg">
<style>
:root {
--bg: #f5f5f7;
--card-bg: #ffffff;
--text-main: #1d1d1f;
--text-muted: #6e6e73;
--accent: #0071e3;
--accent-hover: #0077ed;
--accent-light: #e8f2fc;
--success: #34c759;
--success-light: #eafaf1;
--warning: #ff9500;
--warning-light: #fff8ed;
--border: #d2d2d7;
--card-border: rgba(0, 0, 0, 0.08);
--card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
--radius-sm: 8px;
--radius-md: 14px;
--radius-lg: 20px;
--radius-full: 9999px;
--font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
--font-mono: "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #161618;
--card-bg: #242426;
--text-main: #f5f5f7;
--text-muted: #a1a1a6;
--accent: #2997ff;
--accent-hover: #3ca2ff;
--accent-light: #162a45;
--success: #30d158;
--success-light: #163622;
--warning: #ff9f0a;
--warning-light: #3d2c14;
--border: #424245;
--card-border: rgba(255, 255, 255, 0.1);
--card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-sans);
background-color: var(--bg);
color: var(--text-main);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
padding-bottom: 80px;
}
/* Top banner */
.hero-section {
text-align: center;
padding: 50px 20px 30px;
max-width: 820px;
margin: 0 auto;
}
.app-badge {
display: inline-flex;
align-items: center;
gap: 12px;
background: var(--card-bg);
padding: 8px 18px 8px 10px;
border-radius: var(--radius-full);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
border: 1px solid var(--card-border);
margin-bottom: 24px;
}
.app-badge img {
width: 38px;
height: 38px;
border-radius: 9px;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.app-badge span {
font-size: 15px;
font-weight: 600;
letter-spacing: -0.2px;
}
.hero-title {
font-size: clamp(32px, 5vw, 44px);
font-weight: 700;
letter-spacing: -0.02em;
margin-bottom: 16px;
line-height: 1.15;
}
.hero-subtitle {
font-size: clamp(17px, 2.5vw, 20px);
color: var(--text-muted);
max-width: 600px;
margin: 0 auto 28px;
}
/* Container */
.container {
max-width: 780px;
margin: 0 auto;
padding: 0 20px;
}
/* Card styling */
.card {
background: var(--card-bg);
border-radius: var(--radius-lg);
padding: 32px 36px;
margin-bottom: 30px;
box-shadow: var(--card-shadow);
border: 1px solid var(--card-border);
position: relative;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-header {
display: flex;
align-items: flex-start;
gap: 18px;
margin-bottom: 20px;
}
.step-num {
width: 44px;
height: 44px;
min-width: 44px;
border-radius: var(--radius-full);
background: var(--accent);
color: #ffffff;
font-size: 20px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
transition: background 0.3s, transform 0.3s;
}
.step-info h2 {
font-size: 22px;
font-weight: 700;
margin-bottom: 4px;
}
.step-info p {
font-size: 16px;
color: var(--text-muted);
}
/* Terminal copy box */
.code-box {
background: #1c1c1e;
color: #f5f5f7;
border-radius: var(--radius-md);
padding: 18px 20px;
margin: 18px 0;
font-family: var(--font-mono);
font-size: 14px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
border: 1px solid #333;
box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}
.code-text {
min-width: 0;
white-space: pre-wrap;
overflow-wrap: anywhere;
color: #5ac8fa;
}
.copy-btn {
background: var(--accent);
color: #fff;
border: none;
padding: 10px 18px;
border-radius: var(--radius-sm);
font-size: 14px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
transition: background 0.2s, transform 0.1s;
white-space: nowrap;
}
.copy-btn:hover {
background: var(--accent-hover);
}
.copy-btn:active {
transform: scale(0.97);
}
/* Interactive Simulation Stage */
.simulation-box {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 24px 20px;
margin: 20px 0;
text-align: center;
position: relative;
}
.sim-header {
font-size: 13px;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--text-muted);
font-weight: 600;
margin-bottom: 16px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
/* macOS Settings Window Simulation */
.macos-window-mock {
background: var(--card-bg);
border-radius: var(--radius-md);
box-shadow: 0 8px 24px rgba(0,0,0,0.08);
border: 1px solid var(--border);
max-width: 520px;
margin: 0 auto;
overflow: hidden;
text-align: left;
}
.window-titlebar {
background: rgba(0, 0, 0, 0.03);
padding: 10px 16px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 10px;
font-size: 13px;
font-weight: 600;
}
.window-dots {
display: flex;
gap: 6px;
}
.dot {
width: 10px;
height: 10px;
border-radius: 5px;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.window-content {
padding: 16px 20px;
}
.mock-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 14px;
border-radius: var(--radius-sm);
background: rgba(0, 0, 0, 0.02);
border: 1px solid var(--card-border);
transition: background 0.3s, border-color 0.3s;
}
@media (prefers-color-scheme: dark) {
.mock-row {
background: rgba(255, 255, 255, 0.03);
}
}
.mock-row.is-active {
background: var(--success-light);
border-color: var(--success);
}
.app-meta {
display: flex;
align-items: center;
gap: 14px;
}
.app-meta img {
width: 36px;
height: 36px;
border-radius: 8px;
}
.app-name-block {
display: flex;
flex-direction: column;
}
.app-name {
font-size: 15px;
font-weight: 600;
}
.app-desc {
font-size: 12px;
color: var(--text-muted);
}
/* macOS Toggle Switch */
.macos-switch {
position: relative;
width: 52px;
height: 30px;
background: #e5e5ea;
border-radius: 15px;
cursor: pointer;
transition: background 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(0, 0, 0, 0.08);
user-select: none;
outline: none;
}
@media (prefers-color-scheme: dark) {
.macos-switch {
background: #39393d;
}
}
.macos-switch.checked {
background: #007aff;
}
.macos-switch-thumb {
position: absolute;
top: 1px;
left: 1px;
width: 26px;
height: 26px;
background: #ffffff;
border-radius: 50%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.macos-switch.checked .macos-switch-thumb {
transform: translateX(22px);
}
/* Switch control group & interactive hand pointer guide */
.switch-control-group {
display: flex;
align-items: center;
gap: 12px;
position: relative;
}
/* Red callout pill pointing at the switch */
.switch-callout {
display: inline-flex;
align-items: center;
gap: 6px;
background: #ff3b30;
color: #ffffff;
padding: 6px 12px;
border-radius: var(--radius-full);
font-size: 13px;
font-weight: 700;
letter-spacing: -0.2px;
box-shadow: 0 4px 14px rgba(255, 59, 48, 0.35);
animation: nudge-right 1.2s infinite ease-in-out;
cursor: pointer;
user-select: none;
transition: opacity 0.3s, transform 0.3s;
white-space: nowrap;
}
.switch-callout.hidden {
opacity: 0;
pointer-events: none;
transform: scale(0.8);
display: none;
}
@keyframes nudge-right {
0%, 100% { transform: translateX(0); }
50% { transform: translateX(6px); }
}
/* Switch wrapper with beacon pulse */
.switch-interactive-wrapper {
position: relative;
width: 52px;
height: 30px;
flex-shrink: 0;
}
.switch-beacon {
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
border-radius: 18px;
pointer-events: none;
animation: beacon-glow 1.5s infinite ease-out;
z-index: 1;
}
.switch-beacon.hidden {
display: none;
}
@keyframes beacon-glow {
0% {
box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.7);
}
70% {
box-shadow: 0 0 0 12px rgba(0, 122, 255, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
}
}
/* Animated hand cursor tapping the switch */
.hand-pointer-guide {
position: absolute;
top: 14px;
left: 12px;
width: 38px;
height: 38px;
pointer-events: none;
z-index: 20;
filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
animation: hand-tap 1.6s infinite ease-in-out;
transition: opacity 0.3s, transform 0.3s;
}
.hand-pointer-guide.hidden {
opacity: 0;
transform: scale(0.6);
display: none;
}
@keyframes hand-tap {
0% {
transform: translate(16px, 16px) scale(1);
opacity: 0.95;
}
40% {
transform: translate(0px, 0px) scale(1);
opacity: 1;
}
50% {
transform: translate(-3px, -3px) scale(0.88);
opacity: 1;
}
65% {
transform: translate(2px, 2px) scale(1);
opacity: 1;
}
100% {
transform: translate(16px, 16px) scale(1);
opacity: 0.95;
}
}
@media (max-width: 520px) {
.switch-callout span:first-child {
display: none;
}
}
.status-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border-radius: var(--radius-full);
font-size: 13px;
font-weight: 600;
margin-top: 14px;
transition: all 0.3s;
}
.status-badge.off {
background: var(--warning-light);
color: var(--warning);
}
.status-badge.on {
background: var(--success-light);
color: var(--success);
}
/* Screenshot viewer toggle */
.view-toggle-row {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin: 16px 0 10px;
}
.view-btn {
background: transparent;
border: 1px solid var(--border);
color: var(--text-muted);
padding: 6px 14px;
border-radius: var(--radius-full);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.view-btn.active {
background: var(--accent);
color: #fff;
border-color: var(--accent);
}
.screenshot-container {
margin-top: 14px;
border-radius: var(--radius-md);
overflow: hidden;
border: 1px solid var(--border);
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.screenshot-container img {
width: 100%;
height: auto;
display: block;
}
/* Interactive Typing Playground */
.playground-box {
background: var(--card-bg);
border: 2px solid var(--success);
border-radius: var(--radius-lg);
padding: 28px;
margin-top: 24px;
text-align: center;
box-shadow: 0 12px 32px rgba(52, 199, 89, 0.15);
}
.demo-input-container {
margin: 20px auto;
max-width: 480px;
position: relative;
}
.demo-input {
width: 100%;
padding: 16px 20px;
font-size: 20px;
font-family: var(--font-mono);
border-radius: var(--radius-md);
border: 2px solid var(--border);
background: var(--bg);
color: var(--text-main);
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
}
.demo-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 4px var(--accent-light);
}
.demo-actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
margin-top: 14px;
}
.demo-pill-btn {
background: var(--bg);
border: 1px solid var(--border);
color: var(--text-main);
padding: 8px 16px;
border-radius: var(--radius-full);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.demo-pill-btn:hover {
background: var(--accent-light);
border-color: var(--accent);
color: var(--accent);
}
.demo-result-badge {
display: inline-block;
margin-top: 12px;
font-size: 15px;
font-weight: 600;
color: var(--success);
}
.guide-header { position: sticky; top: 0; z-index: 10; background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 12px 16px; }
.guide-header-inner { max-width: 820px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.guide-home { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-main); text-decoration: none; font-size: 14px; }
.guide-home img { border-radius: 6px; }
.guide-header-links { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.guide-header-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; }
/* Installation guide: one action at a time. */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.sr-only {
position: absolute; width: 1px; height: 1px; padding: 0;
margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.setup-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; }
.setup-nav a { font-size: 14px; font-weight: 600; text-decoration: none; }
.guide-note { color: var(--text-muted); font-size: 14px; margin-top: 16px; }
.launch-note { border-left: 3px solid var(--accent); padding-left: 16px; margin-bottom: 24px; }
.launch-note p + p { margin-top: 6px; }
.guide-list { padding-left: 22px; }
.guide-list > li { padding-left: 6px; margin-bottom: 22px; }
.guide-list > li:last-child { margin-bottom: 0; }
.settings-location { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: center; }
.settings-location img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.settings-location p { margin-bottom: 12px; }
.settings-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--accent-light); font-weight: 600; text-decoration: none; font-size: 14px; }
.approval-screenshot { margin-top: 16px; }
.approval-screenshot img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.approval-screenshot figcaption { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.guide-details { border-top: 1px solid var(--card-border); margin-top: 24px; padding-top: 16px; }
.guide-details summary { cursor: pointer; font-weight: 600; min-height: 44px; padding: 10px 0; }
.guide-details summary:hover { color: var(--accent); }
.guide-details > p { margin: 8px 0 12px; color: var(--text-muted); font-size: 14px; }
.ready-note { background: var(--accent-light); border-radius: var(--radius-sm); padding: 16px; margin-top: 22px; }
.guide-extras { margin: 40px 0; }
.guide-extras h2 { font-size: 20px; margin-bottom: 6px; }
.guide-extras > p { font-size: 14px; color: var(--text-muted); }
.practice-example .simulation-box { margin-top: 8px; }
.guide-footer { margin-top: 28px; font-size: 14px; color: var(--text-muted); }
@media (max-width: 600px) {
.settings-location { grid-template-columns: minmax(0, 1fr); }
.settings-location img { max-width: 280px; }
.guide-list { padding-left: 18px; }
.guide-list > li { padding-left: 2px; }
.mock-row { gap: 12px; flex-wrap: wrap; }
.switch-control-group { margin-left: auto; }
.hero-section { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Responsive */
@media (max-width: 600px) {
.card {
padding: 24px 20px;
}
.code-box {
flex-direction: column;
align-items: stretch;
}
.copy-btn {
justify-content: center;
}
}
</style>
</head>
<body>
<header class="guide-header">
<div class="guide-header-inner">
<a class="guide-home" href="docs/index.html">
<span aria-hidden="true">←</span>
<img src="images/app_icon.svg" alt="" width="24" height="24">
<span>SwitchFix Home</span>
</a>
<nav class="guide-header-links" aria-label="Site navigation">
<a href="docs/index.html#install">Install</a>
<a href="https://github.com/rundax/SwitchFix" target="_blank" rel="noopener">GitHub</a>
</nav>
</div>
</header>
<div class="hero-section">
<div class="app-badge">
<img src="images/app_icon.svg" alt="SwitchFix Logo">
<span>SwitchFix for Mac</span>
</div>
<h1 class="hero-title">Install. Open. Allow access.</h1>
<p class="hero-subtitle">Three steps, with the exact macOS screens to look for.</p>
<nav class="setup-nav" aria-label="Setup steps">
<a href="#install">1. Install</a>
<a href="#open-app">2. Open the app</a>
<a href="#allow-access">3. Allow typing access</a>
</nav>
</div>
<main class="container">
<section class="card" id="install" aria-labelledby="install-title">
<div class="step-header">
<div class="step-num" aria-hidden="true">1</div>
<div class="step-info">
<h2 id="install-title">Install SwitchFix</h2>
<p>Free. macOS 13 or later. Apple Silicon and Intel.</p>
</div>
</div>
<p>Open <strong>Terminal</strong> with <kbd>Command + Space</kbd>. Paste the command and press <strong>Return</strong>.</p>
<div class="code-box">
<span class="code-text" id="install-cmd">/bin/bash -o pipefail -c 'curl --fail --location --silent --show-error https://raw.githubusercontent.com/rundax/SwitchFix/master/install.sh | /bin/bash'</span>
<button class="copy-btn" onclick="copyInstallCommand()">
<svg id="copy-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><rect x="8" y="8" width="12" height="12" rx="2"/><path d="M16 8V4H4v12h4"/></svg>
<span id="copy-label" aria-live="polite">Copy</span>
</button>
</div>
<p class="guide-note">Run without <code>sudo</code>. The installer puts the app in Applications. <strong>macOS may block the first launch</strong> because this free build is not notarized by Apple. Follow step 2 instead of reinstalling.</p>
<p class="guide-note">Prefer a download? Get the <a href="https://github.com/rundax/SwitchFix/releases/latest">latest ZIP for your Mac</a>, extract it, and move SwitchFix to Applications.</p>
</section>
<section class="card" id="open-app" aria-labelledby="open-title">
<div class="step-header">
<div class="step-num" aria-hidden="true">2</div>
<div class="step-info">
<h2 id="open-title">Let macOS open the app</h2>
<p>Already open? Skip to <a href="#allow-access">typing access</a>.</p>
</div>
</div>
<div class="launch-note">
<p><strong>“SwitchFix” Not Opened?</strong> Click <strong>Done</strong>, not <strong>Move to Bin</strong>.</p>
<p class="guide-note">Approve only the SwitchFix release you intentionally downloaded and trust.</p>
</div>
<ol class="guide-list">
<li>
<div class="settings-location">
<div>
<p>Open <strong>System Settings</strong>. Choose <strong>Privacy & Security</strong> in the <strong>left sidebar</strong>.</p>
<a class="settings-link" href="x-apple.systempreferences:com.apple.preference.security">Open Privacy & Security</a>
<p class="guide-note">Shortcut for your Mac. You can also open it manually.</p>
</div>
<img src="images/privacy-security-sidebar.jpg" alt="System Settings sidebar with Privacy & Security selected in blue" width="406" height="258">
</div>
</li>
<li>
<p>In the <strong>right pane, scroll down</strong> past the permission lists to <strong>Security</strong>. Find the SwitchFix warning and click <strong>Open Anyway</strong>.</p>
<figure class="approval-screenshot">
<img src="images/gatekeeper-open-anyway.png" alt="Security section showing SwitchFix was blocked, with the Open Anyway button on the right" width="952" height="380">
<figcaption>Leave “Allow applications from” unchanged. Click only <strong>Open Anyway</strong> beside SwitchFix. <a href="images/gatekeeper-open-anyway.png" target="_blank" rel="noopener">View full-size screenshot</a>.</figcaption>
</figure>
</li>
<li><p>Authenticate if asked, then click <strong>Open</strong> in the confirmation. If needed, open <strong>Finder → Applications → SwitchFix</strong> again.</p></li>
</ol>
<details class="guide-details" id="launch-help">
<summary>Can't find Open Anyway?</summary>
<p>Open SwitchFix from Applications again, click <strong>Done</strong>, then return here and scroll down to <strong>Security</strong>. The approval option is available for about an hour after a blocked launch.</p>
<p>If you chose <strong>Move to Bin</strong>, install it again first. On a managed work or school Mac, ask your administrator if approval is disabled.</p>
<p>Do not disable Gatekeeper. These steps are for an unverified-app warning, not a malware detection. <a href="https://support.apple.com/en-us/102445" target="_blank" rel="noopener">Apple's guidance</a>.</p>
</details>
</section>
<section class="card" id="allow-access" aria-labelledby="access-title">
<div class="step-header">
<div class="step-num" aria-hidden="true">3</div>
<div class="step-info">
<h2 id="access-title">Allow typing access</h2>
<p>Now use SwitchFix's setup window, not this webpage.</p>
</div>
</div>
<ol class="guide-list">
<li>For <strong>Accessibility</strong>, click <strong>Open Settings + Show App</strong>. Enable SwitchFix in the Settings pane that opens. If it is missing, click <strong>+</strong> and add it from Applications.</li>
<li><strong>Only if Keyboard input access is Unavailable:</strong> use the setup window's Input Monitoring button and enable SwitchFix there. If access already says <strong>Available</strong>, skip this—even if there is no Input Monitoring entry.</li>
<li>Restart SwitchFix if macOS asks. Return to the app and click <strong>Check Again</strong>. If prompted, add two supported layouts in <strong>System Settings → Keyboard → Text Input → Edit</strong>.</li>
</ol>
<div class="ready-note"><strong>Setup complete?</strong> Click <strong>Try a correction</strong> in the app to confirm it works. Look for the <strong>Ab</strong> icon in your menu bar, near the clock—not in the Dock.</div>
<details class="guide-details">
<summary>Permission is on, but access is still unavailable?</summary>
<p>Updates can leave a stale entry. In the affected permission pane, remove the old SwitchFix with <strong>−</strong>, add the current app from Applications with <strong>+</strong>, and enable it. Restart if asked, then click <strong>Check Again</strong> in SwitchFix.</p>
</details>
</section>
<section class="guide-extras" aria-labelledby="practice-title">
<h2 id="practice-title">Need a visual example?</h2>
<p>Optional practice. This page cannot read or change your Mac's permissions.</p>
<details class="guide-details practice-example" id="practice-acc">
<summary>See the Accessibility switch</summary>
<!-- Interactive Switch Simulator -->
<div class="simulation-box">
<div class="sim-header">
<span>Practice only — not your Mac settings</span>
</div>
<div class="macos-window-mock">
<div class="window-titlebar">
<div class="window-dots">
<div class="dot red"></div>
<div class="dot yellow"></div>
<div class="dot green"></div>
</div>
<span>System Settings — Accessibility</span>
</div>
<div class="window-content">
<div class="mock-row" id="row-acc">
<div class="app-meta">
<img src="images/app_icon.svg" alt="SwitchFix Icon">
<div class="app-name-block">
<span class="app-name">SwitchFix</span>
<span class="app-desc">Allow text replacement & layout switching</span>
</div>
</div>
<div class="switch-control-group">
<div class="switch-callout" id="callout-acc" onclick="togglePermission('acc')">
<span>Click to Turn ON</span>
<span aria-hidden="true">→</span>
</div>
<div class="switch-interactive-wrapper">
<div class="switch-beacon" id="beacon-acc"></div>
<div class="macos-switch" id="switch-acc" onclick="togglePermission('acc')" tabindex="0" role="switch" aria-checked="false" aria-label="Toggle SwitchFix Accessibility permission">
<div class="macos-switch-thumb"></div>
</div>
<div class="hand-pointer-guide" id="pointer-acc">
<svg viewBox="0 0 28 28" width="38" height="38" fill="none">
<path d="M9.5 2C8.67 2 8 2.67 8 3.5V14.2L6.1 12.3C5.5 11.7 4.5 11.7 3.9 12.3C3.3 12.9 3.3 13.9 3.9 14.5L9.7 20.3C11.3 21.9 13.5 22.8 15.8 22.8H18C21.3 22.8 24 20.1 24 16.8V11.5C24 10.7 23.3 10 22.5 10C22.3 10 22.1 10.05 21.9 10.15C21.6 9.45 20.9 9 20 9C19.7 9 19.5 9.07 19.2 9.2C18.9 8.5 18.2 8 17.3 8C17.1 8 16.9 8.04 16.7 8.12C16.3 7.45 15.5 7 14.7 7C14.6 7 14.5 7.02 14.4 7.04V3.5C14.4 2.67 13.7 2 12.9 2H9.5Z" fill="#FFFFFF" stroke="#1D1D1F" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="status-badge off" id="status-acc">
<span>Practice switch is OFF — click to try it</span>
</div>
<!-- Real Screenshot Toggle -->
<div class="view-toggle-row">
<button class="view-btn active" id="btn-toggle-acc-sim" onclick="setAccView('sim')">Interactive Simulator</button>
<button class="view-btn" id="btn-toggle-acc-real" onclick="setAccView('real')">Real Mac Screenshot</button>
</div>
<div class="screenshot-container" id="screenshot-acc" style="display: none;">
<img id="img-acc-screenshot" src="images/accessibility_off.png" alt="Clean Accessibility screenshot">
</div>
</div>
</details>
<details class="guide-details practice-example" id="practice-input">
<summary>See Input Monitoring, if needed</summary>
<!-- Interactive Switch Simulator -->
<div class="simulation-box">
<div class="sim-header">
<span>Practice only — not your Mac settings</span>
</div>
<div class="macos-window-mock">
<div class="window-titlebar">
<div class="window-dots">
<div class="dot red"></div>
<div class="dot yellow"></div>
<div class="dot green"></div>
</div>
<span>System Settings — Input Monitoring</span>
</div>
<div class="window-content">
<div class="mock-row" id="row-input">
<div class="app-meta">
<img src="images/app_icon.svg" alt="SwitchFix Icon">
<div class="app-name-block">
<span class="app-name">SwitchFix</span>
<span class="app-desc">Allow keyboard detection</span>
</div>
</div>
<div class="switch-control-group">
<div class="switch-callout" id="callout-input" onclick="togglePermission('input')">
<span>Click to Turn ON</span>
<span aria-hidden="true">→</span>
</div>
<div class="switch-interactive-wrapper">
<div class="switch-beacon" id="beacon-input"></div>
<div class="macos-switch" id="switch-input" onclick="togglePermission('input')" tabindex="0" role="switch" aria-checked="false" aria-label="Toggle SwitchFix Input Monitoring permission">
<div class="macos-switch-thumb"></div>
</div>
<div class="hand-pointer-guide" id="pointer-input">
<svg viewBox="0 0 28 28" width="38" height="38" fill="none">
<path d="M9.5 2C8.67 2 8 2.67 8 3.5V14.2L6.1 12.3C5.5 11.7 4.5 11.7 3.9 12.3C3.3 12.9 3.3 13.9 3.9 14.5L9.7 20.3C11.3 21.9 13.5 22.8 15.8 22.8H18C21.3 22.8 24 20.1 24 16.8V11.5C24 10.7 23.3 10 22.5 10C22.3 10 22.1 10.05 21.9 10.15C21.6 9.45 20.9 9 20 9C19.7 9 19.5 9.07 19.2 9.2C18.9 8.5 18.2 8 17.3 8C17.1 8 16.9 8.04 16.7 8.12C16.3 7.45 15.5 7 14.7 7C14.6 7 14.5 7.02 14.4 7.04V3.5C14.4 2.67 13.7 2 12.9 2H9.5Z" fill="#FFFFFF" stroke="#1D1D1F" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="status-badge off" id="status-input">
<span>Practice switch is OFF — click to try it</span>
</div>
<!-- Real Screenshot Toggle -->
<div class="view-toggle-row">
<button class="view-btn active" id="btn-toggle-input-sim" onclick="setInputView('sim')">Interactive Simulator</button>
<button class="view-btn" id="btn-toggle-input-real" onclick="setInputView('real')">Real Mac Screenshot</button>
</div>
<div class="screenshot-container" id="screenshot-input" style="display: none;">
<img id="img-input-screenshot" src="images/input_monitoring_off.png" alt="Clean Input Monitoring screenshot">
</div>
</div>
</details>
<details class="guide-details" id="practice-correction">
<summary>Preview a text correction</summary>
<!-- Live Typing Playground -->
<div class="playground-box">
<h3 style="font-size: 20px; font-weight: 700; margin-bottom: 6px;">Preview a correction</h3>
<p style="font-size: 14px; color: var(--text-muted); margin-bottom: 16px;">
This browser demo does not test your installed app. Type a sample and press <kbd style="background:var(--border); padding:2px 6px; border-radius:4px; font-size:12px;">Space</kbd> to preview a correction.
</p>
<div class="demo-input-container">
<label class="sr-only" for="playground-input">Wrong-layout word to preview</label>
<input type="text" id="playground-input" class="demo-input" placeholder="Type ghbdtn and press Space..." autocomplete="off">
</div>
<div class="demo-actions">
<button class="demo-pill-btn" onclick="simulateTyping('ghbdtn', 'привет')">Try Russian: "ghbdtn" → "привет"</button>
<button class="demo-pill-btn" onclick="simulateTyping('ghbdsn', 'привіт')">Try Ukrainian: "ghbdsn" → "привіт"</button>
<button class="demo-pill-btn" onclick="simulateTyping('руддщ', 'hello')">Try English: "руддщ" → "hello"</button>
<button class="demo-pill-btn" onclick="clearPlayground()">Clear</button>
</div>
<div id="playground-feedback" class="demo-result-badge"></div>
</div>
</details>
</section>
<p class="guide-footer">Free, open-source, and local to your Mac. <a href="docs/index.html">Back to SwitchFix</a> · <a href="https://github.com/rundax/SwitchFix/issues" target="_blank" rel="noopener">Get help</a></p>
</main>
<script>
// State management
const state = {
inputGranted: false,
accGranted: false
};
// Toggle permissions
function togglePermission(type) {
if (type === 'input') {
state.inputGranted = !state.inputGranted;
updateUI('input', state.inputGranted);
} else if (type === 'acc') {
state.accGranted = !state.accGranted;
updateUI('acc', state.accGranted);
}
}
function updateUI(type, isGranted) {
const switchEl = document.getElementById(`switch-${type}`);
const rowEl = document.getElementById(`row-${type}`);
const statusEl = document.getElementById(`status-${type}`);
const calloutEl = document.getElementById(`callout-${type}`);
const beaconEl = document.getElementById(`beacon-${type}`);
const pointerEl = document.getElementById(`pointer-${type}`);
const imgEl = document.getElementById(`img-${type}-screenshot`);
if (isGranted) {
switchEl.classList.add('checked');
switchEl.setAttribute('aria-checked', 'true');
rowEl.classList.add('is-active');
if (calloutEl) calloutEl.classList.add('hidden');