Changes to cultivation.scroll.pub

root
root
22 days ago
Initial commit
body.html
Changed around line 1
+
+

Cultivation Chronicles

+

Embark on a journey of spiritual growth and ancient wisdom.

+
+
+
+
+
+

Welcome, cultivator. Choose your path wisely.

+
+
+
+
+
+
+
+
+
+

Your Cultivation Progress

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Continue your journey and unlock the secrets of the universe.

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://cultivation.scroll.pub
+ metaTags
+ editButton /edit.html
+ title Cultivation Chronicles: A Dialogue-Based Cultivation Game
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "9dd498ca-020f-4eb9-b49d-bfbe91ce691d",
+ "object": "chat.completion",
+ "created": 1735630867,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\ncultivation.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://cultivation.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Cultivation Chronicles: A Dialogue-Based Cultivation Game\nstyle.css\nbody.html\nscript.js\n---body.html---\n
\n

Cultivation Chronicles

\n

Embark on a journey of spiritual growth and ancient wisdom.

\n
\n\n
\n
\n
\n

Welcome, cultivator. Choose your path wisely.

\n
\n
\n \n \n \n
\n
\n\n
\n

Your Cultivation Progress

\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n
\n
\n
\n\n
\n

Continue your journey and unlock the secrets of the universe.

\n
\n---style.css---\n:root {\n --primary-color: #4a90e2;\n --secondary-color: #f4a261;\n --background-color: #f0f4f8;\n --text-color: #333;\n --font-family: 'Georgia', serif;\n}\n\nbody {\n font-family: var(--font-family);\n background-color: var(--background-color);\n color: var(--text-color);\n margin: 0;\n padding: 20px;\n line-height: 1.6;\n}\n\nheader {\n text-align: center;\n margin-bottom: 40px;\n}\n\nheader h1 {\n color: var(--primary-color);\n font-size: 2.5rem;\n}\n\nheader p {\n font-size: 1.2rem;\n color: var(--secondary-color);\n}\n\n#dialogue-section {\n background: white;\n padding: 20px;\n border-radius: 10px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n margin-bottom: 20px;\n}\n\n#dialogue-box {\n margin-bottom: 20px;\n}\n\n#dialogue-text {\n font-size: 1.1rem;\n color: var(--text-color);\n}\n\n#choices {\n display: flex;\n justify-content: space-around;\n}\n\n.choice-btn {\n background-color: var(--primary-color);\n color: white;\n border: none;\n padding: 10px 20px;\n border-radius: 5px;\n cursor: pointer;\n transition: background-color 0.3s;\n}\n\n.choice-btn:hover {\n background-color: var(--secondary-color);\n}\n\n#progress-section {\n background: white;\n padding: 20px;\n border-radius: 10px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\n#progress-bars {\n display: flex;\n justify-content: space-around;\n}\n\n.progress-bar {\n text-align: center;\n}\n\n.progress-bar label {\n display: block;\n margin-bottom: 5px;\n font-size: 1rem;\n color: var(--text-color);\n}\n\nprogress {\n width: 100%;\n height: 10px;\n border-radius: 5px;\n}\n\nfooter {\n text-align: center;\n margin-top: 40px;\n font-size: 0.9rem;\n color: var(--secondary-color);\n}\n\n@media (max-width: 768px) {\n #choices {\n flex-direction: column;\n }\n\n .choice-btn {\n margin-bottom: 10px;\n }\n\n #progress-bars {\n flex-direction: column;\n }\n\n .progress-bar {\n margin-bottom: 20px;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const dialogueText = document.getElementById('dialogue-text');\n const choiceButtons = document.querySelectorAll('.choice-btn');\n const spiritProgress = document.getElementById('spirit');\n const strengthProgress = document.getElementById('strength');\n const wisdomProgress = document.getElementById('wisdom');\n\n const dialogues = {\n 1: \"You meditate under the ancient tree, feeling your spirit grow stronger.\",\n 2: \"You train tirelessly, your body becoming a weapon of unmatched strength.\",\n 3: \"You explore the mystic realm, gaining wisdom from the ancient spirits.\"\n };\n\n choiceButtons.forEach(button => {\n button.addEventListener('click', function() {\n const choice = this.getAttribute('data-choice');\n dialogueText.textContent = dialogues[choice];\n\n // Update progress based on choice\n if (choice === '1') {\n spiritProgress.value += 10;\n } else if (choice === '2') {\n strengthProgress.value += 10;\n } else if (choice === '3') {\n wisdomProgress.value += 10;\n }\n\n // Ensure progress does not exceed max\n if (spiritProgress.value > 100) spiritProgress.value = 100;\n if (strengthProgress.value > 100) strengthProgress.value = 100;\n if (wisdomProgress.value > 100) wisdomProgress.value = 100;\n });\n });\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 242,
+ "completion_tokens": 1319,
+ "total_tokens": 1561,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 242
+ },
+ "system_fingerprint": "fp_f1afce2943"
+ }
readme.scroll
Changed around line 1
+ # cultivation.scroll.pub
+ Website generated by DeepSeek from prompt: 我想创建一个关于修真的对话养成游戏
script.js
Changed around line 1
+ document.addEventListener('DOMContentLoaded', function() {
+ const dialogueText = document.getElementById('dialogue-text');
+ const choiceButtons = document.querySelectorAll('.choice-btn');
+ const spiritProgress = document.getElementById('spirit');
+ const strengthProgress = document.getElementById('strength');
+ const wisdomProgress = document.getElementById('wisdom');
+
+ const dialogues = {
+ 1: "You meditate under the ancient tree, feeling your spirit grow stronger.",
+ 2: "You train tirelessly, your body becoming a weapon of unmatched strength.",
+ 3: "You explore the mystic realm, gaining wisdom from the ancient spirits."
+ };
+
+ choiceButtons.forEach(button => {
+ button.addEventListener('click', function() {
+ const choice = this.getAttribute('data-choice');
+ dialogueText.textContent = dialogues[choice];
+
+ // Update progress based on choice
+ if (choice === '1') {
+ spiritProgress.value += 10;
+ } else if (choice === '2') {
+ strengthProgress.value += 10;
+ } else if (choice === '3') {
+ wisdomProgress.value += 10;
+ }
+
+ // Ensure progress does not exceed max
+ if (spiritProgress.value > 100) spiritProgress.value = 100;
+ if (strengthProgress.value > 100) strengthProgress.value = 100;
+ if (wisdomProgress.value > 100) wisdomProgress.value = 100;
+ });
+ });
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #4a90e2;
+ --secondary-color: #f4a261;
+ --background-color: #f0f4f8;
+ --text-color: #333;
+ --font-family: 'Georgia', serif;
+ }
+
+ body {
+ font-family: var(--font-family);
+ background-color: var(--background-color);
+ color: var(--text-color);
+ margin: 0;
+ padding: 20px;
+ line-height: 1.6;
+ }
+
+ header {
+ text-align: center;
+ margin-bottom: 40px;
+ }
+
+ header h1 {
+ color: var(--primary-color);
+ font-size: 2.5rem;
+ }
+
+ header p {
+ font-size: 1.2rem;
+ color: var(--secondary-color);
+ }
+
+ #dialogue-section {
+ background: white;
+ padding: 20px;
+ border-radius: 10px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ margin-bottom: 20px;
+ }
+
+ #dialogue-box {
+ margin-bottom: 20px;
+ }
+
+ #dialogue-text {
+ font-size: 1.1rem;
+ color: var(--text-color);
+ }
+
+ #choices {
+ display: flex;
+ justify-content: space-around;
+ }
+
+ .choice-btn {
+ background-color: var(--primary-color);
+ color: white;
+ border: none;
+ padding: 10px 20px;
+ border-radius: 5px;
+ cursor: pointer;
+ transition: background-color 0.3s;
+ }
+
+ .choice-btn:hover {
+ background-color: var(--secondary-color);
+ }
+
+ #progress-section {
+ background: white;
+ padding: 20px;
+ border-radius: 10px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ }
+
+ #progress-bars {
+ display: flex;
+ justify-content: space-around;
+ }
+
+ .progress-bar {
+ text-align: center;
+ }
+
+ .progress-bar label {
+ display: block;
+ margin-bottom: 5px;
+ font-size: 1rem;
+ color: var(--text-color);
+ }
+
+ progress {
+ width: 100%;
+ height: 10px;
+ border-radius: 5px;
+ }
+
+ footer {
+ text-align: center;
+ margin-top: 40px;
+ font-size: 0.9rem;
+ color: var(--secondary-color);
+ }
+
+ @media (max-width: 768px) {
+ #choices {
+ flex-direction: column;
+ }
+
+ .choice-btn {
+ margin-bottom: 10px;
+ }
+
+ #progress-bars {
+ flex-direction: column;
+ }
+
+ .progress-bar {
+ margin-bottom: 20px;
+ }
+ }