Changes to fitplan3.scroll.pub

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

FitPlan

+

Your Personalized Fitness Training Plan

+
+
+
+
+

Create Your Plan

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

Your Personalized Plan

+
+
+
+
+
+

FitPlan - Helping you achieve your fitness goals

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://fitplan.scroll.pub
+ metaTags
+ editButton /edit.html
+ title FitPlan - Your Personalized Fitness Training Plan
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "c86b95c5-4fb2-41cf-a4d7-157376cad815",
+ "object": "chat.completion",
+ "created": 1735398375,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nfitplan.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://fitplan.scroll.pub\nmetaTags\neditButton /edit.html\ntitle FitPlan - Your Personalized Fitness Training Plan\nstyle.css\nbody.html\nscript.js\n---body.html---\n
\n

FitPlan

\n

Your Personalized Fitness Training Plan

\n
\n\n
\n
\n

Create Your Plan

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

Your Personalized Plan

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

FitPlan - Helping you achieve your fitness goals

\n
\n---style.css---\n:root {\n --primary-color: #4CAF50;\n --secondary-color: #45a049;\n --background-color: #f4f4f4;\n --text-color: #333;\n --white: #fff;\n}\n\nbody {\n font-family: 'Segoe UI', sans-serif;\n line-height: 1.6;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n}\n\nheader {\n background: var(--primary-color);\n color: var(--white);\n padding: 2rem 1rem;\n text-align: center;\n}\n\nh1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\nmain {\n padding: 2rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\n.form-section, .result-section {\n background: var(--white);\n padding: 2rem;\n border-radius: 8px;\n box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n margin-bottom: 2rem;\n}\n\n.form-group {\n margin-bottom: 1.5rem;\n}\n\nlabel {\n display: block;\n margin-bottom: 0.5rem;\n font-weight: 600;\n}\n\nselect, button {\n width: 100%;\n padding: 0.8rem;\n border-radius: 4px;\n border: 1px solid #ddd;\n font-size: 1rem;\n}\n\nbutton {\n background: var(--primary-color);\n color: var(--white);\n border: none;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\nbutton:hover {\n background: var(--secondary-color);\n}\n\n#planResult {\n margin-top: 1rem;\n padding: 1rem;\n background: var(--background-color);\n border-radius: 4px;\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background: var(--primary-color);\n color: var(--white);\n margin-top: 2rem;\n}\n\n@media (max-width: 600px) {\n h1 {\n font-size: 2rem;\n }\n \n main {\n padding: 1rem;\n }\n \n .form-section, .result-section {\n padding: 1rem;\n }\n}\n---script.js---\ndocument.getElementById('fitnessForm').addEventListener('submit', function(e) {\n e.preventDefault();\n \n const goal = document.getElementById('goal').value;\n const level = document.getElementById('level').value;\n const time = document.getElementById('time').value;\n \n const plan = generatePlan(goal, level, time);\n displayPlan(plan);\n});\n\nfunction generatePlan(goal, level, time) {\n const plans = {\n weightLoss: {\n beginner: `Start with 30 minutes of brisk walking 3 times a week. Add 2 days of light strength training.`,\n intermediate: `Combine 4 days of cardio (running, cycling) with 2 days of strength training.`,\n advanced: `High-intensity interval training (HIIT) 4-5 times a week with strength training.`\n },\n muscleGain: {\n beginner: `Focus on full-body workouts 3 times a week with light weights.`,\n intermediate: `Split workouts (upper/lower body) 4 times a week with moderate weights.`,\n advanced: `Targeted muscle group training 5-6 times a week with heavy weights.`\n },\n endurance: {\n beginner: `Start with 20-30 minutes of steady-state cardio 3 times a week.`,\n intermediate: `Increase to 45 minutes of cardio 4 times a week with interval training.`,\n advanced: `Long-distance training 5 times a week with tempo runs.`\n },\n flexibility: {\n beginner: `Daily stretching routine focusing on major muscle groups.`,\n intermediate: `Yoga or Pilates 3-4 times a week.`,\n advanced: `Advanced yoga or mobility training 5-6 times a week.`\n }\n };\n\n let plan = plans[goal][level];\n \n if (time == 3) {\n plan = `For 3 hours/week: ${plan}`;\n } else if (time == 5) {\n plan = `For 5 hours/week: ${plan}`;\n } else if (time == 7) {\n plan = `For 7+ hours/week: ${plan}`;\n }\n\n return plan;\n}\n\nfunction displayPlan(plan) {\n const resultSection = document.getElementById('resultSection');\n const planResult = document.getElementById('planResult');\n \n planResult.textContent = plan;\n resultSection.style.display = 'block';\n resultSection.scrollIntoView({ behavior: 'smooth' });\n}\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 247,
+ "completion_tokens": 1530,
+ "total_tokens": 1777,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 247
+ },
+ "system_fingerprint": "fp_f1afce2943"
+ }
readme.scroll
Changed around line 1
+ # fitplan3.scroll.pub
+ Website generated by DeepSeek from prompt: Create a website that calculates the best fitness training plan. Be creative!
script.js
Changed around line 1
+ document.getElementById('fitnessForm').addEventListener('submit', function(e) {
+ e.preventDefault();
+
+ const goal = document.getElementById('goal').value;
+ const level = document.getElementById('level').value;
+ const time = document.getElementById('time').value;
+
+ const plan = generatePlan(goal, level, time);
+ displayPlan(plan);
+ });
+
+ function generatePlan(goal, level, time) {
+ const plans = {
+ weightLoss: {
+ beginner: `Start with 30 minutes of brisk walking 3 times a week. Add 2 days of light strength training.`,
+ intermediate: `Combine 4 days of cardio (running, cycling) with 2 days of strength training.`,
+ advanced: `High-intensity interval training (HIIT) 4-5 times a week with strength training.`
+ },
+ muscleGain: {
+ beginner: `Focus on full-body workouts 3 times a week with light weights.`,
+ intermediate: `Split workouts (upper/lower body) 4 times a week with moderate weights.`,
+ advanced: `Targeted muscle group training 5-6 times a week with heavy weights.`
+ },
+ endurance: {
+ beginner: `Start with 20-30 minutes of steady-state cardio 3 times a week.`,
+ intermediate: `Increase to 45 minutes of cardio 4 times a week with interval training.`,
+ advanced: `Long-distance training 5 times a week with tempo runs.`
+ },
+ flexibility: {
+ beginner: `Daily stretching routine focusing on major muscle groups.`,
+ intermediate: `Yoga or Pilates 3-4 times a week.`,
+ advanced: `Advanced yoga or mobility training 5-6 times a week.`
+ }
+ };
+
+ let plan = plans[goal][level];
+
+ if (time == 3) {
+ plan = `For 3 hours/week: ${plan}`;
+ } else if (time == 5) {
+ plan = `For 5 hours/week: ${plan}`;
+ } else if (time == 7) {
+ plan = `For 7+ hours/week: ${plan}`;
+ }
+
+ return plan;
+ }
+
+ function displayPlan(plan) {
+ const resultSection = document.getElementById('resultSection');
+ const planResult = document.getElementById('planResult');
+
+ planResult.textContent = plan;
+ resultSection.style.display = 'block';
+ resultSection.scrollIntoView({ behavior: 'smooth' });
+ }
style.css
Changed around line 1
+ :root {
+ --primary-color: #4CAF50;
+ --secondary-color: #45a049;
+ --background-color: #f4f4f4;
+ --text-color: #333;
+ --white: #fff;
+ }
+
+ body {
+ font-family: 'Segoe UI', sans-serif;
+ line-height: 1.6;
+ margin: 0;
+ padding: 0;
+ background-color: var(--background-color);
+ color: var(--text-color);
+ }
+
+ header {
+ background: var(--primary-color);
+ color: var(--white);
+ padding: 2rem 1rem;
+ text-align: center;
+ }
+
+ h1 {
+ margin: 0;
+ font-size: 2.5rem;
+ }
+
+ main {
+ padding: 2rem;
+ max-width: 800px;
+ margin: 0 auto;
+ }
+
+ .form-section, .result-section {
+ background: var(--white);
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
+ margin-bottom: 2rem;
+ }
+
+ .form-group {
+ margin-bottom: 1.5rem;
+ }
+
+ label {
+ display: block;
+ margin-bottom: 0.5rem;
+ font-weight: 600;
+ }
+
+ select, button {
+ width: 100%;
+ padding: 0.8rem;
+ border-radius: 4px;
+ border: 1px solid #ddd;
+ font-size: 1rem;
+ }
+
+ button {
+ background: var(--primary-color);
+ color: var(--white);
+ border: none;
+ cursor: pointer;
+ transition: background 0.3s ease;
+ }
+
+ button:hover {
+ background: var(--secondary-color);
+ }
+
+ #planResult {
+ margin-top: 1rem;
+ padding: 1rem;
+ background: var(--background-color);
+ border-radius: 4px;
+ }
+
+ footer {
+ text-align: center;
+ padding: 1rem;
+ background: var(--primary-color);
+ color: var(--white);
+ margin-top: 2rem;
+ }
+
+ @media (max-width: 600px) {
+ h1 {
+ font-size: 2rem;
+ }
+
+ main {
+ padding: 1rem;
+ }
+
+ .form-section, .result-section {
+ padding: 1rem;
+ }
+ }