Skip to content

Commit 8b2e328

Browse files
authored
Update tutorials.html
Updated
1 parent fc852fc commit 8b2e328

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

tutorials.html

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,27 @@ <h2>Using the AgriTool</h2>
194194
});
195195
});
196196

197-
// Update dashboard
198-
function updateDashboard() {
199-
// This function would be in dashboard.html
200-
const progress = Math.round((tutorialState.completed.length / 2) * 100);
201-
localStorage.setItem('trainingProgress', progress);
202-
}
197+
<!-- tutorials.html -->
198+
document.addEventListener('DOMContentLoaded', () => {
199+
const tutorialsData = {
200+
tutorials: [
201+
{
202+
title: 'Understanding Environmental Data',
203+
description: 'Learn about the importance of environmental data.',
204+
duration: 15,
205+
completed: false
206+
},
207+
{
208+
title: 'Using the AgriTool',
209+
description: 'A comprehensive guide to using the AgriTool.',
210+
duration: 20,
211+
completed: false
212+
}
213+
]
214+
};
215+
localStorage.setItem('tutorialsData', JSON.stringify(tutorialsData));
216+
});
217+
203218
</script>
204219
</body>
205220
</html>

0 commit comments

Comments
 (0)