Advertisement
Faemous

HTML 4

Feb 25th, 2025
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.47 KB | None | 0 0
  1. <div id="mainCtn" style="display: flex; flex-direction: column; width: 95%; max-width: 800px; margin: 0 auto; padding: 1rem;">
  2.   <!-- Story Overview Section -->
  3.   <div id="storyOverviewSection" style="width: 100%; margin-bottom: 1rem;">
  4.     <textarea id="storyOverviewEl" oninput="localStorage.storyOverview = this.value" placeholder="(Optional) Who are you in this adventure, and what should it be about? Add keywords, an overview, or a starter—include characters, plot, style, lore, mechanics, or genre if you like." style="width: 100%; min-height: 100px; padding: 0.75rem; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; resize: vertical;"></textarea>
  5.     <button id="storyBeginBtn" onclick="this.disabled = true; this.textContent = '⏳ loading...'; window.continueStory({initial: true});" style="width: 100%; padding: 0.5rem; margin-top: 0.5rem; font-size: 1.1rem; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer;">🏞️ Begin Adventure</button>
  6.   </div>
  7.  
  8.   <!-- Game Container -->
  9.   <div id="game-container" style="display: flex; gap: 1rem; align-items: flex-start; width: 100%;">
  10.     <!-- Player Status -->
  11.     <div id="player-status" style="width: 220px; padding: 1rem; background-color: #000000; color: white; border-radius: 5px; box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);">
  12.       <h3 style="margin: 0 0 0.5rem; font-size: 1.2rem;">Player Status</h3>
  13.       <p>Date: <span id="ui-date">[currentDate.toLocaleString()]</span></p>
  14.       <p>Health: <span id="ui-health">100</span></p>
  15.       <p>Hunger: <span id="ui-hunger">100</span></p>
  16.       <p>Thirst: <span id="ui-thirst">100</span></p>
  17.       <p>Tiredness: <span id="ui-tiredness">100</span></p>
  18.       <p>Hygiene: <span id="ui-hygiene">100</span></p>
  19.       <p>Reputation: <span id="ui-reputation">0</span></p>
  20.       <p>Jordan Friendship: <span id="ui-jordan-friendship">15</span></p>
  21.       <p>Jordan Lust: <span id="ui-jordan-lust">0</span></p>
  22.       <p>Jordan Obsession: <span id="ui-jordan-obsession">0</span></p>
  23.       <p>Casey Friendship: <span id="ui-casey-friendship">-5</span></p>
  24.       <p>Casey Lust: <span id="ui-casey-lust">0</span></p>
  25.       <p>Casey Obsession: <span id="ui-casey-obsession">0</span></p>
  26.       <p>Alex Friendship: <span id="ui-alex-friendship">10</span></p>
  27.       <p>Alex Lust: <span id="ui-alex-lust">0</span></p>
  28.       <p>Alex Obsession: <span id="ui-alex-obsession">0</span></p>
  29.       <p>Rumors: <textarea id="ui-rumors" readonly style="width: 100%; min-height: 50px; font-size: 0.9rem;"></textarea></p>
  30.       <p>Events: <textarea id="ui-events" readonly style="width: 100%; min-height: 50px; font-size: 0.9rem;"></textarea></p>
  31.     </div>
  32.  
  33.     <!-- Story Window -->
  34.     <div id="story-window" style="flex-grow: 1; padding: 1rem; background-color: #f5f5f5; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);">
  35.       <textarea id="storySoFarEl" oninput="localStorage.storySoFar = this.value" placeholder="The story will appear here. Edit as needed." style="width: 100%; min-height: 250px; padding: 0.75rem; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; resize: vertical;"></textarea>
  36.     </div>
  37.   </div>
  38.  
  39.   <!-- Action Input -->
  40.   <div id="storyGenerationAreaEl" style="display: none; margin-top: 1rem; gap: 0.5rem;">
  41.     <div style="display: flex; width: 100%;">
  42.       <textarea id="whatHappensNextEl" oninput="localStorage.whatHappensNext = this.value" placeholder="What will you do next? Type your action here." style="flex-grow: 1; min-height: 60px; padding: 0.75rem; border: 1px solid #ddd; border-radius: 5px; font-size: 0.9rem;"></textarea>
  43.       <button onclick="window.continueStory()" style="background-color: #2196F3; padding: 0.5rem 1rem; border: none; border-radius: 5px; color: white; cursor: pointer;">▶️ Continue</button>
  44.     </div>
  45.     <div style="display: flex; gap: 0.5rem; margin-top: 0.5rem;">
  46.       <button onclick="eat();" style="background-color: #FF9800;">🍽️ Eat</button>
  47.       <button onclick="drink();" style="background-color: #03A9F4;">💧 Drink</button>
  48.       <button onclick="rest();" style="background-color: #9C27B0;">💤 Rest</button>
  49.       <button onclick="clean();" style="background-color: #8BC34A;">🧼 Clean</button>
  50.     </div>
  51.   </div>
  52.  
  53.   <!-- Dark Mode Toggle -->
  54.   <div style="position: fixed; bottom: 0.5rem; left: 0.5rem; z-index: 10;">
  55.     <button onclick="toggleManualDarkMode()" style="background-color: #607D8B; padding: 0.5rem; border: none; border-radius: 5px; color: white; cursor: pointer;">🌃</button>
  56.   </div>
  57. </div>
  58.  
  59. <style>
  60.   body {
  61.     font-family: Arial, sans-serif;
  62.     background-color: #fafafa;
  63.     color: #333;
  64.     margin: 0;
  65.     padding: 0;
  66.   }
  67.   button:disabled {
  68.     opacity: 0.6;
  69.     cursor: not-allowed;
  70.   }
  71.   textarea {
  72.     resize: vertical;
  73.   }
  74.   .dark-mode {
  75.     background-color: #333;
  76.     color: #fff;
  77.   }
  78.   .dark-mode #player-status {
  79.     background-color: #111;
  80.     box-shadow: 0 2px 5px rgba(255, 255, 255, 0.2);
  81.   }
  82.   .dark-mode #story-window {
  83.     background-color: #444;
  84.   }
  85.   .dark-mode textarea {
  86.     background-color: #555;
  87.     color: #fff;
  88.     border-color: #666;
  89.   }
  90.   .dark-mode button {
  91.     filter: brightness(85%);
  92.   }
  93. </style>
  94.  
  95. <script>
  96.   function toggleManualDarkMode() {
  97.     document.body.classList.toggle('dark-mode')
  98.     localStorage.setItem('darkMode', document.body.classList.contains('dark-mode'))
  99.   }
  100.   if (localStorage.getItem('darkMode') === 'true') {
  101.     document.body.classList.add('dark-mode')
  102.   }
  103. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement