Ao usar este site, você concorda com a Política de Privacidade e os Termos de Uso.
Accept
Detrans do Brasil
Facebook Like
Twitter Follow
Instagram Follow
Detrans do BrasilDetrans do Brasil
Pesquisar
  • Principal
Follow US
© Foxiz News Network. Ruby Design Company. All Rights Reserved.
Amapá

Detran Amapá conclui sinalização de novas lombadas na Rodovia Duca Serra, em Macapá

11 de julho de 2025
Detran Amapá conclui sinalização de novas lombadas na Rodovia Duca Serra, em Macapá
Compartilhar

Detran Amapá conclui sinalização de novas lombadas na Rodovia Duca Serra, em Macapá – Detran AP

Pular para o conteúdo

Pular para o conteúdo

“)”;
var printI = document.createElement(‘iframe’);
printI.name = “printIframe”;
printI.id = strFrameName;
printI.className = “MSIE”;
document.body.appendChild(printI);
printI.src = iframeSrc;

} else {
// other browsers inherit document.domain, and IE works if document.domain is not explicitly set
var $frame = jQuery(“”);
$frame.appendTo(“body”);
}

var $iframe = jQuery(“#” + strFrameName);

// show frame if in debug mode
if (!opt.debug) $iframe.css({
position: “absolute”,
width: “0px”,
height: “0px”,
left: “-600px”,
top: “-600px”
});

// before print callback
if (typeof opt.beforePrint === “function”) {
opt.beforePrint();
}

// $iframe.ready() and $iframe.load were inconsistent between browsers
setTimeout(function() {

// Add doctype to fix the style difference between printing and render
function setDocType($iframe, doctype){
var win, doc;
win = $iframe.get(0);
win = win.contentWindow || win.contentDocument || win;
doc = win.document || win.contentDocument || win;
doc.open();
doc.write(doctype);
doc.close();
}

if (opt.doctypeString){
setDocType($iframe, opt.doctypeString);
}

var $doc = $iframe.contents(),
$head = $doc.find(“head”),
$body = $doc.find(“body”),
$base = jQuery(‘base’),
baseURL;

// add base tag to ensure elements use the parent domain
if (opt.base === true && $base.length > 0) {
// take the base tag from the original page
baseURL = $base.attr(‘href’);
} else if (typeof opt.base === ‘string’) {
// An exact base string is provided
baseURL = opt.base;
} else {
// Use the page URL as the base
baseURL = document.location.protocol + ‘//’ + document.location.host;
}

$head.append(‘‘);

// import page stylesheets
if (opt.importCSS) jQuery(“link[rel=stylesheet]”).each(function() {
var href = jQuery(this).attr(“href”);
if (href) {
var media = jQuery(this).attr(“media”) || “all”;
$head.append(““);
}
});

// import style tags
if (opt.importStyle) jQuery(“style”).each(function() {
$head.append(this.outerHTML);
});

// add title of the page
if (opt.pageTitle) $head.append(“

” + opt.pageTitle + “

“);

// import additional stylesheet(s)
if (opt.loadCSS) {
if (jQuery.isArray(opt.loadCSS)) {
jQuery.each(opt.loadCSS, function(index, value) {
$head.append(““);
});
} else {
$head.append(““);
}
}

var pageHtml = jQuery(‘html’)[0];

// CSS VAR in html tag when dynamic apply e.g. document.documentElement.style.setProperty(“–foo”, bar);
$doc.find(‘html’).prop(‘style’, pageHtml.style.cssText);

// copy ‘root’ tag classes
var tag = opt.copyTagClasses;
if (tag) {
tag = tag === true ? ‘bh’ : tag;
if (tag.indexOf(‘b’) !== -1) {
$body.addClass(jQuery(‘body’)[0].className);
}
if (tag.indexOf(‘h’) !== -1) {
$doc.find(‘html’).addClass(pageHtml.className);
}
}

// copy ‘:root’ tag classes
tag = opt.copyTagStyles;
if (tag) {
tag = tag === true ? ‘bh’ : tag;
if (tag.indexOf(‘b’) !== -1) {
$body.attr(‘style’, jQuery(‘body’)[0].style.cssText);
}
if (tag.indexOf(‘h’) !== -1) {
$doc.find(‘html’).attr(‘style’, pageHtml.style.cssText);
}
}

// print header
appendContent($body, opt.header);

if (opt.canvas) {
// add canvas data-ids for easy access after cloning.
var canvasId = 0;
// .addBack(‘canvas’) adds the top-level element if it is a canvas.
$element.find(‘canvas’).addBack(‘canvas’).each(function(){
jQuery(this).attr(‘data-printthis’, canvasId++);
});
}

appendBody($body, $element, opt);

if (opt.canvas) {
// Re-draw new canvases by referencing the originals
$body.find(‘canvas’).each(function(){
var cid = jQuery(this).data(‘printthis’),
$src = jQuery(‘[data-printthis=”‘ + cid + ‘”]’);

this.getContext(‘2d’).drawImage($src[0], 0, 0);

// Remove the markup from the original
if (jQuery.isFunction(jQuery.fn.removeAttr)) {
$src.removeAttr(‘data-printthis’);
} else {
jQuery.each($src, function(i, el) {
el.removeAttribute(‘data-printthis’);
});
}
});
}

// remove inline styles
if (opt.removeInline) {
// Ensure there is a selector, even if it’s been mistakenly removed
var selector = opt.removeInlineSelector || ‘*’;
// $.removeAttr available jQuery 1.7+
if (jQuery.isFunction(jQuery.removeAttr)) {
$body.find(selector).removeAttr(“style”);
} else {
$body.find(selector).attr(“style”, “”);
}
}

// print “footer”
appendContent($body, opt.footer);

// attach event handler function to beforePrint event
function attachOnBeforePrintEvent($iframe, beforePrintHandler) {
var win = $iframe.get(0);
win = win.contentWindow || win.contentDocument || win;

if (typeof beforePrintHandler === “function”) {
if (‘matchMedia’ in win) {
win.matchMedia(‘print’).addListener(function(mql) {
if(mql.matches) beforePrintHandler();
});
} else {
win.onbeforeprint = beforePrintHandler;
}
}
}
attachOnBeforePrintEvent($iframe, opt.beforePrintEvent);

setTimeout(function() {
if ($iframe.hasClass(“MSIE”)) {
// check if the iframe was created with the ugly hack
// and perform another ugly hack out of neccessity
window.frames[“printIframe”].focus();
$head.append(“

Leia também

Detran Amapá certifica mais de 100 taxistas e mototaxistas em Laranjal do Jari

Detran Amapá recebe prêmio nacional de reconhecimento por ações durante o Maio Amarelo 2025

Detran Amapá leva conscientização e serviços ao Arraiá do Povo 2025, na Zona Norte de Macapá

Arraiá do Povo 2025: esquema de trânsito na Rua Tancredo Neves é reforçado para os seis dias de festa na Zona Norte de Macapá

Detran Amapá promove atendimento para mudança ou inclusão do nome social na CNH e assegura direitos LGBTQIA+

Redação 11 de julho de 2025 11 de julho de 2025
Compartilhar este artigo
Facebook Twitter Email Copy Link Print
Painel Informe Manaus de Satisfação: Gostou da matéria?
Love0
Angry0
Wink0
Happy0
Dead0

Você pode gostar também

Detran Amapá certifica mais de 100 taxistas e mototaxistas em Laranjal do Jari
Amapá

Detran Amapá certifica mais de 100 taxistas e mototaxistas em Laranjal do Jari

9 de julho de 2025
Detran Amapá recebe prêmio nacional de reconhecimento por ações durante o Maio Amarelo 2025
Amapá

Detran Amapá recebe prêmio nacional de reconhecimento por ações durante o Maio Amarelo 2025

2 de julho de 2025
Detran Amapá leva conscientização e serviços ao Arraiá do Povo 2025, na Zona Norte de Macapá
Amapá

Detran Amapá leva conscientização e serviços ao Arraiá do Povo 2025, na Zona Norte de Macapá

30 de junho de 2025
Arraiá do Povo 2025: esquema de trânsito na Rua Tancredo Neves é reforçado para os seis dias de festa na Zona Norte de Macapá
Amapá

Arraiá do Povo 2025: esquema de trânsito na Rua Tancredo Neves é reforçado para os seis dias de festa na Zona Norte de Macapá

26 de junho de 2025
Detran Amapá promove atendimento para mudança ou inclusão do nome social na CNH e assegura direitos LGBTQIA+
Amapá

Detran Amapá promove atendimento para mudança ou inclusão do nome social na CNH e assegura direitos LGBTQIA+

24 de junho de 2025
Maio Amarelo: campanha do Governo do Estado orienta para segurança no trânsito do Amapá; confira programação
Amapá

Maio Amarelo: campanha do Governo do Estado orienta para segurança no trânsito do Amapá; confira programação

14 de maio de 2025
  • Fale Conosco
  • Blog
  • Termo de Uso
  • Política de Privacidade
  • Sobre o Site

Siga-nos

Detrans do Brasil