Changes to airpg.scroll.pub

ffff:77.98.241.22
ffff:77.98.241.22
26 days ago
updated index.scroll
index.scroll
Changed around line 5: editButton /edit.html
- script.js
+ script.js
+ index.html
ffff:77.98.241.22
ffff:77.98.241.22
26 days ago
updated index.scroll
index.scroll
Changed around line 1
- baseUrl https://airpg.scroll.pub
+ baseUrl https://airPpg.scroll.pub
root
root
26 days ago
Initial commit
body.html
Changed around line 1
+
+

AI RPG

+

Your Adventure, Your Story

+
+
+
+

Create Your Character

+
+
+
+
+
+
+
+
+
+

Your Adventure

+
+
+
+
+
+

AI RPG - Craft Your Adventure

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://airpg.scroll.pub
+ metaTags
+ editButton /edit.html
+ title AI RPG - Craft Your Adventure
+ style.css
+ body.html
+ script.js
readme.scroll
Changed around line 1
+ # airpg.scroll.pub
+ Website generated by DeepSeek from prompt: Ai rpg
script.js
Changed around line 1
+ document.getElementById('character-form').addEventListener('submit', function(event) {
+ event.preventDefault();
+ const name = document.getElementById('name').value;
+ const charClass = document.getElementById('class').value;
+
+ document.getElementById('character-creation').classList.add('hidden');
+ document.getElementById('adventure').classList.remove('hidden');
+
+ startAdventure(name, charClass);
+ });
+
+ function startAdventure(name, charClass) {
+ const story = `Welcome, ${name}, the ${charClass}! Your journey begins in the mystical land of Eldoria. The fate of the realm rests in your hands.`;
+ document.getElementById('story').textContent = story;
+
+ const choices = [
+ { text: 'Explore the forest', outcome: 'You discover a hidden treasure.' },
+ { text: 'Visit the village', outcome: 'The villagers ask for your help.' },
+ { text: 'Climb the mountain', outcome: 'You encounter a fierce dragon.' }
+ ];
+
+ const choicesDiv = document.getElementById('choices');
+ choicesDiv.innerHTML = '';
+
+ choices.forEach(choice => {
+ const button = document.createElement('button');
+ button.textContent = choice.text;
+ button.classList.add('choice-button');
+ button.addEventListener('click', () => {
+ document.getElementById('story').textContent = choice.outcome;
+ choicesDiv.innerHTML = '';
+ });
+ choicesDiv.appendChild(button);
+ });
+ }
style.css
Changed around line 1
+ :root {
+ --primary-color: #4a90e2;
+ --secondary-color: #f5a623;
+ --background-color: #1e1e2f;
+ --text-color: #ffffff;
+ --font-family: 'Arial', sans-serif;
+ }
+
+ body {
+ font-family: var(--font-family);
+ background-color: var(--background-color);
+ color: var(--text-color);
+ margin: 0;
+ padding: 0;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ min-height: 100vh;
+ }
+
+ header {
+ text-align: center;
+ margin-bottom: 2rem;
+ }
+
+ header h1 {
+ font-size: 3rem;
+ color: var(--primary-color);
+ }
+
+ header p {
+ font-size: 1.5rem;
+ color: var(--secondary-color);
+ }
+
+ main {
+ width: 90%;
+ max-width: 800px;
+ background-color: #2d2d44;
+ padding: 2rem;
+ border-radius: 10px;
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
+ }
+
+ section {
+ margin-bottom: 2rem;
+ }
+
+ h2 {
+ color: var(--primary-color);
+ margin-bottom: 1rem;
+ }
+
+ form {
+ display: flex;
+ flex-direction: column;
+ }
+
+ label {
+ margin-bottom: 0.5rem;
+ color: var(--text-color);
+ }
+
+ input, select, button {
+ padding: 0.5rem;
+ margin-bottom: 1rem;
+ border: none;
+ border-radius: 5px;
+ font-size: 1rem;
+ }
+
+ button {
+ background-color: var(--primary-color);
+ color: var(--text-color);
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+ }
+
+ button:hover {
+ background-color: var(--secondary-color);
+ }
+
+ #adventure {
+ display: none;
+ }
+
+ #story {
+ font-size: 1.2rem;
+ line-height: 1.6;
+ margin-bottom: 1.5rem;
+ }
+
+ #choices {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+ }
+
+ .choice-button {
+ background-color: var(--secondary-color);
+ color: var(--text-color);
+ padding: 0.75rem;
+ border: none;
+ border-radius: 5px;
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+ }
+
+ .choice-button:hover {
+ background-color: var(--primary-color);
+ }
+
+ footer {
+ text-align: center;
+ margin-top: 2rem;
+ color: var(--secondary-color);
+ }
+
+ @media (max-width: 600px) {
+ header h1 {
+ font-size: 2rem;
+ }
+
+ header p {
+ font-size: 1rem;
+ }
+
+ main {
+ padding: 1rem;
+ }
+
+ #story {
+ font-size: 1rem;
+ }
+ }