Commit 5293245
committed
Method to Store Content shown
Additionally added a feature that adds an event listener and saves the current language to the users local storage, if not defiend previously.
If it is defined it loads the selected language from this example Cpp or Csharp.
Which will be asked each time a refresh is called or page is reloaded.
Additionally Pressing the Button either cpp or Csharp will rewrite the Language Preference and store it to locally.
Note:
This Requires that the JavaScript would be made globally not for each instance where possible.
Make sure that only specified buttons are called so make cases if there are less or more languages.
" in the future figure out where to store these as all in the same file would be an overkill potentially ".1 parent 1e26e23 commit 5293245
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
28 | 36 | | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
| |||
34 | 44 | | |
35 | 45 | | |
36 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
37 | 54 | | |
0 commit comments