css print
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
(function (Drupal, once) {
|
||||
Drupal.behaviors.pagedPrint = {
|
||||
attach(context) {
|
||||
once('pagedPrint', 'body', context).forEach(() => {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
if (params.get('print') === '1' && window.PagedPolyfill) {
|
||||
window.PagedPolyfill.preview();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
})(Drupal, once);
|
||||
@@ -1,3 +0,0 @@
|
||||
jQuery(function ($) {
|
||||
console.log('salut print');
|
||||
});
|
||||
Reference in New Issue
Block a user