From 6a6a2993f305cb0f7085b8e35a951abd918231f0 Mon Sep 17 00:00:00 2001 From: VerzatileDev <47317248+VerzatileDev@users.noreply.github.com> Date: Fri, 29 Dec 2023 23:15:22 +0200 Subject: [PATCH] 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 ". --- docs/Concepts/OOP.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/Concepts/OOP.md b/docs/Concepts/OOP.md index c6a3404..6b86e99 100644 --- a/docs/Concepts/OOP.md +++ b/docs/Concepts/OOP.md @@ -25,7 +25,17 @@ has_children: false \ No newline at end of file