From 5320cbe1eb8d7e7a99679e1bccc8190b28f244f5 Mon Sep 17 00:00:00 2001 From: Daniel Goldsmith Date: Fri, 15 Jan 2021 12:36:23 +0000 Subject: [PATCH] Update Index with custom Icons --- .../assets/javascripts/themetoggle.js | 4 --- docs/index.md | 32 +++++++++++-------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/custom_theme/assets/javascripts/themetoggle.js b/custom_theme/assets/javascripts/themetoggle.js index 279f469..0266207 100644 --- a/custom_theme/assets/javascripts/themetoggle.js +++ b/custom_theme/assets/javascripts/themetoggle.js @@ -16,7 +16,6 @@ changeTheme(); function changeTheme(){ lightMode = localStorage.getItem("lightMode"); - console.log("CT: Light Mode is ", lightMode); if (lightMode == "true"){ document.body.setAttribute("data-md-color-scheme", "default"); lightDiv.classList.remove("darkIcon"); @@ -32,16 +31,13 @@ function changeTheme(){ toggleDiv.onclick = function(){ console.log("Current Theme is", lightMode) if (lightMode == "true"){ - console.log("--> Set False"); lightMode = false; } else{ lightMode = true; - console.log("--> Set True"); } localStorage.setItem("lightMode", lightMode); - console.log("Change Theme to", lightMode) changeTheme(); } diff --git a/docs/index.md b/docs/index.md index feb66b9..4fa9297 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,29 +2,35 @@ This is the Index -!!! easytask "Easy Task" +Some Custom Admonitons - An Easy Task +!!! discuss -!!! task "The Task" - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod - nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor - massa, nec semper lorem quam in massa. + A question to think about and discuss on the Aula + It will usually come with a ```#tag``` +!!! task -!!! hardtask "Hard Task" + A practical task to complete. + I love learning through doing. So we will have lots + of practical activities to complete. - This is a hard Task + There are also different levels of task -!!! discuss "Discuss" + !!! easytask "Easy Task" - Discuss this on Aula + You **should** be able to do this to pass the module + + !!! task "Task" + + Being able to complete this should give you a decent grade. + + !!! hardtask "Hard Task" + + **Optional** harder task for those who want to test their skills -!!! hacker "Hacker" - Bleh - - :custom-hacker: