Skip to content

Commit

Permalink
feat: add ability to toggle content
Browse files Browse the repository at this point in the history
add chapters overview to the top
and chapters progress to the bottom
  • Loading branch information
milafrerichs committed Jul 25, 2019
1 parent 860f377 commit 959b5e0
Show file tree
Hide file tree
Showing 4 changed files with 263 additions and 23 deletions.
2 changes: 2 additions & 0 deletions example/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@
import Tutorials from '../src/Tutorials.svelte';
let chapters = [
{
title: 'Entry',
content: 'Test',
code: 'document.body.innerHTML = "Test";',
solution: 'document.body.innerHTML = "Solution";',
viewOnly: true
},
{
title: '1: Test',
content: 'Test 2',
code: 'document.body.innerHTML = "Test 2";',
solution: 'document.body.innerHTML = "Solution 2";console.log("Test")'
Expand Down
Loading

0 comments on commit 959b5e0

Please sign in to comment.