File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed
Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments