File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 13
13
14
14
body {
15
15
font-family : Arial, sans-serif;
16
- transition : all 0.3s ease;
17
16
}
18
17
19
18
button {
41
40
</ head >
42
41
43
42
< body >
44
- < h1 > Theme Switcher Example</ h1 >
45
- < p > Click the buttons below to switch themes:</ p >
46
- < button onclick ="setTheme('light') "> Light Theme</ button >
47
- < button onclick ="setTheme('dark') "> Dark Theme</ button >
48
- < button onclick ="setTheme('flame') "> Flame Theme</ button >
49
-
50
43
< script >
51
44
52
45
// a theme is saved in localStorage ( or default )
@@ -58,6 +51,12 @@ <h1>Theme Switcher Example</h1>
58
51
document . body . classList . add ( 'theme-' + theme ) ;
59
52
}
60
53
</ script >
54
+
55
+ < h1 > Theme Switcher Example</ h1 >
56
+ < p > Click the buttons below to switch themes:</ p >
57
+ < button onclick ="setTheme('light') "> Light Theme</ button >
58
+ < button onclick ="setTheme('dark') "> Dark Theme</ button >
59
+ < button onclick ="setTheme('flame') "> Flame Theme</ button >
61
60
</ body >
62
61
63
62
</ html >
You can’t perform that action at this time.
0 commit comments