This commit is contained in:
2026-01-23 12:21:26 +03:00
parent 7332f83c31
commit 758461132c
2191 changed files with 381215 additions and 1899 deletions

749
Lesson Slides Template.html Normal file
View File

@@ -0,0 +1,749 @@
<!DOCTYPE html>
<!-- saved from url=(0063)file:///Users/home/Downloads/deepseek_html_20260120_76fab4.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lesson Slides Template</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: #f8f9fa;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
padding: 10px;
}
.container {
flex: 1;
display: flex;
flex-direction: column;
max-width: 1000px;
margin: 0 auto;
width: 100%;
height: calc(100vh - 60px);
}
.slide {
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
padding: 30px 40px;
margin: 10px 0;
display: none;
flex: 1;
overflow-y: auto;
max-height: 82vh;
min-height: 400px;
}
.slide.active {
display: flex;
flex-direction: column;
}
h1 {
color: #2c3e50;
font-size: 2.2rem;
margin-bottom: 15px;
text-align: center;
font-weight: 600;
}
h2 {
color: #2c3e50;
font-size: 1.8rem;
margin-bottom: 20px;
text-align: center;
font-weight: 600;
}
h3 {
color: #2c3e50;
font-size: 1.4rem;
margin-bottom: 15px;
}
.lesson-title {
color: #2980b9;
font-size: 1.8rem;
margin-bottom: 10px;
text-align: center;
font-weight: 600;
}
.subject-topic {
color: #27ae60;
font-size: 1.5rem;
margin-bottom: 10px;
text-align: center;
font-weight: 600;
}
.subject-title {
text-align: center;
color: #7f8c8d;
font-size: 1.2rem;
margin-bottom: 30px;
font-style: italic;
}
p {
font-size: 1.1rem;
line-height: 1.6;
margin: 15px 0;
color: #34495e;
}
ul, ol {
margin: 15px 0 20px 30px;
font-size: 1.1rem;
line-height: 1.6;
color: #34495e;
}
li {
margin: 10px 0;
}
.rules-container {
background-color: #f8f9fa;
border-radius: 6px;
padding: 25px;
margin: 20px 0;
border-left: 4px solid #3498db;
}
.outcomes-container {
background-color: #e8f4fd;
border-radius: 6px;
padding: 25px;
margin: 20px 0;
}
.why-container {
background-color: #f0f7ff;
border-radius: 6px;
padding: 25px;
margin: 20px 0;
}
.content-container {
margin: 20px 0;
}
.terminal {
background-color: #2c3e50;
color: #ecf0f1;
padding: 20px;
border-radius: 6px;
font-family: 'Courier New', monospace;
margin: 20px 0;
font-size: 1rem;
line-height: 1.5;
white-space: pre-wrap;
word-wrap: break-word;
}
.terminal-command {
color: #2ecc71;
}
.terminal-comment {
color: #95a5a6;
font-style: italic;
}
.button-container {
display: flex;
justify-content: space-between;
margin-top: auto;
padding-top: 20px;
border-top: 1px solid #eee;
}
button {
background-color: #3498db;
color: white;
border: none;
padding: 10px 20px;
font-size: 1rem;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.2s;
font-weight: 500;
min-width: 120px;
}
button:hover {
background-color: #2980b9;
}
button:disabled {
background-color: #bdc3c7;
cursor: not-allowed;
}
.slide-counter {
text-align: center;
color: #7f8c8d;
font-size: 1rem;
margin-bottom: 10px;
font-weight: 500;
}
.lead {
font-size: 1.2rem;
color: #7f8c8d;
text-align: center;
margin-bottom: 20px;
}
code {
background-color: #f1f2f3;
padding: 2px 6px;
border-radius: 3px;
font-family: 'Courier New', monospace;
font-size: 0.95rem;
}
.important-box {
background-color: #fff3cd;
border: 2px solid #ffeaa7;
border-radius: 6px;
padding: 15px;
margin: 20px 0;
}
@media (max-width: 768px) {
body {
padding: 5px;
}
.container {
height: calc(100vh - 40px);
}
.slide {
padding: 20px 25px;
min-height: 300px;
}
h1 {
font-size: 1.8rem;
}
h2 {
font-size: 1.5rem;
}
h3 {
font-size: 1.2rem;
}
.lesson-title {
font-size: 1.5rem;
}
.subject-topic {
font-size: 1.3rem;
}
p, ul, ol {
font-size: 1rem;
}
button {
padding: 8px 16px;
font-size: 0.95rem;
min-width: 100px;
}
}
</style>
</head>
<body>
<div class="slide-counter" id="slide-counter">Slide 7 of 12</div>
<div class="container">
<!-- Slide 1: Title Slide -->
<div class="slide" id="slide1">
<div style="flex: 1; display: flex; flex-direction: column; justify-content: center;">
<div class="lesson-title">Upgrade Your Joke Bot!</div>
<div class="subject-topic">AI6-M3: Database Integration</div>
<div class="subject-title">Digital Technologies / Information Communication Technologies</div>
</div>
<div class="button-container">
<button id="prevBtn1">Previous</button>
<button id="nextBtn1">Next</button>
</div>
</div>
<!-- Slide 2: Rules -->
<div class="slide" id="slide2">
<h2>Classroom Guidelines</h2>
<div class="rules-container">
<h3>How Points Are Earned:</h3>
<p><strong>+2 Points</strong> - You attended class</p>
<p><strong>+1 Point</strong> - You listened quietly during instruction</p>
<p><strong>+1 Point</strong> - You attempted all assigned work</p>
<p><strong>+1 Point</strong> - You completed all assigned work</p>
<p style="margin-top: 25px; font-weight: bold; color: #27ae60;">
Maximum: 5 points per class session
</p>
</div>
<div class="button-container">
<button id="prevBtn2">Previous</button>
<button id="nextBtn2">Next</button>
</div>
</div>
<!-- Slide 3: Learning Outcomes -->
<div class="slide" id="slide3">
<h2>Learning Outcomes</h2>
<p class="subject-title">By the end of this lesson, you will be able to:</p>
<div class="outcomes-container">
<ol>
<li>Download a project from the internet (using Git clone)</li>
<li>Open and understand a Python program (starter_app.py)</li>
<li>Make simple changes to make the program better</li>
<li>Save your work to the internet (using Git push)</li>
</ol>
</div>
<div class="button-container">
<button id="prevBtn3">Previous</button>
<button id="nextBtn3">Next</button>
</div>
</div>
<!-- Slide 4: Why This Matters -->
<div class="slide" id="slide4">
<h2>Why This Matters</h2>
<div class="why-container">
<ul>
<li>Learn how real programmers work together</li>
<li>Understand how apps remember things (using databases)</li>
<li>Practice following step-by-step instructions</li>
<li>Create something that actually works!</li>
<li>These skills help with school projects and future jobs</li>
</ul>
<p style="margin-top: 30px;"><strong>Who uses these skills?</strong></p>
<p>Every app on your phone (Instagram, TikTok, games) needs databases to remember your information!</p>
</div>
<div class="button-container">
<button id="prevBtn4">Previous</button>
<button id="nextBtn4">Next</button>
</div>
</div>
<!-- Slide 5: Our Special Web Address -->
<div class="slide" id="slide5">
<h2>Step 1: Find Our Project Online</h2>
<p class="lead">Every project has a special web address (URL)</p>
<div class="content-container">
<div class="important-box">
<strong>💡 IMPORTANT:</strong> You MUST use this exact address:<br>
<code>https://gitea.techshare.cc/technolyceum/ai6-m3.git</code>
</div>
<p><strong>Think of it like:</strong></p>
<ul>
<li>This is our project's "home" on the internet</li>
<li>Like downloading a game from the App Store</li>
<li>We're getting all the files we need to start</li>
</ul>
<p><strong>What's inside this address?</strong></p>
<div class="terminal">
<span class="terminal-comment"># Inside this address you'll find:</span>
📁 ai6-m3-project/
├── 📄 starter_app.py ← The joke bot you'll upgrade!
├── 📄 requirements.txt ← List of things needed
├── 📄 README.md ← Instructions
└── 📄 .gitignore ← Special settings file
</div>
</div>
<div class="button-container">
<button id="prevBtn5">Previous</button>
<button id="nextBtn5">Next</button>
</div>
</div>
<!-- Slide 6: Download with Git Clone -->
<div class="slide" id="slide6">
<h2>Step 2: Download to Your Computer</h2>
<p class="lead">Using "Git Clone" - like copying a folder from the internet</p>
<div class="content-container">
<p><strong>Open Command Prompt (Windows):</strong></p>
<p>Press <code>Windows Key</code>, type <code>cmd</code>, press <code>Enter</code></p>
<p><strong>Go to Desktop:</strong></p>
<div class="terminal">
<span class="terminal-comment"># Type this to go to your Desktop:</span>
<span class="terminal-command">cd Desktop</span>
<span class="terminal-comment"># Check you're on Desktop:</span>
<span class="terminal-command">dir</span>
<span class="terminal-comment"># You'll see your Desktop files</span>
</div>
<p><strong>DOWNLOAD THE PROJECT:</strong></p>
<div class="terminal">
<span class="terminal-comment"># Copy everything from the internet to your computer:</span>
<span class="terminal-command">git clone https://gitea.techshare.cc/technolyceum/ai6-m3.git</span>
<span class="terminal-comment"># This creates a folder called "ai6-m3" on your Desktop</span>
</div>
<p><strong>Check it worked:</strong></p>
<div class="terminal">
<span class="terminal-command">cd ai6-m3</span>
<span class="terminal-command">dir</span>
<span class="terminal-comment"># You should see "starter_app.py" in the list!</span>
</div>
</div>
<div class="button-container">
<button id="prevBtn6">Previous</button>
<button id="nextBtn6">Next</button>
</div>
</div>
<!-- Slide 7: Open and Look at the Joke Bot -->
<div class="slide active" id="slide7">
<h2>Step 3: Open the Joke Bot Program</h2>
<p class="lead">Let's see what we're working with!</p>
<div class="content-container">
<p><strong>Using VS Code (or any text editor):</strong></p>
<div class="terminal">
<span class="terminal-comment"># Make sure you're in the right folder:</span>
<span class="terminal-command">cd Desktop\ai6-m3</span>
<span class="terminal-comment"># Open the folder in VS Code:</span>
<span class="terminal-command">code .</span>
<span class="terminal-comment"># Or open VS Code and use File → Open Folder</span>
</div>
<p><strong>Look for this file:</strong></p>
<div class="terminal">
📁 ai6-m3/
└── 📄 <strong>starter_app.py</strong> ← DOUBLE CLICK THIS!
</div>
<p><strong>What you'll see:</strong></p>
<ul>
<li>A Python program that tells jokes</li>
<li>Right now, it only has 3 jokes</li>
<li>We're going to make it remember MORE jokes</li>
</ul>
<p><strong>Try running it first:</strong></p>
<div class="terminal">
<span class="terminal-command">python starter_app.py</span>
<span class="terminal-comment"># It should tell you a random joke!</span>
</div>
</div>
<div class="button-container">
<button id="prevBtn7">Previous</button>
<button id="nextBtn8">Next</button>
</div>
</div>
<!-- Slide 8: Make the Joke Bot Better -->
<div class="slide" id="slide8">
<h2>Step 4: Upgrade Your Joke Bot!</h2>
<p class="lead">Make it remember jokes using a database</p>
<div class="content-container">
<p><strong>Your mission:</strong></p>
<ol>
<li>Add at least 5 new jokes to the program</li>
<li>Make it remember jokes even after you close it</li>
<li>Test that it works!</li>
</ol>
<p><strong>Simple changes to make:</strong></p>
<div class="terminal">
<span class="terminal-comment"># In starter_app.py, find this part:</span>
jokes = [
"Why don't scientists trust atoms?...",
"Why did the chicken cross the road?...",
"What do you call fake spaghetti?..."
]
<span class="terminal-comment"># ADD YOUR JOKES HERE!</span>
<span class="terminal-command"> "Your first joke here",</span>
<span class="terminal-command"> "Your second joke here",</span>
<span class="terminal-command"> "Keep adding more!"</span>
<span class="terminal-comment"># Don't forget the comma at the end!</span>
</div>
<p><strong>Database part (teacher will help):</strong></p>
<div class="terminal">
<span class="terminal-comment"># We'll add code to save jokes to a file</span>
<span class="terminal-comment"># So jokes don't disappear when you close the program</span>
</div>
</div>
<div class="button-container">
<button id="prevBtn8">Previous</button>
<button id="nextBtn9">Next</button>
</div>
</div>
<!-- Slide 9: Save Your Work with Git -->
<div class="slide" id="slide9">
<h2>Step 5: Save Your Work Online</h2>
<p class="lead">Using Git - like saving to the cloud</p>
<div class="content-container">
<p><strong>First, check what you changed:</strong></p>
<div class="terminal">
<span class="terminal-comment"># Make sure you're in ai6-m3 folder:</span>
<span class="terminal-command">cd Desktop\ai6-m3</span>
<span class="terminal-comment"># See what files you changed:</span>
<span class="terminal-command">git status</span>
<span class="terminal-comment"># It will show "starter_app.py" in red or green</span>
</div>
<p><strong>Step 1: Tell Git about your changes</strong></p>
<div class="terminal">
<span class="terminal-command">git add .</span>
<span class="terminal-comment"># This means: "Save ALL my changes"</span>
<span class="terminal-comment"># The dot (.) means "everything in this folder"</span>
</div>
<p><strong>Step 2: Give your work a title</strong></p>
<div class="terminal">
<span class="terminal-command">git commit -m "Upgraded app for database implementation"</span>
<span class="terminal-comment"># This is like putting your name on your work</span>
<span class="terminal-comment"># "Upgraded app for database implementation" is your title</span>
</div>
<p><strong>Step 3: Send it online</strong></p>
<div class="terminal">
<span class="terminal-command">git push</span>
<span class="terminal-comment"># This sends your work back to the internet</span>
<span class="terminal-comment"># Now everyone can see your upgraded joke bot!</span>
</div>
</div>
<div class="button-container">
<button id="prevBtn9">Previous</button>
<button id="nextBtn10">Next</button>
</div>
</div>
<!-- Slide 10: What You Learned -->
<div class="slide" id="slide10">
<h2>What You Learned</h2>
<div class="content-container">
<p>In this lesson, you have learned how to:</p>
<ol>
<li>Download a project from the internet using a special address</li>
<li>Open and run a Python program on your computer</li>
<li>Add new jokes to make the program better</li>
<li>Save your work and share it online using Git</li>
</ol>
<p><strong>Key Takeaways:</strong></p>
<p>You now know the basic workflow of real programmers: <strong>Download → Modify → Save → Share</strong>. This is how all apps and games get made!</p>
<div class="important-box">
<strong>🎉 CONGRATULATIONS!</strong><br>
You just completed your first programming project upgrade!
</div>
</div>
<div class="button-container">
<button id="prevBtn10">Previous</button>
<button id="nextBtn11">Next</button>
</div>
</div>
<!-- Slide 11: Questions -->
<div class="slide" id="slide11">
<h2>Questions &amp; Discussion</h2>
<div class="content-container">
<p><strong>Review what we covered:</strong></p>
<ul>
<li>What was the most fun part of upgrading the joke bot?</li>
<li>Did your jokes make your friends laugh?</li>
<li>What other things would you like a bot to remember?</li>
<li>Was Git push confusing? What part?</li>
</ul>
<p><strong>Common Issues:</strong></p>
<ul>
<li>Forgot commas between jokes? → Add them!</li>
<li>Git says "not a git repository"? → Make sure you're in ai6-m3 folder!</li>
<li>Python won't run? → Check for typos in your code</li>
</ul>
<p><strong>Need Additional Help?</strong></p>
<p>Raise your hand! Ask your neighbor! The teacher is here to help!</p>
</div>
<div class="button-container">
<button id="prevBtn11">Previous</button>
<button id="nextBtn12">Next</button>
</div>
</div>
<!-- Slide 12: Thank You -->
<div class="slide" id="slide12">
<div class="content-container">
<h1>Great Job! 🎉</h1>
<p>Thank you for being awesome programmers today!</p>
<p><strong>Your Joke Bot is now upgraded and saved online!</strong></p>
<div class="important-box">
<strong>🌟 YOU DID IT! 🌟</strong><br>
You downloaded code, made it better, and saved it for everyone to see!
</div>
<p><strong>Next Steps:</strong></p>
<ul>
<li>Show your joke bot to family or friends</li>
<li>Think of other cool upgrades (maybe add puns?)</li>
<li>Be proud - you just did real programming!</li>
</ul>
<p style="margin-top: 30px; color: #7f8c8d;">
Digital Technologies / ICT<br>
Grade 5-8 | Beginner Programmers
</p>
</div>
<div class="button-container">
<button id="prevBtn12">Previous</button>
<button id="nextBtn12">Next</button>
</div>
</div>
</div>
<script>
// ==================== CONFIGURATION ====================
// Set total number of slides for this lesson
const totalSlides = 12; // UPDATE THIS NUMBER FOR EACH LESSON
// =======================================================
let currentSlide = 1;
// Update slide counter
function updateSlideCounter() {
document.getElementById('slide-counter').textContent = `Slide ${currentSlide} of ${totalSlides}`;
}
// Slide navigation
function showSlide(slideNumber) {
// Hide all slides
for (let i = 1; i <= totalSlides; i++) {
const slide = document.getElementById(`slide${i}`);
if (slide) {
slide.classList.remove('active');
}
}
// Show current slide
const currentSlideElement = document.getElementById(`slide${slideNumber}`);
if (currentSlideElement) {
currentSlideElement.classList.add('active');
currentSlide = slideNumber;
updateSlideCounter();
// Update button states
updateButtons();
}
}
function updateButtons() {
// Update previous button
const prevButtons = document.querySelectorAll('[id^="prevBtn"]');
prevButtons.forEach(btn => {
btn.disabled = currentSlide === 1;
});
// Update next button text on last slide
const nextButtons = document.querySelectorAll('[id^="nextBtn"]');
nextButtons.forEach(btn => {
if (currentSlide === totalSlides) {
btn.textContent = 'Complete Lesson';
} else {
btn.textContent = 'Next';
}
});
}
// Next button functionality
document.querySelectorAll('[id^="nextBtn"]').forEach(button => {
button.addEventListener('click', () => {
if (currentSlide < totalSlides) {
showSlide(currentSlide + 1);
} else {
// Last slide - completion message
alert('🎉 Lesson completed! You are now a Joke Bot Upgrader! Thank you for participating! 🎉');
}
});
});
// Previous button functionality
document.querySelectorAll('[id^="prevBtn"]').forEach(button => {
button.addEventListener('click', () => {
if (currentSlide > 1) {
showSlide(currentSlide - 1);
}
});
});
// Initialize the presentation
updateSlideCounter();
updateButtons();
// Keyboard navigation
document.addEventListener('keydown', (e) => {
if (e.key === 'ArrowRight' || e.key === ' ' || e.key === 'PageDown') {
if (currentSlide < totalSlides) {
showSlide(currentSlide + 1);
}
} else if (e.key === 'ArrowLeft' || e.key === 'PageUp') {
if (currentSlide > 1) {
showSlide(currentSlide - 1);
}
}
});
// Initialize to first slide
showSlide(1);
</script>
</body></html>