1
0
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:
David Tolnay
2015-08-20 11:14:14 -07:00
parent 8932cf719f
commit 7032228879
2 changed files with 14 additions and 8 deletions

View File

@@ -103,13 +103,6 @@ h3 code {
margin-bottom: 20px;
}
@media print {
.manual-example {
display: block !important;
height: auto !important;
}
}
.manual-example table {
border-top: 1px solid #E5E5E5;
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 **********************************/
footer {

View File

@@ -15,6 +15,6 @@ $(function() {
var q = $value.find('.jqprogram').text().replace(/^jq /, '').replace(/^'(.+)'$/, '$1');
var url = 'https://jqplay.org/jq?q=' + encodeURIComponent(q) +'&j=' + encodeURIComponent(j)
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>');
});
});