diff --git a/_data/devdocs/en/examples/p2p_networking.md b/_data/devdocs/en/examples/p2p_networking.md index 6add560c..246e2645 100644 --- a/_data/devdocs/en/examples/p2p_networking.md +++ b/_data/devdocs/en/examples/p2p_networking.md @@ -4,7 +4,14 @@ http://opensource.org/licenses/MIT. {% endcomment %} {% assign filename="_data/devdocs/en/examples/p2p_networking.md" %} +
+ ## P2P Network + +
+ +
+ {% include helpers/subhead-links.md %} ### Creating A Bloom Filter @@ -454,3 +461,4 @@ is identical to the merkle root in the header and check the other steps of the parsing checklist in the `merkleblock` message section. {% endautocrossref %} +
diff --git a/_data/devdocs/en/examples/payment_processing.md b/_data/devdocs/en/examples/payment_processing.md index ccee59e6..d6b7f36e 100644 --- a/_data/devdocs/en/examples/payment_processing.md +++ b/_data/devdocs/en/examples/payment_processing.md @@ -4,7 +4,14 @@ http://opensource.org/licenses/MIT. {% endcomment %} {% assign filename="_data/devdocs/en/examples/payment_processing.md" %} +
+ ## Payment Processing + +
+ +
+ {% include helpers/subhead-links.md %} ### Payment Protocol @@ -471,3 +478,4 @@ created by the program above appears in the GUI from Bitcoin Core 0.9. ![Bitcoin Core Showing Validated Payment Request](/img/dev/en-btcc-payment-request.png) {% endautocrossref %} +
diff --git a/_data/devdocs/en/examples/testing.md b/_data/devdocs/en/examples/testing.md index eaf6a2fc..4992e148 100644 --- a/_data/devdocs/en/examples/testing.md +++ b/_data/devdocs/en/examples/testing.md @@ -4,7 +4,12 @@ http://opensource.org/licenses/MIT. {% endcomment %} {% assign filename="_data/devdocs/en/examples/testing.md" %} +
+ ## Testing Applications + +
+
{% include helpers/subhead-links.md %} {% autocrossref %} @@ -103,3 +108,4 @@ configuration directory locations on various operating systems. Always back up mainnet wallets before performing dangerous operations such as deleting.) {% endautocrossref %} +
\ No newline at end of file diff --git a/_data/devdocs/en/examples/transactions.md b/_data/devdocs/en/examples/transactions.md index 70ad0ab2..407adbb7 100644 --- a/_data/devdocs/en/examples/transactions.md +++ b/_data/devdocs/en/examples/transactions.md @@ -4,7 +4,13 @@ http://opensource.org/licenses/MIT. {% endcomment %} {% assign filename="_data/devdocs/en/examples/transactions.md" %} +
+ ## Transactions + +
+ +
{% include helpers/subhead-links.md %} ### Transaction Tutorial @@ -1277,3 +1283,4 @@ We send the transaction spending the P2SH multisig output to the local node, which accepts it. {% endautocrossref %} +
diff --git a/_layouts/devdoc-category.md b/_layouts/devdoc-category.md index de8ebeef..6c78474b 100644 --- a/_layouts/devdoc-category.md +++ b/_layouts/devdoc-category.md @@ -8,6 +8,7 @@ end_of_page: | + --- diff --git a/_sass/screen.scss b/_sass/screen.scss index 369861e3..67dd9170 100644 --- a/_sass/screen.scss +++ b/_sass/screen.scss @@ -1201,12 +1201,26 @@ h1 span.fa, h2 span.fa, h3 span.fa, h4 span.fa, h5 span.fa, h6 span.fa { margin-bottom: 0; } .toccontent h2{ + position: relative; margin-top: 40px; font-size: 162.5%; color: #FF7E00; font-weight: 400; line-height: 65px; } +.toccontent h2::after{ + content: ''; + position: absolute; + top: 50%; + right: 40px; + width: 10px; + height: 6px; + background: url(../img/icons/ico_angle.svg) no-repeat; + transform: translateY(-50%); +} +.toccontent .active h2::after { + transform: translateY(-50%) rotate(180deg); +} .toccontent h3{ margin-top: 20px; font-size: 137.5%; @@ -1287,7 +1301,12 @@ h1 span.fa, h2 span.fa, h3 span.fa, h4 span.fa, h5 span.fa, h6 span.fa { font-weight:normal; border-bottom: 3px double #ddd; } - +.accordion-toggle { + cursor: pointer; +} +.accordion-content { + display: none; +} .anchorAf{ position:relative; } diff --git a/js/main.js b/js/main.js index 0d64063c..c0f44582 100644 --- a/js/main.js +++ b/js/main.js @@ -558,3 +558,18 @@ function toggleDonationBanner() { toggle.toggleClass('active'); banner.toggleClass('expanded'); } + +function accordion() { + $(document).ready(function($) { + $('.accordion-toggle').click(function(){ + + //Expand or collapse this panel + $(this).next().slideToggle('fast'); + $(this).toggleClass("active"); + + //Hide the other panels + $(".accordion-content").not($(this).next()).slideUp("fast"); + $(".accordion-content").not($(this)).removeClass("active"); + }); + }); +} \ No newline at end of file