mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Hide manual jqplay button and navigation in print mode
This commit is contained in:
@@ -103,13 +103,6 @@ h3 code {
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
|
||||||
.manual-example {
|
|
||||||
display: block !important;
|
|
||||||
height: auto !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.manual-example table {
|
.manual-example table {
|
||||||
border-top: 1px solid #E5E5E5;
|
border-top: 1px solid #E5E5E5;
|
||||||
td {
|
td {
|
||||||
@@ -125,6 +118,19 @@ h3 code {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
#navcolumn {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
.manual-example {
|
||||||
|
display: block !important;
|
||||||
|
height: auto !important;
|
||||||
|
}
|
||||||
|
.jqplay-btn {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* shared/_footer.liquid **********************************/
|
/* shared/_footer.liquid **********************************/
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
|
|||||||
@@ -15,6 +15,6 @@ $(function() {
|
|||||||
var q = $value.find('.jqprogram').text().replace(/^jq /, '').replace(/^'(.+)'$/, '$1');
|
var q = $value.find('.jqprogram').text().replace(/^jq /, '').replace(/^'(.+)'$/, '$1');
|
||||||
var url = 'https://jqplay.org/jq?q=' + encodeURIComponent(q) +'&j=' + encodeURIComponent(j)
|
var url = 'https://jqplay.org/jq?q=' + encodeURIComponent(q) +'&j=' + encodeURIComponent(j)
|
||||||
var $last_tr = $value.find('tr:last');
|
var $last_tr = $value.find('tr:last');
|
||||||
$last_tr.after('<tr><th><a href="' + url + '" class="btn btn-primary btn-sm">Run</a></th><th></th></tr><tr><th></th><th></th></tr>');
|
$last_tr.after('<tr class="jqplay-btn"><th><a href="' + url + '" class="btn btn-primary btn-sm">Run</a></th><th></th></tr><tr><th></th><th></th></tr>');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user