1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Expand all manual examples in print mode

This commit is contained in:
David Tolnay
2015-08-19 23:27:10 -07:00
parent 2c6c521799
commit 7668a4f255
3 changed files with 11 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ $(function(){
});
// add "Run" button to execute examples on jqplay.org
$(function() {
$.each($('table.manual-example'), function(index, value) {
$.each($('.manual-example table'), function(index, value) {
$value = $(value)
var j = $value.find('tr:nth-child(2) td:first').text();
var q = $value.find('.jqprogram').text().replace(/^jq /, '').replace(/^'(.+)'$/, '$1');