From Govspedia
Jump to navigation Jump to search
(Created page with "→‎footer links: var elFooter = $('#footer-places'); // this order $('#n-wikieditor-toolbar-tool-link').appendTo(elFooter); $('#t-print').appendTo(elFooter); $('#pt-login').appendTo(elFooter); →‎gallery .noprintbreak: $('.gallery.dep').each(function(){ // wrap gallery and it's heading in .noprintbreak $(this).add($(this).prev()).wrapAll('<div class="noprintbreak" />'); });")
 
No edit summary
 
Line 10: Line 10:
$('.gallery.dep').each(function(){
$('.gallery.dep').each(function(){
// wrap gallery and it's heading in .noprintbreak
// wrap gallery and it's heading in .noprintbreak
$(this).add($(this).prev()).wrapAll('&lt;div class="noprintbreak" /&gt;');
$(this).add($(this).prev()).wrapAll('<div class="noprintbreak" />');
});
});

Latest revision as of 13:34, 10 April 2025

/* footer links */
var elFooter = $('#footer-places');

// this order
$('#n-wikieditor-toolbar-tool-link').appendTo(elFooter);
$('#t-print').appendTo(elFooter);
$('#pt-login').appendTo(elFooter);

/* gallery .noprintbreak */
$('.gallery.dep').each(function(){
  // wrap gallery and it's heading in .noprintbreak
  $(this).add($(this).prev()).wrapAll('<div class="noprintbreak" />');
});