Skip to content
This repository has been archived by the owner on Aug 11, 2018. It is now read-only.

Commit

Permalink
Limit nested level hakimel/reveal.js#273
Browse files Browse the repository at this point in the history
  • Loading branch information
vvscode committed Sep 25, 2017
1 parent 9de91f9 commit d52457c
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 141 deletions.
191 changes: 55 additions & 136 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,180 +15,99 @@
<div class="reveal">
<div class="slides">
<section>
<span>DAY 1: 1></span>
<!-- section level: 0 -->
DAY 1
<section>
<span>meal: 2> DAY 1 </span>
<section>
<span>breakfast: 3> DAY 1 |> meal </span>
</section>
<section>
<span>lunch: 3> DAY 1 |> meal </span>
</section>
<!-- section level: 1 -->
meal
</section>
<section>
<span>dinner: 3> DAY 1 |> meal </span>
<!-- section level: 1 -->
sport
</section>
</section>
<section>
<span>sport: 2> DAY 1 </span>
<section>
<span>00:00 ~ 00:00: 3> DAY 1 |> sport </span>
<section>
<span>running: 4> DAY 1 |> sport |> 00:00 ~ 00:00 </span>
</section>
</section>
</section>
</section>
<section>
<span>DAY 2: 1></span>
<!-- section level: 0 -->
DAY 2
<section>
<span>meal: 2> DAY 2 </span>
<section>
<span>breakfast: 3> DAY 2 |> meal </span>
</section>
<section>
<span>lunch: 3> DAY 2 |> meal </span>
</section>
<!-- section level: 1 -->
meal
</section>
<section>
<span>dinner: 3> DAY 2 |> meal </span>
<!-- section level: 1 -->
sport
</section>
</section>
<section>
<span>sport: 2> DAY 2 </span>
<section>
<span>00:00 ~ 00:00: 3> DAY 2 |> sport </span>
<section>
<span>yoga: 4> DAY 2 |> sport |> 00:00 ~ 00:00 </span>
</section>
</section>
</section>
</section>
<section>
<span>DAY 3: 1></span>
<!-- section level: 0 -->
DAY 3
<section>
<span>meal: 2> DAY 3 </span>
<section>
<span>breakfast: 3> DAY 3 |> meal </span>
</section>
<section>
<span>lunch: 3> DAY 3 |> meal </span>
</section>
<!-- section level: 1 -->
meal
</section>
<section>
<span>dinner: 3> DAY 3 |> meal </span>
<!-- section level: 1 -->
sport
</section>
</section>
<section>
<span>sport: 2> DAY 3 </span>
<section>
<span>00:00 ~ 00:00: 3> DAY 3 |> sport </span>
<section>
<span>yoga: 4> DAY 3 |> sport |> 00:00 ~ 00:00 </span>
</section>
</section>
</section>
</section>
<section>
<span>DAY 4: 1></span>
<!-- section level: 0 -->
DAY 4
<section>
<span>meal: 2> DAY 4 </span>
<section>
<span>breakfast: 3> DAY 4 |> meal </span>
</section>
<section>
<span>lunch: 3> DAY 4 |> meal </span>
</section>
<!-- section level: 1 -->
meal
</section>
<section>
<span>dinner: 3> DAY 4 |> meal </span>
<!-- section level: 1 -->
sport
</section>
</section>
<section>
<span>sport: 2> DAY 4 </span>
<section>
<span>00:00 ~ 00:00: 3> DAY 4 |> sport </span>
<section>
<span>yoga: 4> DAY 4 |> sport |> 00:00 ~ 00:00 </span>
</section>
</section>
</section>
</section>
<section>
<span>DAY 5: 1></span>
<!-- section level: 0 -->
DAY 5
<section>
<span>meal: 2> DAY 5 </span>
<section>
<span>breakfast: 3> DAY 5 |> meal </span>
</section>
<section>
<span>lunch: 3> DAY 5 |> meal </span>
</section>
<!-- section level: 1 -->
meal
</section>
<section>
<span>dinner: 3> DAY 5 |> meal </span>
<!-- section level: 1 -->
sport
</section>
</section>
<section>
<span>sport: 2> DAY 5 </span>
<!-- section level: 0 -->
DAY 6
<section>
<span>00:00 ~ 00:00: 3> DAY 5 |> sport </span>
<section>
<span>yoga: 4> DAY 5 |> sport |> 00:00 ~ 00:00 </span>
</section>
</section>
</section>
</section>
<section>
<span>DAY 6: 1></span>
<section>
<span>meal: 2> DAY 6 </span>
<section>
<span>breakfast: 3> DAY 6 |> meal </span>
</section>
<section>
<span>lunch: 3> DAY 6 |> meal </span>
</section>
<!-- section level: 1 -->
meal
</section>
<section>
<span>dinner: 3> DAY 6 |> meal </span>
<!-- section level: 1 -->
sport
</section>
</section>
<section>
<span>sport: 2> DAY 6 </span>
<!-- section level: 0 -->
DAY 7
<section>
<span>00:00 ~ 00:00: 3> DAY 6 |> sport </span>
<section>
<span>yoga: 4> DAY 6 |> sport |> 00:00 ~ 00:00 </span>
</section>
</section>
</section>
</section>
<section>
<span>DAY 7: 1></span>
<section>
<span>meal: 2> DAY 7 </span>
<section>
<span>breakfast: 3> DAY 7 |> meal </span>
</section>
<section>
<span>lunch: 3> DAY 7 |> meal </span>
</section>
<!-- section level: 1 -->
meal
</section>
<section>
<span>dinner: 3> DAY 7 |> meal </span>
<!-- section level: 1 -->
sport
</section>
</section>
<section>
<span>sport: 2> DAY 7 </span>
<section>
<span>00:00 ~ 00:00: 3> DAY 7 |> sport </span>
<section>
<span>yoga: 4> DAY 7 |> sport |> 00:00 ~ 00:00 </span>
</section>
</section>
</section>
</section>
<section>
<span>TARGET: 1></span>
<!-- section level: 0 -->
TARGET
<section>
<span>5Kg one week: 2> TARGET </span>
<!-- section level: 1 -->
5Kg one week
</section>
<section>
<span>more sports: 2> TARGET </span>
<!-- section level: 1 -->
more sports
</section>
</section>
</div>
Expand Down
8 changes: 3 additions & 5 deletions templates/base/section.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<section>
<span><%= title %>:
<%=Math.min(sectionLevel + 1, 6) %>>
<%= (breadcrumbs || []).map(i => i.title).join(' |> ') %>
</span>
<!-- section level: <%= sectionLevel %> -->
<%= title %>

<%= (sections|| []).join('\n') %>
<%= (sectionLevel < 1) ? sections.join('') : '' %>
</section>

0 comments on commit d52457c

Please # to comment.