diff --git a/game.js b/game.js index 17ed792..7b4da48 100644 --- a/game.js +++ b/game.js @@ -2,6 +2,27 @@ /*jshint browser: true*/ +// do da dark mode + +let dark = false; + +function toggleDarkMode(e) { + dark = !dark; + setDarkMode(dark); +} + +function setDarkMode(darkMode) { + dark = darkMode; + window.localStorage.setItem("dark-mode",dark); + if (dark) { + document.querySelector("body").classList.remove("light"); + document.querySelector("body").classList.add("dark"); + } else { + document.querySelector("body").classList.remove("dark"); + document.querySelector("body").classList.add("light"); + } +} + let started = false; let strolling = false; @@ -2434,6 +2455,14 @@ function actionTab(e) { window.addEventListener('load', function(event) { + (function() { + let storage = window.localStorage; + + if (storage.getItem("dark-mode") != null) { + setDarkMode(storage.getItem("dark-mode") === "true"); + } + }()); + victims["stomped"] = initVictims(); victims["tailslapped"] = initVictims(); victims["tailmaw'd"] = initVictims(); @@ -2494,6 +2523,9 @@ window.addEventListener('load', function(event) { document.getElementById("button-arousal").addEventListener("click",toggle_arousal); document.getElementById("button-grow-lots").addEventListener("click",grow_lots); + document.getElementById("button-dark-mode-options").addEventListener("click",toggleDarkMode); + document.getElementById("button-dark-mode-game").addEventListener("click",toggleDarkMode); + document.getElementById("button-amount-1").addEventListener("click",function() { grow_pick(1); }); document.getElementById("button-amount-5").addEventListener("click",function() { grow_pick(5); }); document.getElementById("button-amount-10").addEventListener("click",function() { grow_pick(10); }); diff --git a/stroll.html b/stroll.html index 17d2f56..5a6f558 100644 --- a/stroll.html +++ b/stroll.html @@ -9,7 +9,7 @@ - +
-
Welcome to Stroll 0.5.1
+
Welcome to Stroll 0.5.2
This game features 18+ content
Changelog
It's a nice day for a walk
@@ -128,11 +129,12 @@
-

Welcome to Stroll 0.5.1

+

Welcome to Stroll 0.5.2

This game features 18+ content

Changelog
+

Build your Character (leave blank for defaults)

    @@ -292,20 +294,22 @@
    -
      - Lactation: -
      -
      -
    • - -
      -
    • -
    • - -
      -
    • -
      -
    +
    +
      + Lactation: +
      +
      +
    • + +
      +
    • +
    • + +
      +
    • +
      +
    +

  • diff --git a/style.css b/style.css index 9c25756..2cd1eb3 100644 --- a/style.css +++ b/style.css @@ -1,9 +1,31 @@ -body { +.light { + color: #000; background: #eee; font-family: Arial; } +.dark { + color: #eee; + background: #111; + font-family: Arial; +} + + +body.dark > div > div > div > form input { + color: #eee; + background: #444; +} + +body.dark button { + color: #eee; + background: #111; +} + +body.dark div { + background: #111; +} + .game-area { display: flex; margin: auto; @@ -26,12 +48,20 @@ body { display:none; } -#log { +body.light #log { height: 900px; overflow: auto; + color: #000; background-color: #fff; } +body.dark #log { + height: 900px; + overflow: auto; + color: #eee; + background-color: #111; +} + .stat-header-self { font-weight: bold; font-size: 150%;