Expand all manual examples in print mode
This commit is contained in:
1 parent
2c6c521799
commit
7668a4f255
3 files changed
+11
-4
No files matched your search
@@ -97,7 +97,14 @@ h3 code {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.manual-example {
|
||||
@media print {
|
||||
.manual-example {
|
||||
display: block !important;
|
||||
height: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
.manual-example table {
|
||||
border-top: 1px solid #E5E5E5;
|
||||
td {
|
||||
white-space: pre-wrap;
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user