about summary refs log tree commit diff stats
path: root/html/broughlike/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/broughlike/index.html')
-rw-r--r--html/broughlike/index.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/html/broughlike/index.html b/html/broughlike/index.html
index cebc5cf..0a732c5 100644
--- a/html/broughlike/index.html
+++ b/html/broughlike/index.html
@@ -472,9 +472,18 @@
             return [];
         }
 
-        let combatAnimationEnabled = true;
+        let combatAnimationEnabled = localStorage.getItem('combatAnimationEnabled');
+        if (combatAnimationEnabled === null) {
+            combatAnimationEnabled = true; // default to on...is that a good idea?
+            localStorage.setItem('combatAnimationEnabled', combatAnimationEnabled);
+        } else {
+            combatAnimationEnabled = combatAnimationEnabled === 'true';
+        }
+        document.getElementById('toggleShake').textContent = combatAnimationEnabled ? 'Turn Shake Off' : 'Turn Shake On';
+
         function toggleShake() {
             combatAnimationEnabled = !combatAnimationEnabled;
+            localStorage.setItem('combatAnimationEnabled', combatAnimationEnabled);
             document.getElementById('toggleShake').textContent = combatAnimationEnabled ? 'Turn Shake Off' : 'Turn Shake On';
         }
 
a>
10885d3 ^
b55bd70 ^
4ec0420 ^
52a8cc8 ^





b55bd70 ^
19390b1 ^
97ced11 ^
19390b1 ^
a73a882 ^
b38905b ^
a73a882 ^
19dcbc5 ^

0982e47 ^
19dcbc5 ^
b60406c ^


19dcbc5 ^




42fd392 ^
19dcbc5 ^










42fd392 ^
19dcbc5 ^








a73a882 ^



d6a6eca ^
a08d83b ^



a73a882 ^
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