Skip to content

Commit 82f523d

Browse files
authored
Merge pull request #1767 from wilzbach/temporarily-fix-example-roulette
Temporarily fix the example roulette merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2 parents 7f3f314 + b78d9aa commit 82f523d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ void main()
5050
}
5151
----
5252
)
53+
)
5354
$(EXTRA_EXAMPLE
5455
$(RUNNABLE_EXAMPLE_STDIN 2.4 plus 2.4 equals 5 for sufficiently large values of 2.)
5556
----
@@ -72,7 +73,6 @@ void main()
7273
}
7374
----
7475
)
75-
)
7676
$(EXTRA_EXAMPLE
7777
$(RUNNABLE_EXAMPLE_STDIN
7878
Mercury

js/dlang.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@
5959
});
6060

6161
// [your code here] rotation for index.html
62-
var $examples = $('.your-code-here-extra > pre');
62+
var $examples = $('.your-code-here-extra .d_code');
6363
if ($examples.length) {
6464
var n = Math.floor(Math.random() * ($examples.length+1));
6565
if (n)
66-
$('#your-code-here-default > pre').replaceWith($examples[n-1]);
66+
$('#your-code-here-default .d_code').replaceWith($examples[n-1]);
6767
}
6868

6969
// Insert the show/hide button if the contents section exists

0 commit comments

Comments
 (0)