Browse Source

contents: numbered list & shown by default

Brennen Bearnes 4 years ago
parent
commit
47f59865f6
3 changed files with 7 additions and 7 deletions
  1. 2
    2
      footer.html
  2. 4
    4
      index.html
  3. 1
    1
      render.pl

+ 2
- 2
footer.html View File

@@ -15,7 +15,7 @@ $(document).ready(function () {
15 15
 
16 16
   $(".details").each(function () {
17 17
     var $this = $(this);
18
-    var $button = $('<button class=clicker-button>' + closed_sigil + '</button>');
18
+    var $button = $('<button class=clicker-button>' + open_sigil + '</button>');
19 19
     var $details_full = $(this).find('.full');
20 20
 
21 21
     $button.click(function (e) {
@@ -30,7 +30,7 @@ $(document).ready(function () {
30 30
     $button.show();
31 31
   });
32 32
 
33
-  $('.details .full').hide();
33
+  // $('.details .full').hide();
34 34
 });
35 35
 </script>
36 36
 </body>

+ 4
- 4
index.html View File

@@ -38,7 +38,7 @@ that inspired this one.  Go Bears.</p>
38 38
 <div class=details>
39 39
   <h2 class=clicker><a name=contents href=#contents>#</a> contents</h2>
40 40
   <div class=full>
41
-    <div class=contents><ul>
41
+    <div class=contents><ol>
42 42
 <li><a href="#a-technical-notebook">a technical notebook</a>
43 43
 
44 44
 <ul>
@@ -84,7 +84,7 @@ that inspired this one.  Go Bears.</p>
84 84
 <li><a href="#copying">copying</a></li>
85 85
 </ul>
86 86
 </li>
87
-</ul>
87
+</ol>
88 88
 
89 89
 </div>
90 90
   </div>
@@ -551,7 +551,7 @@ $(document).ready(function () {
551 551
 
552 552
   $(".details").each(function () {
553 553
     var $this = $(this);
554
-    var $button = $('<button class=clicker-button>' + closed_sigil + '</button>');
554
+    var $button = $('<button class=clicker-button>' + open_sigil + '</button>');
555 555
     var $details_full = $(this).find('.full');
556 556
 
557 557
     $button.click(function (e) {
@@ -566,7 +566,7 @@ $(document).ready(function () {
566 566
     $button.show();
567 567
   });
568 568
 
569
-  $('.details .full').hide();
569
+  // $('.details .full').hide();
570 570
 });
571 571
 </script>
572 572
 </body>

+ 1
- 1
render.pl View File

@@ -93,7 +93,7 @@ sub make_contents_link {
93 93
   if ($tag eq 'h2') {
94 94
     return "    * [$text](#$a_name)";
95 95
   } elsif ($tag eq 'h1') {
96
-    return "* [$text](#$a_name)";
96
+    return "1. [$text](#$a_name)";
97 97
   }
98 98
 }
99 99